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

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

Issue 1647793002: Use ScrollAnchor in FrameView and PaintLayerScrollableArea. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@anchor-skeleton
Patch Set: move save/restore from LayoutBlockFlow into LayoutBlock Created 4 years, 11 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 2ae6ab8511bd84dd5501bb804e1f7c8eb342d590..fe24cf4b973425e78e627dfd4eaff23eeded4aed 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1330,6 +1330,10 @@ public:
};
MutableForPainting mutableForPainting() const { return MutableForPainting(*this); }
+ void setIsScrollAnchorObject() { m_bitfields.setIsScrollAnchorObject(true); }
+ // Clears the IsScrollAnchorObject bit, unless any ScrollAnchor still refers to us.
+ void maybeClearIsScrollAnchorObject();
+
protected:
enum LayoutObjectType {
LayoutObjectBr,
@@ -1674,6 +1678,7 @@ private:
, m_alwaysCreateLineBoxesForLayoutInline(false)
, m_lastBoxDecorationBackgroundObscured(false)
, m_isBackgroundAttachmentFixedObject(false)
+ , m_isScrollAnchorObject(false)
, m_positionedState(IsStaticallyPositioned)
, m_selectionState(SelectionNone)
, m_boxDecorationBackgroundState(NoBoxDecorationBackground)
@@ -1810,6 +1815,7 @@ private:
ADD_BOOLEAN_BITFIELD(lastBoxDecorationBackgroundObscured, LastBoxDecorationBackgroundObscured);
ADD_BOOLEAN_BITFIELD(isBackgroundAttachmentFixedObject, IsBackgroundAttachmentFixedObject);
+ ADD_BOOLEAN_BITFIELD(isScrollAnchorObject, IsScrollAnchorObject);
private:
// This is the cached 'position' value of this object

Powered by Google App Engine
This is Rietveld 408576698