Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Issue 2577593002: MacViews: Be robust against Views manipulating Layers during Widget::Close(). (Closed)

Created:
4 years ago by tapted
Modified:
4 years ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, mac-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Be robust against Views manipulating Layers during Widget::Close(). An InkDropHostView may manipulate layers in response the Widget::Hide(). A Hide() occurs synchronously in Widget::Close(), followed by tear down that occurs asynchronously. Mac's BridgedNativeWidget (and aura::Window::~Window()) suppress repaints during a close. BridgedNativeWidget does this by clearing out the compositor. We shouldn't try to subsequently recreate the compositor (there's a DCHECK for that). Manipulating Layers may call Widget::ReorderNativeViews. And NativeWidgetMac::ReorderNativeViews() currently calls BridgedNativeWidget::SetRootView() (which updates the compositor). It's done this since before ReorderChildViews() was implemented, but it's no longer necessary. It should always be a no-op: the RootView can't change. BUG=673991, 674003 Committed: https://crrev.com/c8701123a47788c2dcd15f957ac02492d1138fa4 Cr-Commit-Position: refs/heads/master@{#438653}

Patch Set 1 #

Patch Set 2 : Handle Mus #

Patch Set 3 : IsAuraMusClient #

Patch Set 4 : selfnits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -3 lines) Patch
M ui/views/cocoa/bridged_native_widget.mm View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/view_unittest.cc View 1 2 3 1 chunk +57 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_mac.mm View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 32 (27 generated)
tapted
Hi sky, please take a look
4 years ago (2016-12-14 07:45:27 UTC) #22
sky
LGTM
4 years ago (2016-12-14 16:32:13 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2577593002/60001
4 years ago (2016-12-14 22:27:33 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-14 22:35:03 UTC) #30
commit-bot: I haz the power
4 years ago (2016-12-14 22:36:50 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c8701123a47788c2dcd15f957ac02492d1138fa4
Cr-Commit-Position: refs/heads/master@{#438653}

Powered by Google App Engine
This is Rietveld 408576698