Changeset 67675 in webkit
- Timestamp:
- Sep 16, 2010 3:35:30 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r67673 r67675 1 2010-09-16 Andreas Kling <andreas.kling@nokia.com> 2 3 Reviewed by Ariya Hidayat. 4 5 [Qt] Remove unnecessary QPainter::clipPath() call in TransparencyLayer() 6 https://bugs.webkit.org/show_bug.cgi?id=45923 7 8 QPainter::clipPath() can be very expensive, so use QPainter::hasClipping() 9 instead of QPainter::clipPath().isEmpty(). 10 11 * platform/graphics/qt/TransparencyLayer.h: 12 (WebCore::TransparencyLayer::TransparencyLayer): 13 1 14 2010-09-16 David Hyatt <hyatt@apple.com> 2 15 -
trunk/WebCore/platform/graphics/qt/TransparencyLayer.h
r65784 r67675 62 62 if (painter.paintEngine()->hasFeature(QPaintEngine::PorterDuff)) 63 63 painter.setCompositionMode(p->compositionMode()); 64 // if the path is an empty region, this assignment disables all painting 65 if (!p->clipPath().isEmpty()) 64 if (p->hasClipping()) 66 65 painter.setClipPath(p->clipPath()); 67 66 }
Note: See TracChangeset
for help on using the changeset viewer.