2009-01-27 Evan Stade <estade@chromium.org>
authordglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Jan 2009 17:13:59 +0000 (17:13 +0000)
committerdglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Jan 2009 17:13:59 +0000 (17:13 +0000)
commit5da37ab1e365988989ce96e1e24c21b3804b2543
treef7777c4d6416c67b1235f6e47254929f2fba1ca6
parentdb5a890105c6b5bda6ad89b51c14a5c7ff8a41be
2009-01-27  Evan Stade  <estade@chromium.org>

        Reviewed by Nikolas Zimmermann.

        https://bugs.webkit.org/show_bug.cgi?id=23435
        Make spreadMethod a member of Gradient rather than GraphicsContext.
        Implement spreadMethod for Skia.

        * platform/graphics/Gradient.cpp:
        (WebCore::Gradient::Gradient):
        * platform/graphics/Gradient.h:
        (WebCore::Gradient::setSpreadMethod):
        (WebCore::Gradient::spreadMethod):
        * platform/graphics/GraphicsContext.cpp:
        * platform/graphics/GraphicsContext.h:
        * platform/graphics/GraphicsContextPrivate.h:
        * platform/graphics/GraphicsTypes.h:
        (WebCore::):
        * platform/graphics/cairo/GradientCairo.cpp:
        (WebCore::Gradient::platformGradient):
        * platform/graphics/cairo/GraphicsContextCairo.cpp:
        (WebCore::GraphicsContext::fillPath):
        (WebCore::GraphicsContext::strokePath):
        * platform/graphics/qt/GradientQt.cpp:
        (WebCore::Gradient::platformGradient):
        * platform/graphics/qt/GraphicsContextQt.cpp:
        (WebCore::GraphicsContext::fillPath):
        (WebCore::GraphicsContext::strokePath):
        * platform/graphics/skia/GradientSkia.cpp:
        (WebCore::Gradient::platformGradient):
        * svg/SVGLinearGradientElement.cpp:
        (WebCore::SVGLinearGradientElement::buildGradient):
        * svg/SVGRadialGradientElement.cpp:
        (WebCore::SVGRadialGradientElement::buildGradient):
        * svg/graphics/SVGPaintServerGradient.cpp:
        (WebCore::SVGPaintServerGradient::SVGPaintServerGradient):
        (WebCore::SVGPaintServerGradient::setup):
        (WebCore::SVGPaintServerGradient::externalRepresentation):
        * svg/graphics/SVGPaintServerGradient.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40292 268f45cc-cd09-0410-ab3c-d52691b4dbfc
16 files changed:
WebCore/ChangeLog
WebCore/platform/graphics/Gradient.cpp
WebCore/platform/graphics/Gradient.h
WebCore/platform/graphics/GraphicsContext.cpp
WebCore/platform/graphics/GraphicsContext.h
WebCore/platform/graphics/GraphicsContextPrivate.h
WebCore/platform/graphics/GraphicsTypes.h
WebCore/platform/graphics/cairo/GradientCairo.cpp
WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp
WebCore/platform/graphics/qt/GradientQt.cpp
WebCore/platform/graphics/qt/GraphicsContextQt.cpp
WebCore/platform/graphics/skia/GradientSkia.cpp
WebCore/svg/SVGLinearGradientElement.cpp
WebCore/svg/SVGRadialGradientElement.cpp
WebCore/svg/graphics/SVGPaintServerGradient.cpp
WebCore/svg/graphics/SVGPaintServerGradient.h