Add a member boolean to indicate whether RenderFrameImpl is subframe.

Whether a RenderFrameImpl is a subframe or the main frame is known at
initialization time and doesn't change for the lifetime of the object.
This CL adds a boolean that keeps that state and removes the few local
variables used for checking whether it is a subframe. The reason is
that as we invert the ownership of RenderViewImpl and RenderFrameImpl,
the main frame will have to pass ownership of the RenderViewImpl to
the RenderFrameProxy during swapping local to remote. Since the frame
will be destroyed, it needs to instruct RenderViewImpl to clear its
main_render_frame_ pointer, because it is going to be invalid.

BUG=357747

Review URL: https://codereview.chromium.org/1125243002

Cr-Commit-Position: refs/heads/master@{#328579}
3 files changed