Fix TrayBubbleView mask layer DCHECK.
A mask layer should always have the same bounds as its parent's. TrayBubbleView sets a mask layer to layer()->parent(), but used the bounds of layer() for its mask layer. It caused DCHECK. Previously, https://crrev.com/c/663422 tried to fix this by using GetBubbleBounds(), but it still doesn't return the correct bounds in some cases e.g. |corner_radius| and |has_shadow| = false are set. TEST=TrayEventFilterTest BUG=847104,764428 Change-Id: I677a0df7fc5342e7f722c97c30fc0b87f25b23f4 Reviewed-on: https://chromium-review.googlesource.com/1084530Reviewed-by:Steven Bennetts <stevenjb@chromium.org> Commit-Queue: Tetsui Ohkubo <tetsui@chromium.org> Cr-Commit-Position: refs/heads/master@{#564738}
Showing
Please register or sign in to comment