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

Unified Diff: third_party/WebKit/Source/web/InspectorEmulationAgent.cpp

Issue 2704213002: [devtools] Allow transparent base background color overrides. (Closed)
Patch Set: Created 3 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
Index: third_party/WebKit/Source/web/InspectorEmulationAgent.cpp
diff --git a/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp b/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp
index f2bbfe4b4ee75b6590921f7ff31219a014342071..174661efd175e51193ba36e67b8d1a98ce4b3e7c 100644
--- a/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp
+++ b/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp
@@ -188,7 +188,7 @@ Response InspectorEmulationAgent::setDefaultBackgroundColorOverride(
Maybe<protocol::DOM::RGBA> color) {
if (!color.isJust()) {
// Clear the override and state.
- webViewImpl()->setBaseBackgroundColorOverride(Color::transparent);
+ webViewImpl()->clearBaseBackgroundColorOverride();
m_state->remove(EmulationAgentState::defaultBackgroundColorOverrideRGBA);
return Response::OK();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698