[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc
ariya at webkit.org
ariya at webkit.org
Wed Dec 22 12:24:31 UTC 2010
The following commit has been merged in the debian/experimental branch:
commit fe2e2719738e8d91c1c4a7fcb0b375773b928a3d
Author: ariya at webkit.org <ariya at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Sat Aug 21 08:33:25 2010 +0000
[Qt] Faster bounding rect for the shadow clip region
https://bugs.webkit.org/show_bug.cgi?id=44369
Patch by Ariya Hidayat <ariya at sencha.com> on 2010-08-21
Reviewed by Kenneth Rohde Christiansen.
Like in r65650, we should use the faster QPainter::clipBoundingRect
when it is available.
* platform/graphics/qt/ContextShadow.cpp:
(WebCore::ContextShadow::drawShadowRect):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65776 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 8e618bc..d716f27 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,16 @@
+2010-08-21 Ariya Hidayat <ariya at sencha.com>
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ [Qt] Faster bounding rect for the shadow clip region
+ https://bugs.webkit.org/show_bug.cgi?id=44369
+
+ Like in r65650, we should use the faster QPainter::clipBoundingRect
+ when it is available.
+
+ * platform/graphics/qt/ContextShadow.cpp:
+ (WebCore::ContextShadow::drawShadowRect):
+
2010-08-20 Girish Ramakrishnan <girish at forwardbias.in>
Reviewed by Ariya Hidayat.
diff --git a/WebCore/platform/graphics/qt/ContextShadow.cpp b/WebCore/platform/graphics/qt/ContextShadow.cpp
index 80b17f9..7f9b427 100644
--- a/WebCore/platform/graphics/qt/ContextShadow.cpp
+++ b/WebCore/platform/graphics/qt/ContextShadow.cpp
@@ -283,7 +283,11 @@ void ContextShadow::drawShadowRect(QPainter* p, const QRectF& rect)
QRect clipRect;
if (p->hasClipping())
+#if QT_VERSION >= QT_VERSION_CHECK(4, 8, 0)
+ clipRect = p->clipBoundingRect();
+#else
clipRect = p->clipRegion().boundingRect();
+#endif
else
clipRect = p->transform().inverted().mapRect(p->window());
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list