Do not try to create invalid sized XPixmaps
authorAllan Sandfeld Jensen <allan.jensen@digia.com>
Thu, 24 Apr 2014 11:41:14 +0000 (13:41 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 24 Apr 2014 13:19:22 +0000 (15:19 +0200)
commit34a0cc44e9b0d5a8c9c3ea7302d9ebc89270de94
tree06c229219291a29130230a343a698edd561a60d3
parentc426b31a6c9e39b8a857a0590dae6c21738c7184
Do not try to create invalid sized XPixmaps

If a visible plugin is resized to an empty size we request an empty
sized xpixmap which is illegal.

Instead hide and only free the exiting drawable.

Task-number: QTBUG-38541
Change-Id: I2cb3d221d656b1b18391c479168221bcd0aa73b1
Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Source/WebCore/plugins/qt/PluginViewQt.cpp