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

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: esprehn comments 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/dom/NodeRareData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f33fbe6f6d41bc3223eb461cb410ea55f6eb2453..0e50069f30dc23e126247726572919a9127408c4 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(NodeLayoutData* node_layout_data) {
+ return new NodeRareData(node_layout_data);
}
void ClearNodeLists() { node_lists_.Clear(); }
@@ -163,12 +163,14 @@ class NodeRareData : public GarbageCollectedFinalized<NodeRareData>,
DECLARE_TRACE_WRAPPERS_AFTER_DISPATCH();
protected:
- explicit NodeRareData(LayoutObject* layout_object)
- : NodeRareDataBase(layout_object),
+ explicit NodeRareData(NodeLayoutData* node_layout_data)
+ : NodeRareDataBase(node_layout_data),
connected_frame_count_(0),
element_flags_(0),
restyle_flags_(0),
- is_element_rare_data_(false) {}
+ is_element_rare_data_(false) {
+ CHECK_NE(node_layout_data, nullptr);
+ }
private:
Member<NodeListsNodeData> node_lists_;
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/dom/NodeRareData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698