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

Unified Diff: Source/core/rendering/RenderView.cpp

Issue 683373002: Invalidate the frame view when changing the background image of the document or body. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Cleanup. Created 6 years, 2 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
« Source/core/rendering/RenderBox.cpp ('K') | « Source/core/rendering/RenderBox.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderView.cpp
diff --git a/Source/core/rendering/RenderView.cpp b/Source/core/rendering/RenderView.cpp
index df0b318f126f324e8ad8295bbb7b07c2d96b0245..577799ed1a5d1e377ab0e167d297528aa45cabfa 100644
--- a/Source/core/rendering/RenderView.cpp
+++ b/Source/core/rendering/RenderView.cpp
@@ -167,8 +167,10 @@ bool RenderView::shouldDoFullPaintInvalidationForNextLayout() const
if (shouldUsePrintingLayout())
return true;
- if (!style()->isHorizontalWritingMode() || width() != viewWidth())
+ if (!style()->isHorizontalWritingMode() || width() != viewWidth()) {
+ fprintf(stderr, "change view width\n");
dsinclair 2014/10/31 00:14:34 Remove.
chrishtr 2014/10/31 18:22:24 Fixed.
return true;
+ }
if (height() != viewHeight()) {
if (RenderObject* backgroundRenderer = this->backgroundRenderer()) {
@@ -179,7 +181,7 @@ bool RenderView::shouldDoFullPaintInvalidationForNextLayout() const
if (!m_compositor || !m_compositor->needsFixedRootBackgroundLayer(layer())) {
if (backgroundRenderer->style()->hasFixedBackgroundImage()
&& mustInvalidateFillLayersPaintOnHeightChange(backgroundRenderer->style()->backgroundLayers()))
- return true;
+ return true;
}
}
}
« Source/core/rendering/RenderBox.cpp ('K') | « Source/core/rendering/RenderBox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698