Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix transparent windows losing transparency when devtools detaches #11956

Merged
merged 2 commits into from
Feb 21, 2018

Conversation

brenca
Copy link
Contributor

@brenca brenca commented Feb 19, 2018

Fixes #11833

Related chromium issue. This might be a permament fix, since before we relied on the SetBaseBackgroundColorOverride that was called by SetBackgroundOpaque, which is now gonna be cleared when the devtools is detached.

@brenca brenca requested a review from a team February 19, 2018 11:56
@brenca brenca force-pushed the transparent-window-devtools-fix branch from 931b0d5 to d31d208 Compare February 19, 2018 14:08
@brenca brenca changed the title Reset background color override when devtools is detached Fix transparent windows losing transparency when devtools detaches Feb 19, 2018
Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

@@ -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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment is now out of date. I'd just remove the two comments above since the code is obvious.

Copy link
Member

@zcbenz zcbenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks good to me, I'm 👍 removing the outdated comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants