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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasGradient.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/CanvasGradient.h
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasGradient.h b/third_party/WebKit/Source/modules/canvas2d/CanvasGradient.h
index fd18da9d6c139194e030a882e1718c34f4344aa6..dcdc75fd037ebb3bf7923553e7fdea907de91427 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasGradient.h
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasGradient.h
@@ -57,6 +57,8 @@ class MODULES_EXPORT CanvasGradient final
void addColorStop(float value, const String& color, ExceptionState&);
+ bool isZeroSize() const { return m_isZeroSize; }
+
DEFINE_INLINE_TRACE() {}
private:
@@ -67,6 +69,7 @@ class MODULES_EXPORT CanvasGradient final
float r1);
RefPtr<Gradient> m_gradient;
+ const bool m_isZeroSize;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698