Chromium Code Reviews| 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)) { |