Don't use isURLAllowed() to determine if a frame element gets a LayoutObject.
What the style recalc code really wants to do is avoid creating a
LayoutObject if the frame load was blocked. The best way to detect
this is checking if contentFrame() is non-null.
Since this breaks some unit tests that manually bootstrap child
frame creation, this CL also remove the custom bootstrapping code
in favor of using the standard FrameLoaderClient interfaces: this
removes a bunch of code duplication for setting up the FrameView
of a child frame.
BUG=
618138
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Committed:
https://crrev.com/8a8505dc2c0cd9d4b3e347b7a9ccd9fb3e62491b
Cr-Commit-Position: refs/heads/master@{#433341}