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

Unified Diff: third_party/WebKit/Source/core/dom/NodeRareData.h

Issue 1962953002: Storage of ComputedStyle separate from LayoutObject. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed ComputedStyle from NodeRareData, instead use existing ComputedStyle from ElementRareData Created 4 years, 6 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/dom/NodeRareData.h
diff --git a/third_party/WebKit/Source/core/dom/NodeRareData.h b/third_party/WebKit/Source/core/dom/NodeRareData.h
index 5103db6194cbe99101c1a70726b6d6117c71ca65..694288ff0fc8fae0ad45fee8ebfe440f5f550ce6 100644
--- a/third_party/WebKit/Source/core/dom/NodeRareData.h
+++ b/third_party/WebKit/Source/core/dom/NodeRareData.h
@@ -24,6 +24,7 @@
#include "core/dom/MutationObserverRegistration.h"
#include "core/dom/NodeListsNodeData.h"
+#include "core/style/ComputedStyle.h"
Timothy Loh 2016/06/23 23:58:02 not needed?
#include "platform/heap/Handle.h"
#include "wtf/HashSet.h"
@@ -93,6 +94,8 @@ public:
--m_connectedFrameCount;
}
+ bool isElementRareData() const { return m_isElementRareData; }
+
bool hasElementFlag(ElementFlags mask) const { return m_elementFlags & mask; }
void setElementFlag(ElementFlags mask, bool value) { m_elementFlags = (m_elementFlags & ~mask) | (-(int32_t)value & mask); }
void clearElementFlag(ElementFlags mask) { m_elementFlags &= ~mask; }

Powered by Google App Engine
This is Rietveld 408576698