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

Unified Diff: Source/core/html/canvas/CanvasRenderingContext2D.h

Issue 752083003: Use IDL union types for CanvasRenderingContext2D.{fill,stroke}Style (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
Index: Source/core/html/canvas/CanvasRenderingContext2D.h
diff --git a/Source/core/html/canvas/CanvasRenderingContext2D.h b/Source/core/html/canvas/CanvasRenderingContext2D.h
index 05fe12f4380a0956f1e886ee7a7b8928c1eedce1..988591d85fecff0c68312ffdc0c733e362f4257f 100644
--- a/Source/core/html/canvas/CanvasRenderingContext2D.h
+++ b/Source/core/html/canvas/CanvasRenderingContext2D.h
@@ -79,11 +79,11 @@ public:
}
virtual ~CanvasRenderingContext2D();
- CanvasStyle* strokeStyle() const;
- void setStrokeStyle(PassRefPtrWillBeRawPtr<CanvasStyle>);
+ void strokeStyle(StringOrCanvasGradientOrCanvasPattern&) const;
+ void setStrokeStyle(const StringOrCanvasGradientOrCanvasPattern&);
- CanvasStyle* fillStyle() const;
- void setFillStyle(PassRefPtrWillBeRawPtr<CanvasStyle>);
+ void fillStyle(StringOrCanvasGradientOrCanvasPattern&) const;
+ void setFillStyle(const StringOrCanvasGradientOrCanvasPattern&);
float lineWidth() const;
void setLineWidth(float);

Powered by Google App Engine
This is Rietveld 408576698