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

Unified Diff: third_party/WebKit/Source/platform/graphics/Gradient.h

Issue 2754703003: Remove Gradient point/radius setters (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSGradientValue.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/Gradient.h
diff --git a/third_party/WebKit/Source/platform/graphics/Gradient.h b/third_party/WebKit/Source/platform/graphics/Gradient.h
index e4260b945c0e4f2b0061cbf7cb7be2f6ec394755..bb4832b4f01111bf5d06547ea7f6c4a5208186a1 100644
--- a/third_party/WebKit/Source/platform/graphics/Gradient.h
+++ b/third_party/WebKit/Source/platform/graphics/Gradient.h
@@ -96,37 +96,9 @@ class PLATFORM_EXPORT Gradient : public RefCounted<Gradient> {
const FloatPoint& p0() const { return m_p0; }
const FloatPoint& p1() const { return m_p1; }
- void setP0(const FloatPoint& p) {
- if (m_p0 == p)
- return;
-
- m_p0 = p;
- }
-
- void setP1(const FloatPoint& p) {
- if (m_p1 == p)
- return;
-
- m_p1 = p;
- }
-
float startRadius() const { return m_r0; }
float endRadius() const { return m_r1; }
- void setStartRadius(float r) {
- if (m_r0 == r)
- return;
-
- m_r0 = r;
- }
-
- void setEndRadius(float r) {
- if (m_r1 == r)
- return;
-
- m_r1 = r;
- }
-
void applyToFlags(PaintFlags&, const SkMatrix& localMatrix);
GradientSpreadMethod spreadMethod() const { return m_spreadMethod; }
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSGradientValue.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698