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

Unified Diff: lib/dom/dom.dart

Issue 8423024: Fix for strokeStyle and fillStyle. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/frog
Patch Set: Created 9 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/dom.dart
diff --git a/lib/dom/dom.dart b/lib/dom/dom.dart
index 4fd227f49d2c1c35bcade8252c80247ed91f4adb..5e0825894fdd4fe67eb3ba299b1681e0a54869ef 100644
--- a/lib/dom/dom.dart
+++ b/lib/dom/dom.dart
@@ -292,6 +292,10 @@ class CanvasRenderingContext native "CanvasRenderingContext" {
class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRenderingContext2D" {
+ // TODO(vsm): Auto-generate these two fields.
+ var fillStyle;
+ var strokeStyle;
+
String font;
num globalAlpha;
@@ -382,7 +386,10 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
void setFillColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = null, num b_OR_y = null, num a_OR_k = null, num a = null]) native;
- void setFillStyle(var color_OR_gradient_OR_pattern) native;
+ // TODO(vsm): Auto-generate this method.
+ void setFillStyle(var color_OR_gradient_OR_pattern) {
+ this.fillStyle = color_OR_gradient_OR_pattern;
+ }
void setLineCap(String cap) native;
@@ -396,7 +403,10 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
void setStrokeColor(var c_OR_color_OR_grayLevel_OR_r, [num alpha_OR_g_OR_m = null, num b_OR_y = null, num a_OR_k = null, num a = null]) native;
- void setStrokeStyle(var color_OR_gradient_OR_pattern) native;
+ // TODO(vsm): Auto-generate this method.
+ void setStrokeStyle(var color_OR_gradient_OR_pattern) {
+ this.strokeStyle = color_OR_gradient_OR_pattern;
+ }
void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698