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

Unified Diff: Source/core/page/FrameView.cpp

Issue 19883002: Expose a way to set a view's base background color. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix unittests for Android, to reland Created 7 years, 5 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 | « no previous file | Source/web/WebFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/FrameView.cpp
diff --git a/Source/core/page/FrameView.cpp b/Source/core/page/FrameView.cpp
index 8ff98d3bef09f7fdc669210827a202239ef35394..7a93e3ddf08891d48636e7babf44bf51b1c7c6f2 100644
--- a/Source/core/page/FrameView.cpp
+++ b/Source/core/page/FrameView.cpp
@@ -2041,8 +2041,11 @@ void FrameView::setBaseBackgroundColor(const StyleColor& backgroundColor)
else
m_baseBackgroundColor = backgroundColor.color();
- if (renderView() && renderView()->layer()->backing())
- renderView()->layer()->backing()->updateContentsOpaque();
+ if (RenderLayerBacking* backing = renderView() ? renderView()->layer()->backing() : 0) {
+ backing->updateContentsOpaque();
+ if (backing->graphicsLayer())
+ backing->graphicsLayer()->setNeedsDisplay();
+ }
recalculateScrollbarOverlayStyle();
}
« no previous file with comments | « no previous file | Source/web/WebFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698