Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1193)

Unified Diff: Source/core/html/canvas/CanvasStyle.cpp

Issue 1152513003: Remove dead code from CanvasStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/canvas/CanvasStyle.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « Source/core/html/canvas/CanvasStyle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698