forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PM] Remove uses of frame_tree_node_id from FrameNode
With Prerender2 the semantics of the frame tree node ID have changed: it's no longer constant for the life of a frame. Since the semantics are now confusing, stop tracking the property in PerformanceManager. This removes a DCHECK of the invariant in FrameNodeImpl::SetIsCurrent. As a followup we should find some other way to validate that invariant. PerformanceManagerTabHelper still uses main_frame_tree_node_id as a key to the `pages_` set, since it would be too invasive to remove right now. There's no reliable way to look up a PageNode in the set given the current frame_tree_node_id of its main frame, since it may have changed since the PageNode was added to the set. This is harmless in the short term because there's currently no code that tries to do this, but the set should be changed to use a different key as a followup. R=altimin Bug: 1177859 Change-Id: I54e57c9debdbe195d945fdbd0f705a3bb2e3ecca Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3087728 Commit-Queue: Joe Mason <joenotcharles@chromium.org> Reviewed-by: Alexander Timin <altimin@chromium.org> Cr-Commit-Position: refs/heads/master@{#911493}
- Loading branch information
1 parent
7cd25dc
commit 7c02c36
Showing
23 changed files
with
125 additions
and
187 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
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
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
Oops, something went wrong.