Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.cpp

Issue 2816873002: Update PaintLayer size during layout, not after.
Patch Set: s/UpdateICBAndViewportSize/ResizeFrameView/ Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 e8af5243d7eb00bbb6cdc56dbf5ff7536733344d..49d7fddc0d1528e312f8b3162982590f50dfb0cb 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -751,7 +751,7 @@ void LayoutBox::UpdateAfterLayout() {
// transform after layout.
if (HasLayer()) {
Layer()->UpdateTransformationMatrix();
- Layer()->UpdateScrollingAfterLayout();
+ Layer()->UpdateSizeAndScrollingAfterLayout();
}
}
@@ -841,7 +841,7 @@ void LayoutBox::SetLocationAndUpdateOverflowControlsIfNeeded(
SetLocation(location);
if (PixelSnappedBorderBoxRect().Size() !=
old_pixel_snapped_border_rect_size) {
- Layer()->UpdateScrollingAfterLayout();
+ Layer()->UpdateSizeAndScrollingAfterLayout();
}
return;
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698