Clean up RenderWidget type logic for main- vs sub-frames.

Remove RenderWidget::WidgetType, replace it with for_frame(), which can
derive an answer from the presence of owner_delegate_ (for a main frame)
and for_child_local_root_frame_ (for sub frames).

This changes pepper plugin widgets from being considered frames to not,
which seems okay. One piece of code wanted to run only for popup widgets
but its in SetWindowRect which is not used on the pepper widget.

Remove use of IsWebView() and IsWebFrameWidget() on the WebWidget from
RenderWidget. Instead use for_frame() or its derivative parts.

We want to stop checking for the presence of a WebFrameWidget and drop
IPCs early when a RenderWidget is frozen, but there's one bug that
prevents that still as the Frame (and FrameWidget) can be detached
without freezing the RenderWidget (crbug.com/906340#c7).

R=ajwong@chromium.org, avi@chromium.org

Change-Id: I83589e2b0cf5a4c68dde77eaae87404ba1de4cc0
Bug: 912193
Reviewed-on: https://chromium-review.googlesource.com/c/1373887
Commit-Queue: danakj <danakj@chromium.org>
Reviewed-by: Albert J. Wong <ajwong@chromium.org>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#616093}
8 files changed