Commit 58c02f4c authored by Fabio Tirelo's avatar Fabio Tirelo Committed by Commit Bot

[af] Fix border shadow on Mac

This prevents the native border to be applied on the widget, so
only the border style provided by views will be applied. This has
no effect on Windows, but on Mac we get exactly what we need.

Screenshots (Googlers only): https://drive.google.com/open?id=17hQlLXo5dk8XMwKU90wLgwigIVOhxPbn

Bug: 847473
Change-Id: I5dccdadbae2405b259e3cad30857c0fb413a0338
Reviewed-on: https://chromium-review.googlesource.com/1076312Reviewed-by: default avatarEvan Stade <estade@chromium.org>
Commit-Queue: Fabio Tirelo <ftirelo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#562609}
parent 1d522e4e
......@@ -519,6 +519,7 @@ void AutofillPopupViewNativeViews::AddExtraInitParams(
views::Widget::InitParams* params) {
// Ensure the bubble border is not painted on an opaque background.
params->opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
params->shadow_type = views::Widget::InitParams::SHADOW_TYPE_NONE;
}
std::unique_ptr<views::View> AutofillPopupViewNativeViews::CreateWrapperView() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment