2008-12-21 Dirk Schulze <krit@webkit.org>
authorkrit@webkit.org <krit@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 21 Dec 2008 23:44:16 +0000 (23:44 +0000)
committerkrit@webkit.org <krit@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 21 Dec 2008 23:44:16 +0000 (23:44 +0000)
commitdfa22cda5cefd7de5662c11a33f8485cdd60525f
tree4d4ca588c9b69ceaa0138c97c2523f7e9b05797b
parent08d1b8461041a437ec8de9bd10a64dc0d0d0b210
2008-12-21  Dirk Schulze  <krit@webkit.org>

        Reviewed by Darin Adler, Nikolas Zimmermann.

        Move the the platform dependent strokeBBox functionality out of RenderPath
        into Path with strokeBoundingRect.

        RenderPath clean-up for strokeBoundingBox
        [https://bugs.webkit.org/show_bug.cgi?id=22902]

        * GNUmakefile.am:
        * WebCore.xcodeproj/project.pbxproj:
        * platform/graphics/GraphicsContext.h:
        * platform/graphics/Path.h:
        * platform/graphics/StrokeStyleApplier.h: Added.
        (WebCore::StrokeStyleApplier::~StrokeStyleApplier):
        * platform/graphics/cairo/PathCairo.cpp:
        (WebCore::Path::strokeBoundingRect):
        * platform/graphics/cg/PathCG.cpp:
        (WebCore::createScratchContext):
        (WebCore::scratchContext):
        (WebCore::Path::strokeBoundingRect):
        * platform/graphics/qt/GraphicsContextQt.cpp:
        (WebCore::GraphicsContext::pen):
        * platform/graphics/qt/PathQt.cpp:
        (WebCore::Path::strokeBoundingRect):
        * rendering/RenderPath.cpp:
        (WebCore::StrokeBoundingRectStyleApplier::StrokeBoundingRectStyleApplier):
        (WebCore::StrokeBoundingRectStyleApplier::strokeStyle):
        (WebCore::RenderPath::relativeBBox):
        * rendering/RenderPath.h:
        * svg/graphics/cairo/RenderPathCairo.cpp:
        * svg/graphics/cg/RenderPathCg.cpp:
        * svg/graphics/qt/RenderPathQt.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@39427 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
WebCore/ChangeLog
WebCore/GNUmakefile.am
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/platform/graphics/GraphicsContext.h
WebCore/platform/graphics/Path.h
WebCore/platform/graphics/StrokeStyleApplier.h [new file with mode: 0644]
WebCore/platform/graphics/cairo/PathCairo.cpp
WebCore/platform/graphics/cg/PathCG.cpp
WebCore/platform/graphics/qt/GraphicsContextQt.cpp
WebCore/platform/graphics/qt/PathQt.cpp
WebCore/rendering/RenderPath.cpp
WebCore/rendering/RenderPath.h
WebCore/svg/graphics/cairo/RenderPathCairo.cpp
WebCore/svg/graphics/cg/RenderPathCg.cpp
WebCore/svg/graphics/qt/RenderPathQt.cpp