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

Unified Diff: third_party/WebKit/Source/core/dom/ElementRareData.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 | « no previous file | 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/ElementRareData.h
diff --git a/third_party/WebKit/Source/core/dom/ElementRareData.h b/third_party/WebKit/Source/core/dom/ElementRareData.h
index ee04b8669aba6db68652f1293470e1313b9c7238..9422f5c891f417af0d66fa2e4ca28856bd3f9d3f 100644
--- a/third_party/WebKit/Source/core/dom/ElementRareData.h
+++ b/third_party/WebKit/Source/core/dom/ElementRareData.h
@@ -44,15 +44,14 @@
namespace blink {
-class LayoutObject;
class CompositorProxiedPropertySet;
class ResizeObservation;
class ResizeObserver;
class ElementRareData : public NodeRareData {
public:
- static ElementRareData* Create(LayoutObject* layout_object) {
- return new ElementRareData(layout_object);
+ static ElementRareData* Create(NodeLayoutData* node_layout_data) {
+ return new ElementRareData(node_layout_data);
}
~ElementRareData();
@@ -226,17 +225,16 @@ class ElementRareData : public NodeRareData {
Member<AccessibleNode> accessible_node_;
- explicit ElementRareData(LayoutObject*);
+ explicit ElementRareData(NodeLayoutData*);
};
-
DEFINE_TRAIT_FOR_TRACE_WRAPPERS(ElementRareData);
inline LayoutSize DefaultMinimumSizeForResizing() {
return LayoutSize(LayoutUnit::Max(), LayoutUnit::Max());
}
-inline ElementRareData::ElementRareData(LayoutObject* layout_object)
- : NodeRareData(layout_object),
+inline ElementRareData::ElementRareData(NodeLayoutData* node_layout_data)
+ : NodeRareData(node_layout_data),
minimum_size_for_resizing_(DefaultMinimumSizeForResizing()),
class_list_(nullptr) {
is_element_rare_data_ = true;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698