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

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: rebase and fix merge 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 bf394922aabce42351859a70193cee730f1d28c8..0e3438341da8ace8979ecc1558fdd229fc18ad78 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) {
skobes 2016/10/10 21:34:35 We want external callers to use maybeClearIsScroll
ymalik 2016/10/11 19:54:22 The reason I added this is because when we're clea
skobes 2016/10/11 20:51:40 Ah, good point. If ScrollAnchor is doing the clea
ymalik 2016/10/11 22:52:57 Done. I used a bool instead of enum because its ea
+ 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();
skobes 2016/10/10 21:34:35 Sharing the tree-walking code is nice but I'm not
ymalik 2016/10/11 19:54:22 Done.
bool scrollAnchorDisablingStyleChanged() {
return m_bitfields.scrollAnchorDisablingStyleChanged();

Powered by Google App Engine
This is Rietveld 408576698