| Index: third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| index 20681097384728f6e84ccc056967ab3512b3b711..09be9cb5a6e1b0fb64fe10169c42d5cff08f3dea 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| @@ -503,6 +503,11 @@ StyleDifference ComputedStyle::visualInvalidationDiff(const ComputedStyle& other
|
|
|
| updatePropertySpecificDifferences(other, diff);
|
|
|
| + // TODO(skobes): Refine the criteria for ScrollAnchor-disabling properties.
|
| + // Some things set needsLayout but shouldn't disable scroll anchoring.
|
| + if (diff.needsLayout() || diff.transformChanged())
|
| + diff.setScrollAnchorDisablingPropertyChanged();
|
| +
|
| // Cursors are not checked, since they will be set appropriately in response to mouse events,
|
| // so they don't need to cause any paint invalidation or layout.
|
|
|
|
|