[Qt] Box shadows on a transparency layer is very slow
authorAllan Sandfeld Jensen <allan.jensen@digia.com>
Tue, 5 Feb 2013 13:09:11 +0000 (14:09 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 6 Feb 2013 16:41:16 +0000 (17:41 +0100)
commitaf04e12234efbf6bba5bddf9c2cfc11f6d516ca8
treec1fdce1af67cb522972b9e32f0a2c5553d3a84a6
parent90c58273524a6eb69bdbfe35023e63924c54a734
[Qt] Box shadows on a transparency layer is very slow

https://bugs.webkit.org/show_bug.cgi?id=107547

Reviewed by Noam Rosenthal.

Include the window boundaries in the clip returned by GraphicsContext,
since QPainter may remember clips larger than the destination, but
ShadowBlur uses the clipBounds to determine the size of the shadow layer.

* platform/graphics/qt/GraphicsContextQt.cpp:
(WebCore::GraphicsContext::clipBounds):

Change-Id: Icb53ad7001420bd3bd9c2105c3ae8dcc7bc49d8c
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141413 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp