diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/qt/PathQt.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/qt/PathQt.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/WebCore/platform/graphics/qt/PathQt.cpp b/Source/WebCore/platform/graphics/qt/PathQt.cpp index 4f65151b7..577023b46 100644 --- a/Source/WebCore/platform/graphics/qt/PathQt.cpp +++ b/Source/WebCore/platform/graphics/qt/PathQt.cpp @@ -38,8 +38,8 @@ #include "NativeImageQt.h" #include "StrokeStyleApplier.h" #include <QPainterPath> -#include <QTransform> #include <QString> +#include <QTransform> #include <wtf/MathExtras.h> #include <wtf/OwnPtr.h> #include <wtf/text/WTFString.h> @@ -149,11 +149,16 @@ void Path::translate(const FloatSize& size) m_path.translate(size.width(), size.height()); } -FloatRect Path::boundingRect() const +FloatRect Path::fastBoundingRect() const { return m_path.controlPointRect(); } +FloatRect Path::boundingRect() const +{ + return m_path.boundingRect(); +} + FloatRect Path::strokeBoundingRect(StrokeStyleApplier* applier) const { GraphicsContext* context = scratchContext(); |