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

Unified Diff: Source/core/layout/LayoutObject.cpp

Issue 942963002: Need to invalidate scrollbars in case they get repositioned. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: code review - override final Created 5 years, 10 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
« no previous file with comments | « Source/core/layout/LayoutObject.h ('k') | Source/core/rendering/RenderBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index 822373f88222ca5d4d057771d71ac812fcc2e727..4f9f22816662da5876519578f5aa07733f999eb3 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -636,6 +636,11 @@ bool LayoutObject::skipInvalidationWhenLaidOutChildren() const
if (isSVG() || (isRenderBlockFlow() && toRenderBlockFlow(this)->firstLineBox()))
return false;
+ // In case scrollbars got repositioned (which will typically happen if the layout object got
+ // resized), we cannot skip invalidation.
+ if (hasNonCompositedScrollbars())
+ return false;
+
return rendererHasNoBoxEffect();
}
« no previous file with comments | « Source/core/layout/LayoutObject.h ('k') | Source/core/rendering/RenderBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698