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

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

Issue 2394053004: Clear scroll anchor on all parent scrollers from ScrollAnchor::clear (Closed)
Patch Set: Created 4 years, 2 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 cd1f5dd56c8a842281ac153310b44783d3cdb3ec..b2cb8c65846274629bbe3557c647bc3d3e8e2b45 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1660,9 +1660,14 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
return MutableForPainting(*this);
}
- void setIsScrollAnchorObject() { m_bitfields.setIsScrollAnchorObject(true); }
+ void setIsScrollAnchorObject(bool value) {
+ m_bitfields.setIsScrollAnchorObject(value);
+ }
// Clears the IsScrollAnchorObject bit, unless any ScrollAnchor still refers to us.
void maybeClearIsScrollAnchorObject();
+ // Clears the scroll anchor on all scrollableAreas that are in the ancestor
+ // chain of this LayoutObject.
+ void clearScrollAnchors();
bool scrollAnchorDisablingStyleChanged() {
return m_bitfields.scrollAnchorDisablingStyleChanged();

Powered by Google App Engine
This is Rietveld 408576698