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

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: review comments 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10065298c61c4bfa389c2ea3cf25a5930036fb8a..4f8b434ff4238cd21d3a21f026aad80b845141cd 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -1746,9 +1746,10 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
}
void setIsScrollAnchorObject() { m_bitfields.setIsScrollAnchorObject(true); }
- // Clears the IsScrollAnchorObject bit, unless any ScrollAnchor still refers
- // to us.
- void maybeClearIsScrollAnchorObject();
+
+ // If unconditionally is true, you are responsible for ensuring that
+ // no ScrollAnchors reference this LayoutObject.
+ void clearIsScrollAnchorObject(bool unconditionally = false);
bool scrollAnchorDisablingStyleChanged() {
return m_bitfields.scrollAnchorDisablingStyleChanged();
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698