forked from chromium/chromium
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up load logic so that it's easier to understand
The logic in Document::DispatchHandleLoadOrLayoutComplete() was there to create different behaviors for main documents vs popups. However, differentiating the main vs popup document is not very transparent in the condition. In addition, this calls HandleLayoutComplete() on the popup which is already a no-op via early return. Document::DispatchHandleLoadStart() uses a similar confusing condition. In both cases it's clearer just to call AXObjectCacheImpl methods where we have a useful ::IsPopup() method to help clarify what's happening. Bug: None Change-Id: Ie7128ccf6bf6cf2927f416bfb03b15487376eb7b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3976391 Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Auto-Submit: Aaron Leventhal <aleventhal@chromium.org> Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1063460}
- Loading branch information
1 parent
5607eb6
commit 962d5db
Showing
4 changed files
with
18 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters