DescriptionIntroduce RenderFrame::IsMainFrame and clean up a few things.
To determine if RenderFrame represents a main frame (top of the
frame tree), there's a typical check done today in code:
render_frame->GetWebFrame()->parent()
To make this check more easily understood, we add the titular
function. In addition:
* Reversed existing RenderFrameImpl::is_subframe to align with
the newly added function.
* Removed obsolete comment in ContentRendererClient.
* Tweaked ChromeContentRendererClient to use the new function.
BUG=
R=creis@chromium.org
Committed: https://crrev.com/2e140f5801f4d426b5e0339d612b997e0657bff0
Cr-Commit-Position: refs/heads/master@{#351077}
Patch Set 1 #Patch Set 2 : Fixed content_browsertests failure. #
Total comments: 5
Patch Set 3 : Fixed use-after-free. #
Messages
Total messages: 27 (11 generated)
|