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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp

Issue 2220253002: [Typed-OM] Add Image typedom_types to properties and enable them to be set with StyleMap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@CSSURLImageValue
Patch Set: Add comments Created 4 years, 4 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/core/css/resolver/StyleBuilderCustom.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
index 9c621901859d2b610cc0b928e9a1a4e6d459a95e..90b3b30ae0dc82645ade92de2259583e6d8fb515 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp
@@ -682,6 +682,11 @@ void StyleBuilderFunctions::applyValueCSSPropertyContent(StyleResolverState& sta
return;
}
+ if (value.isImageValue()) {
+ state.style()->setContent(ContentData::create(state.styleImage(CSSPropertyContent, value)));
+ return;
+ }
meade_UTC10 2016/08/10 07:16:05 What's this for?
anthonyhkf 2016/08/10 07:26:09 I cannot use "styleMap.set('content', ...)" if it
Timothy Loh 2016/08/10 07:44:05 Aside from the values 'none' and 'normal', content
meade_UTC10 2016/08/11 00:44:41 Also, if a reviewer asks you to do something and y
+
ContentData* firstContent = nullptr;
ContentData* prevContent = nullptr;
for (auto& item : toCSSValueList(value)) {

Powered by Google App Engine
This is Rietveld 408576698