Changeset 74165 in webkit
- Timestamp:
- Dec 15, 2010 5:15:46 PM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r74162 r74165 1 2010-12-15 Andreas Kling <andreas.kling@nokia.com> 2 3 Reviewed by Ariya Hidayat. 4 5 [Qt] StillImage::draw() shouldn't call setCompositionMode() unless the QPaintEngine has Porter-Duff composition 6 https://bugs.webkit.org/show_bug.cgi?id=49918 7 8 Go through GraphicsContext::setCompositeOperation() which does the check for us. 9 10 * platform/graphics/qt/StillImageQt.cpp: 11 (WebCore::StillImage::draw): 12 1 13 2010-12-15 Yong Li <yoli@rim.com> 2 14 -
trunk/WebCore/platform/graphics/qt/StillImageQt.cpp
r73889 r74165 72 72 FloatRect normalizedDst = dst.normalized(); 73 73 74 CompositeOperator previousOperator = ctxt->compositeOperation(); 75 ctxt->setCompositeOperation(op); 76 74 77 QPainter* painter = ctxt->platformContext(); 75 QPainter::CompositionMode oldCompositionMode = painter->compositionMode();76 77 ctxt->setCompositeOperation(op);78 78 79 79 ContextShadow* shadow = ctxt->contextShadow(); … … 88 88 89 89 painter->drawPixmap(normalizedDst, *m_pixmap, normalizedSrc); 90 painter->setCompositionMode(oldCompositionMode);90 ctxt->setCompositeOperation(previousOperator); 91 91 } 92 92
Note: See TracChangeset
for help on using the changeset viewer.