Changeset 93774

Timestamp:
08/25/11 04:48:05 (3 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt] Path::boundingRect() is unnecessarily slow.
https://bugs.webkit.org/show_bug.cgi?id=66854

Patch by Andreas Kling <kling@webkit.org> on 2011-08-25
Reviewed by Benjamin Poulain.

  • html/canvas/CanvasRenderingContext2D.cpp:

(WebCore::CanvasRenderingContext2D::stroke): Remove Qt-specific optimization
since calling Path::boundingRect() will now do exactly the same thing.

  • platform/graphics/qt/PathQt.cpp:

(WebCore::Path::boundingRect): Return QPainterPath::controlPointRect() since
that is much faster than computing the (precise) QPainterPath::boundingRect()
and Path::boundingRect() is not expected to be 100% precise anyway.

Location:
trunk/Source/WebCore
Files:
3 edited

Note: See TracChangeset for help on using the changeset viewer.