Don't compute style in display:none iframes.

display:none iframes do not allow the layout tree to be generated, but
when Squad introduced style recalc for reattachment and
SetNonAttachedStyle(), style computation was no longer blocked by
AttachLayoutTree and the check in LayoutView::CanHaveChildren(). This
lead to style being computed as normal in display:none iframes.

Return null from ParentComputedStyle() when ChildrenCanHaveStyle()
returns false and override ChildrenCanHaveStyle() to return false for
Document when LayoutView::CanHaveChildren() returns false.

Bug: 920599, 914784
Change-Id: Ibb8f4033cb1347c535e0b53d3e2ab9b46aacbd4e
Reviewed-on: https://chromium-review.googlesource.com/c/1405010
Commit-Queue: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#622431}
6 files changed