Changeset 74165 in webkit


Ignore:
Timestamp:
Dec 15, 2010 5:15:46 PM (13 years ago)
Author:
andreas.kling@nokia.com
Message:

2010-12-15 Andreas Kling <andreas.kling@nokia.com>

Reviewed by Ariya Hidayat.

[Qt] StillImage::draw() shouldn't call setCompositionMode() unless the QPaintEngine has Porter-Duff composition
https://bugs.webkit.org/show_bug.cgi?id=49918

Go through GraphicsContext::setCompositeOperation() which does the check for us.

  • platform/graphics/qt/StillImageQt.cpp: (WebCore::StillImage::draw):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r74162 r74165  
     12010-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
    1132010-12-15  Yong Li  <yoli@rim.com>
    214
  • trunk/WebCore/platform/graphics/qt/StillImageQt.cpp

    r73889 r74165  
    7272    FloatRect normalizedDst = dst.normalized();
    7373
     74    CompositeOperator previousOperator = ctxt->compositeOperation();
     75    ctxt->setCompositeOperation(op);
     76
    7477    QPainter* painter = ctxt->platformContext();
    75     QPainter::CompositionMode oldCompositionMode = painter->compositionMode();
    76 
    77     ctxt->setCompositeOperation(op);
    7878
    7979    ContextShadow* shadow = ctxt->contextShadow();
     
    8888
    8989    painter->drawPixmap(normalizedDst, *m_pixmap, normalizedSrc);
    90     painter->setCompositionMode(oldCompositionMode);
     90    ctxt->setCompositeOperation(previousOperator);
    9191}
    9292
Note: See TracChangeset for help on using the changeset viewer.