Index: third_party/WebKit/Source/core/style/ComputedStyle.cpp |
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp |
index adb73a602df75ebd5d50748f5c497c90c5da03b8..f087cc75932d69852f7f4a8c35ff58287132a1a6 100644 |
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp |
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp |
@@ -926,6 +926,16 @@ void ComputedStyle::setContent(QuoteType quote, bool add) |
rareNonInheritedData.access()->m_content = ContentData::create(quote); |
} |
+void ComputedStyle::setContent(CSSValueID cssValueID, bool add) |
+{ |
+ if (add) { |
+ appendContent(ContentData::create(cssValueID)); |
+ return; |
+ } |
+ |
+ rareNonInheritedData.access()->m_content = ContentData::create(cssValueID); |
+} |
+ |
bool ComputedStyle::hasWillChangeCompositingHint() const |
{ |
for (size_t i = 0; i < rareNonInheritedData->m_willChange->m_properties.size(); ++i) { |