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

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

Issue 767343003: Make currentColor keyword in linear-gradient work (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Resolve gradient colors later Created 6 years 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: Source/core/css/CSSGradientValue.h
diff --git a/Source/core/css/CSSGradientValue.h b/Source/core/css/CSSGradientValue.h
index 4a5f7c0ac252a57800ac5994da25933c029b22b8..2a6690b03d312f2aeb29cae52b680e167a281d10 100644
--- a/Source/core/css/CSSGradientValue.h
+++ b/Source/core/css/CSSGradientValue.h
@@ -135,7 +135,7 @@ protected:
{
}
- void addStops(Gradient*, const CSSToLengthConversionData&, float maxLengthForRepeat = 0);
+ void addStops(Gradient*, const CSSToLengthConversionData&, float maxLengthForRepeat, const RenderObject&);
// Resolve points/radii to front end values.
FloatPoint computeEndPoint(CSSPrimitiveValue*, CSSPrimitiveValue*, const CSSToLengthConversionData&, const IntSize&);
@@ -171,7 +171,7 @@ public:
String customCSSText() const;
// Create the gradient for a given size.
- PassRefPtr<Gradient> createGradient(const CSSToLengthConversionData&, const IntSize&);
+ PassRefPtr<Gradient> createGradient(const CSSToLengthConversionData&, const IntSize&, const RenderObject&);
PassRefPtrWillBeRawPtr<CSSLinearGradientValue> clone() const
{
@@ -223,7 +223,7 @@ public:
void setEndVerticalSize(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> val) { m_endVerticalSize = val; }
// Create the gradient for a given size.
- PassRefPtr<Gradient> createGradient(const CSSToLengthConversionData&, const IntSize&);
+ PassRefPtr<Gradient> createGradient(const CSSToLengthConversionData&, const IntSize&, const RenderObject&);
bool equals(const CSSRadialGradientValue&) const;
« no previous file with comments | « LayoutTests/fast/css/linear-gradient-currentcolor2-expected.html ('k') | Source/core/css/CSSGradientValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698