Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| index b9fc52f1614e8e8d8ba7aec0de6906023f0fa481..3855b720f4ec244aef7acf3dae1f4a7001fd43a9 100644 |
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
| @@ -55,6 +55,7 @@ |
| #include "core/layout/shapes/ShapeOutsideInfo.h" |
| #include "core/page/AutoscrollController.h" |
| #include "core/page/Page.h" |
| +#include "core/page/scrolling/ScrollingCoordinator.h" |
| #include "core/page/scrolling/SnapCoordinator.h" |
| #include "core/paint/BackgroundImageGeometry.h" |
| #include "core/paint/BoxPaintInvalidator.h" |
| @@ -335,6 +336,11 @@ void LayoutBox::styleDidChange(StyleDifference diff, |
| } |
| } |
| + if (diff.transformChanged()) { |
| + if (ScrollingCoordinator* scrollingCoordinator = |
| + document().frame()->page()->scrollingCoordinator()) |
| + scrollingCoordinator->notifyTransformChanged(*this); |
|
chrishtr
2017/01/09 19:12:46
Just call scrollingCoordinator->notifyGeometryChan
yigu
2017/01/09 19:22:02
It looks like notifyGeometryChanged() modifies oth
|
| + } |
| // Non-atomic inlines should be LayoutInline or LayoutText, not LayoutBox. |
| DCHECK(!isInline() || isAtomicInlineLevel()); |
| } |