Chromium Code Reviews| 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(); |