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

Unified Diff: third_party/WebKit/Source/core/css/CSSGradientValue.h

Issue 1915763002: CSS conic gradient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | third_party/WebKit/Source/core/css/CSSGradientValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSGradientValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSGradientValue.h b/third_party/WebKit/Source/core/css/CSSGradientValue.h
index 78e085ddaee92009cb92f43525dbe3b4f81ff927..639bc6124817c8398549be6bf2ec58759dbefe86 100644
--- a/third_party/WebKit/Source/core/css/CSSGradientValue.h
+++ b/third_party/WebKit/Source/core/css/CSSGradientValue.h
@@ -43,7 +43,8 @@ enum CSSGradientType {
CSSPrefixedLinearGradient,
CSSPrefixedRadialGradient,
CSSLinearGradient,
- CSSRadialGradient
+ CSSRadialGradient,
+ CSSConicGradient,
};
enum CSSGradientRepeat { NonRepeating, Repeating };
@@ -226,6 +227,30 @@ private:
DEFINE_CSS_VALUE_TYPE_CASTS(CSSRadialGradientValue, isRadialGradientValue());
+class CSSConicGradientValue final : public CSSGradientValue {
+public:
+ static CSSConicGradientValue* create(CSSGradientRepeat repeat)
+ {
+ return new CSSConicGradientValue(repeat);
+ }
+
+ String customCSSText() const;
+
+ // Create the gradient for a given size.
+ PassRefPtr<Gradient> createGradient(const CSSToLengthConversionData&, const IntSize&, const LayoutObject&);
+
+ bool equals(const CSSConicGradientValue&) const;
+
+ DECLARE_TRACE_AFTER_DISPATCH();
+
+private:
+ CSSConicGradientValue(CSSGradientRepeat repeat)
+ : CSSGradientValue(ConicGradientClass, repeat, CSSConicGradient)
+ { }
+};
+
+DEFINE_CSS_VALUE_TYPE_CASTS(CSSConicGradientValue, isConicGradientValue());
+
} // namespace blink
#endif // CSSGradientValue_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSGradientValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698