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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 1812763002: Pseudo and non pseudo elements should return correct computed content value (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/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..c69efb2559011fc867aad3d45691f35e596482d7 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(ElementContent elementContent, bool add)
+{
+ if (add) {
+ appendContent(ContentData::create(elementContent));
+ return;
+ }
+
+ rareNonInheritedData.access()->m_content = ContentData::create(elementContent);
+}
+
bool ComputedStyle::hasWillChangeCompositingHint() const
{
for (size_t i = 0; i < rareNonInheritedData->m_willChange->m_properties.size(); ++i) {

Powered by Google App Engine
This is Rietveld 408576698