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

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

Issue 2814603002: Move LayoutObject to satellite NodeLayoutData that hangs from a Node. (Closed)
Patch Set: Question Created 3 years, 8 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 c560075c0b854c1226aadf83189c8162ebf416e1..80cbec54c8c9654cc726272611443cb2b5b2fde7 100644
--- a/third_party/WebKit/Source/core/dom/NodeRareData.h
+++ b/third_party/WebKit/Source/core/dom/NodeRareData.h
@@ -98,8 +98,8 @@ class NodeRareData : public GarbageCollectedFinalized<NodeRareData>,
WTF_MAKE_NONCOPYABLE(NodeRareData);
public:
- static NodeRareData* Create(LayoutObject* layout_object) {
- return new NodeRareData(layout_object);
+ static NodeRareData* Create() {
+ return new NodeRareData();
}
void ClearNodeLists() { node_lists_.Clear(); }
@@ -163,9 +163,8 @@ class NodeRareData : public GarbageCollectedFinalized<NodeRareData>,
DECLARE_TRACE_WRAPPERS_AFTER_DISPATCH();
protected:
- explicit NodeRareData(LayoutObject* layout_object)
- : NodeRareDataBase(layout_object),
- connected_frame_count_(0),
+ explicit NodeRareData()
+ : connected_frame_count_(0),
element_flags_(0),
restyle_flags_(0),
is_element_rare_data_(false) {}

Powered by Google App Engine
This is Rietveld 408576698