| Index: Source/core/html/canvas/CanvasStyle.cpp
|
| diff --git a/Source/core/html/canvas/CanvasStyle.cpp b/Source/core/html/canvas/CanvasStyle.cpp
|
| index a6a433670208250818959c47780dfd3da0de6e85..50e9b6a9e9e2c5a187749858f5771a247008dd32 100644
|
| --- a/Source/core/html/canvas/CanvasStyle.cpp
|
| +++ b/Source/core/html/canvas/CanvasStyle.cpp
|
| @@ -35,7 +35,6 @@
|
| #include "core/html/HTMLCanvasElement.h"
|
| #include "core/html/canvas/CanvasGradient.h"
|
| #include "core/html/canvas/CanvasPattern.h"
|
| -#include "platform/graphics/GraphicsContext.h"
|
| #include "wtf/PassRefPtr.h"
|
|
|
| namespace blink {
|
| @@ -111,40 +110,6 @@ PassRefPtrWillBeRawPtr<CanvasStyle> CanvasStyle::createFromPattern(PassRefPtrWil
|
| return adoptRefWillBeNoop(new CanvasStyle(pattern));
|
| }
|
|
|
| -void CanvasStyle::applyStrokeColor(GraphicsContext* context)
|
| -{
|
| - if (!context)
|
| - return;
|
| - switch (m_type) {
|
| - case ColorRGBA:
|
| - context->setStrokeColor(m_rgba);
|
| - break;
|
| - case Gradient:
|
| - context->setStrokeGradient(canvasGradient()->gradient());
|
| - break;
|
| - case ImagePattern:
|
| - context->setStrokePattern(canvasPattern()->pattern());
|
| - break;
|
| - }
|
| -}
|
| -
|
| -void CanvasStyle::applyFillColor(GraphicsContext* context)
|
| -{
|
| - if (!context)
|
| - return;
|
| - switch (m_type) {
|
| - case ColorRGBA:
|
| - context->setFillColor(m_rgba);
|
| - break;
|
| - case Gradient:
|
| - context->setFillGradient(canvasGradient()->gradient());
|
| - break;
|
| - case ImagePattern:
|
| - context->setFillPattern(canvasPattern()->pattern());
|
| - break;
|
| - }
|
| -}
|
| -
|
| SkShader* CanvasStyle::shader() const
|
| {
|
| switch (m_type) {
|
|
|