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

Unified Diff: Source/core/css/resolver/ElementStyleResources.cpp

Issue 778723002: Refactor CSSGradientValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove m_colorIsDerivedFromElement 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
« no previous file with comments | « Source/core/css/CSSGradientValue.cpp ('k') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/ElementStyleResources.cpp
diff --git a/Source/core/css/resolver/ElementStyleResources.cpp b/Source/core/css/resolver/ElementStyleResources.cpp
index 0b937280aa39de886331136a28dcb85b74db110f..76b0327c901495eea4b6daf0f5a8ae53fa8c64ef 100644
--- a/Source/core/css/resolver/ElementStyleResources.cpp
+++ b/Source/core/css/resolver/ElementStyleResources.cpp
@@ -42,11 +42,8 @@ PassRefPtr<StyleImage> ElementStyleResources::styleImage(Document& document, con
if (value->isImageValue())
return cachedOrPendingFromValue(document, property, toCSSImageValue(value));
- if (value->isImageGeneratorValue()) {
- if (value->isGradientValue())
- return generatedOrPendingFromValue(property, toCSSGradientValue(value)->gradientWithStylesResolved(textLinkColors, currentColor).get());
+ if (value->isImageGeneratorValue())
return generatedOrPendingFromValue(property, toCSSImageGeneratorValue(value));
- }
if (value->isImageSetValue())
return setOrPendingFromValue(property, toCSSImageSetValue(value));
« no previous file with comments | « Source/core/css/CSSGradientValue.cpp ('k') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698