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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 2921463004: [LayoutNG] PODify NGLayoutInputNode and sub-classes. (Closed)
Patch Set: new ng-bot expectations Created 3 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/layout/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index ed733a988b011fc8b3b7fa92d08b1ad04fa7553b..f8c02f8cf2d3b66418eb3496788ef80ea9b4b8f4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -598,6 +598,11 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
bitfields_.SetHasCounterNodeMap(has_counter_node_map);
}
+ bool LayoutNGInline() const { return bitfields_.LayoutNGInline(); }
+ void SetLayoutNGInline(bool layout_ng_inline) {
+ bitfields_.SetLayoutNGInline(layout_ng_inline);
+ }
+
bool EverHadLayout() const { return bitfields_.EverHadLayout(); }
bool ChildrenInline() const { return bitfields_.ChildrenInline(); }
@@ -2295,6 +2300,7 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
background_changed_since_last_paint_invalidation_(false),
outline_may_be_affected_by_descendants_(false),
previous_outline_may_be_affected_by_descendants_(false),
+ layout_ng_inline_(false),
positioned_state_(kIsStaticallyPositioned),
selection_state_(static_cast<unsigned>(SelectionState::kNone)),
background_obscuration_state_(kBackgroundObscurationStatusInvalid),
@@ -2494,9 +2500,11 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
ADD_BOOLEAN_BITFIELD(previous_outline_may_be_affected_by_descendants_,
PreviousOutlineMayBeAffectedByDescendants);
+ ADD_BOOLEAN_BITFIELD(layout_ng_inline_, LayoutNGInline);
+
protected:
// Use protected to avoid warning about unused variable.
- unsigned unused_bits_ : 4;
+ unsigned unused_bits_ : 3;
private:
// This is the cached 'position' value of this object

Powered by Google App Engine
This is Rietveld 408576698