Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h |
| diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h |
| index e50b22e5205e7f496382be7851be5b05eca1ee41..4632339d4927ee7841947a2413c0816fe88ec85e 100644 |
| --- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h |
| +++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h |
| @@ -475,6 +475,11 @@ class CORE_EXPORT PaintLayerScrollableArea final |
| void invalidateStickyConstraintsFor(PaintLayer*, |
| bool needsCompositingUpdate = true); |
| + bool hasMainThreadScrollingReason(uint32_t reason) const { |
| + return m_reasons & reason; |
| + } |
| + void flipMainThreadScrollingReason(uint32_t reason) { m_reasons ^= reason; } |
| + |
| uint64_t id() const; |
| DECLARE_VIRTUAL_TRACE(); |
| @@ -579,6 +584,9 @@ class CORE_EXPORT PaintLayerScrollableArea final |
| std::unique_ptr<PaintLayerScrollableAreaRareData> m_rareData; |
| + // MainThreadScrollingReason due to the property of each layout object |
|
bokan
2016/12/14 13:28:59
"property of each layout object" -> "properties of
yigu
2016/12/14 21:17:33
Done.
|
| + uint32_t m_reasons; |
| + |
| #if ENABLE(ASSERT) |
| bool m_hasBeenDisposed; |
| #endif |