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

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

Issue 2814603002: Move LayoutObject to satellite NodeLayoutData that hangs from a Node. (Closed)
Patch Set: Review's 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
Index: third_party/WebKit/Source/core/dom/NodeRareData.cpp
diff --git a/third_party/WebKit/Source/core/dom/NodeRareData.cpp b/third_party/WebKit/Source/core/dom/NodeRareData.cpp
index 221b9ca6d06193cbaa22f92b5ea82c8f3b572d6f..c51efd99fdd94f3e057d6e8e01457901cf4326a1 100644
--- a/third_party/WebKit/Source/core/dom/NodeRareData.cpp
+++ b/third_party/WebKit/Source/core/dom/NodeRareData.cpp
@@ -77,7 +77,7 @@ DEFINE_TRACE_WRAPPERS_AFTER_DISPATCH(NodeRareData) {
}
void NodeRareData::FinalizeGarbageCollectedObject() {
- CHECK(!GetLayoutObject());
+ CHECK(!GetNodeLayoutData()->GetLayoutObject());
esprehn 2017/04/13 18:41:08 Can we put this in the destructor of NodeLayoutDat
nainar 2017/04/13 20:21:03 Done.
if (is_element_rare_data_)
static_cast<ElementRareData*>(this)->~ElementRareData();
else

Powered by Google App Engine
This is Rietveld 408576698