2010-09-16 Andreas Kling <andreas.kling@nokia.com>
authorAndreas Kling <andreas.kling@nokia.com>
Thu, 16 Sep 2010 22:35:30 +0000 (22:35 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Fri, 17 Sep 2010 15:11:37 +0000 (12:11 -0300)
commit52d21780233fc40b9f0a0c3c7bc9561f61a85099
tree5d5675565a4257ad889605895de1e30664e603bb
parentb422ce07f7d9753e80495f510d5c10ad0d8c70e0
2010-09-16  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Ariya Hidayat.
        Backported to 2.1 by Ademar Reis.

        [Qt] Remove unnecessary QPainter::clipPath() call in TransparencyLayer()
        https://bugs.webkit.org/show_bug.cgi?id=45923

        QPainter::clipPath() can be very expensive, so use QPainter::hasClipping()
        instead of QPainter::clipPath().isEmpty().

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

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@67675 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/graphics/qt/GraphicsContextQt.cpp