DescriptionMacViews: Ensure the RootView is in place before the first call to ReorderNativeViews
This gets 3 views_unittests passing:
- ViewTargeterTest.HitTestCallsOnView,
- ViewTest.CanProcessEventsWithinSubtree,
- ViewTest.GetEventHandlerForRect.
These were failing because the size of the RootView was being reset to
the Widget size when first added. This happened because NativeWidgetMac
was not ensuring the RootView was set up properly immediately after a
call to Widget::Init() for all Widget types (i.e. those without a
NonClientView).
When there _is_ a NonClientView, Widget::Init() calls SetContentsView()
which would eventually trickle down to
NativeWidgetMac::ReorderNativeViews(), which is where NativeWidgetMac
would set up the root view.
BUG=378134
Committed: https://crrev.com/f1d241a504fb4cdc18501ffb7b0369aa0135cc9d
Cr-Commit-Position: refs/heads/master@{#294296}
Patch Set 1 #
Total comments: 2
Patch Set 2 : kTestRect -> test_rect #
Messages
Total messages: 8 (2 generated)
|