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

Unified Diff: third_party/WebKit/Source/core/dom/ElementData.cpp

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT Created 5 years, 1 month 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 | « third_party/WebKit/Source/core/dom/ElementData.h ('k') | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/ElementData.cpp
diff --git a/third_party/WebKit/Source/core/dom/ElementData.cpp b/third_party/WebKit/Source/core/dom/ElementData.cpp
index 29dc6f308c55c2a9ebe9001699b42969e389556e..f316a12573a0a6d9ab6bd98210359da224f8b592 100644
--- a/third_party/WebKit/Source/core/dom/ElementData.cpp
+++ b/third_party/WebKit/Source/core/dom/ElementData.cpp
@@ -50,6 +50,18 @@ static size_t sizeForShareableElementDataWithAttributeCount(unsigned count)
return sizeof(ShareableElementData) + sizeof(Attribute) * count;
}
+const StylePropertySet* ElementData::inlineStyle() const
+{
+ return m_inlineStyle.get();
+}
+
+const StylePropertySet* ElementData::presentationAttributeStyle() const
+{
+ if (!m_isUnique)
+ return nullptr;
+ return toUniqueElementData(this)->m_presentationAttributeStyle.get();
+}
+
ElementData::ElementData()
: m_isUnique(true)
, m_arraySize(0)
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementData.h ('k') | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698