Changeset 69462 in webkit


Ignore:
Timestamp:
Oct 9, 2010 4:56:31 PM (14 years ago)
Author:
andreas.kling@nokia.com
Message:

2010-10-09 Andreas Kling <kling@webkit.org>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Fast-path in Path::clear() for already empty paths
https://bugs.webkit.org/show_bug.cgi?id=47460

The only way to clear a QPainterPath is to assign QPainterPath() to it.
Avoid creating a temporary object etc if the path is already empty.

  • platform/graphics/qt/PathQt.cpp: (WebCore::Path::clear):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r69454 r69462  
     12010-10-09  Andreas Kling  <kling@webkit.org>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Fast-path in Path::clear() for already empty paths
     6        https://bugs.webkit.org/show_bug.cgi?id=47460
     7
     8        The only way to clear a QPainterPath is to assign QPainterPath() to it.
     9        Avoid creating a temporary object etc if the path is already empty.
     10
     11        * platform/graphics/qt/PathQt.cpp:
     12        (WebCore::Path::clear):
     13
    1142010-10-08  Ryosuke Niwa  <rniwa@webkit.org>
    215
  • trunk/WebCore/platform/graphics/qt/PathQt.cpp

    r67808 r69462  
    336336void Path::clear()
    337337{
     338    if (!m_path.elementCount())
     339        return;
    338340    m_path = QPainterPath();
    339341}
Note: See TracChangeset for help on using the changeset viewer.