fix: BrowserView setBackgroundColor() (#31746)
This commit is contained in:
parent
25cdbb7d3a
commit
b40f3d4cfc
2 changed files with 7 additions and 2 deletions
|
@ -147,7 +147,11 @@ gfx::Rect BrowserView::GetBounds() {
|
|||
}
|
||||
|
||||
void BrowserView::SetBackgroundColor(const std::string& color_name) {
|
||||
view_->SetBackgroundColor(ParseHexColor(color_name));
|
||||
if (!web_contents())
|
||||
return;
|
||||
|
||||
auto* wc = web_contents()->web_contents();
|
||||
wc->SetPageBaseBackgroundColor(ParseHexColor(color_name));
|
||||
}
|
||||
|
||||
v8::Local<v8::Value> BrowserView::GetWebContents(v8::Isolate* isolate) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue