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

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

Issue 2575343004: Invalidate LayoutView when the URL bar is hidden on short pages. (Closed)
Patch Set: Nit Created 4 years 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/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index 5beaba0026a59918b137bad08e3d1bce8224b2a5..fad2609f14eee7929194500c3f334ce685bc15d5 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -229,9 +229,9 @@ void LayoutView::layout() {
IncludeScrollbarsInRect includeScrollbars =
RuntimeEnabledFeatures::rootLayerScrollingEnabled() ? IncludeScrollbars
: ExcludeScrollbars;
- FloatSize viewSize(frameView()->visibleContentSize(includeScrollbars));
setShouldDoFullPaintInvalidationOnResizeIfNeeded(
- offsetWidth() != viewSize.width(), offsetHeight() != viewSize.height());
+ offsetWidth() != layoutSize(includeScrollbars).width(),
bokan 2016/12/22 00:45:49 In https://codereview.chromium.org/2461463004, I m
+ offsetHeight() != layoutSize(includeScrollbars).height());
if (pageLogicalHeight() && shouldUsePrintingLayout()) {
m_minPreferredLogicalWidth = m_maxPreferredLogicalWidth = logicalWidth();

Powered by Google App Engine
This is Rietveld 408576698