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

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: +test 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') | Source/web/WebViewImpl.h » ('J')
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 26badff745b01edc786294db90f39d5761b6e9c3..ad4d9f7efae7da761f8ee92444ca2e7714a9f8d1 100644
--- a/Source/core/page/FrameView.cpp
+++ b/Source/core/page/FrameView.cpp
@@ -2041,8 +2041,11 @@ void FrameView::setBaseBackgroundColor(const Color& backgroundColor)
else
m_baseBackgroundColor = backgroundColor;
- 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') | Source/web/WebViewImpl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698