use SK_ColorTRANSPARENT as the default color to fix issue with transparent window devtools detach

This commit is contained in:
Heilig Benedek 2018-02-19 15:07:28 +01:00
parent 56859531cd
commit d31d2087a3

View file

@ -170,7 +170,7 @@ void RendererClientBase::RenderViewCreated(content::RenderView* render_view) {
// If backgroundColor is specified then use it.
std::string name = cmd->GetSwitchValueASCII(switches::kBackgroundColor);
// Otherwise use white background.
SkColor color = name.empty() ? SK_ColorWHITE : ParseHexColor(name);
SkColor color = name.empty() ? SK_ColorTRANSPARENT : ParseHexColor(name);
web_frame_widget->SetBaseBackgroundColor(color);
}
}