Ensure orientation changes propagate to a grandchild even if the child's...
Ensure orientation changes propagate to a grandchild even if the child's controller is not initialized When an orientation change occurs, the ScreenOrientationController of the local frame root propagates the orientation change event to subframes. However, if the frame doesn't have a ScreenOrientationController initialized, it skips that frame. However, it also incorrectly skips any children of that frame, so if a child does not a ScreenOrientationController, but one if its children does, that grandchild will not receive the orientation change event like it should. Do a full traverse of the frame tree, rather than a layer-by-layer one. Bug: 1121482 Test: ScreenOrientationControllerTest.OrientationChangePropagationToGrandchild Change-Id: If9c9e8ef9aa3ad2047aa97778dbfb503d1d827ab Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2399008Reviewed-by:Kentaro Hara <haraken@chromium.org> Commit-Queue: Nate Chapin <japhet@chromium.org> Cr-Commit-Position: refs/heads/master@{#805337}
Showing
Please register or sign in to comment