| 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 4639c239406f387a4bb250408f3514529fab304c..5ebf1b6cbcdb5e3a88e03274d743659dfdd54307 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -746,11 +746,13 @@ FloatRect LayoutBox::LocalBoundingBoxRectForAccessibility() const {
|
| frame_rect_.Height().ToFloat());
|
| }
|
|
|
| -void LayoutBox::UpdateLayerTransformAfterLayout() {
|
| +void LayoutBox::UpdateAfterLayout() {
|
| // Transform-origin depends on box size, so we need to update the layer
|
| // transform after layout.
|
| - if (HasLayer())
|
| + if (HasLayer()) {
|
| Layer()->UpdateTransformationMatrix();
|
| + Layer()->UpdateScrollingAfterLayout();
|
| + }
|
| }
|
|
|
| LayoutUnit LayoutBox::LogicalHeightWithVisibleOverflow() const {
|
| @@ -838,8 +840,9 @@ void LayoutBox::SetLocationAndUpdateOverflowControlsIfNeeded(
|
| PixelSnappedBorderBoxRect().Size();
|
| SetLocation(location);
|
| if (PixelSnappedBorderBoxRect().Size() !=
|
| - old_pixel_snapped_border_rect_size)
|
| - GetScrollableArea()->UpdateAfterLayout();
|
| + old_pixel_snapped_border_rect_size) {
|
| + Layer()->UpdateScrollingAfterLayout();
|
| + }
|
| return;
|
| }
|
|
|
|
|