
Frame depth is the depth of the FrameTreeNode in the frame tree, with the root being depth 0. This will be used to rank render processes. Note depth and visibility are not independent when ranking widgets. A visible widget of higher depth has higher priority than a hidden widget of lower depth. Also make inactive widgets stop contributing priority to its renderer process. Bug: 813232 Change-Id: Id9acefc40d6d2f2d94b5d62a592630037766d786 Reviewed-on: https://chromium-review.googlesource.com/934311 Commit-Queue: Bo <boliu@chromium.org> Reviewed-by: Alex Moshchuk <alexmos@chromium.org> Cr-Commit-Position: refs/heads/master@{#546622}