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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h

Issue 2785203002: Split Gradient impl into separate classes (Closed)
Patch Set: review Created 3 years, 9 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
Index: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
index 81aee6e3a900cb0b005efc3bdc5b2d6fc632fe4b..e5e22e80f42604e515bffe5d3938e0b922744516 100644
--- a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
+++ b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h
@@ -396,7 +396,7 @@ bool BaseRenderingContext2D::draw(
CanvasStyle* style = state().style(paintType);
if (style) {
CanvasGradient* gradient = style->getCanvasGradient();
- if (gradient && gradient->getGradient()->isZeroSize())
+ if (gradient && gradient->isZeroSize())
return false;
}

Powered by Google App Engine
This is Rietveld 408576698