Commit 378fc6ad authored by Thomas Lukaszewicz's avatar Thomas Lukaszewicz Committed by Commit Bot

Views: Remove disabled SetCustomMask() on NativeViewHost for Windows

This re-enabled SetCustomMask() on NativeViewHostAura for Windows as
the layer related scaling bug has since been fixed.

Bug: 843250, 863268
Change-Id: If7b9e61e6913143e415f0af20e05d7dab91ef665
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2366153Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#800339}
parent 1240db1f
......@@ -161,18 +161,12 @@ void NativeViewHostAura::RemovedFromWidget() {
}
bool NativeViewHostAura::SetCustomMask(std::unique_ptr<ui::LayerOwner> mask) {
#if defined(OS_WIN)
// TODO(crbug/843250): On Aura, layer masks don't play with HiDPI. Fix this
// and enable this on Windows.
return false;
#else
UninstallMask();
mask_ = std::move(mask);
if (mask_)
mask_->layer()->SetFillsBoundsOpaquely(false);
InstallMask();
return true;
#endif
}
void NativeViewHostAura::SetHitTestTopInset(int top_inset) {
......
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