commit | f930f101b81d07cd66b0642d10c88edd1a93d2d7 | [log] [tgz] |
---|---|---|
author | Rune Lillesveen <futhark@chromium.org> | Mon Jan 14 12:31:01 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Jan 14 12:31:01 2019 |
tree | c4c842cb4ac986d5758611eaa68564245e136360 | |
parent | 512c89f97ae9b66a598971c361997f9d7a9b2a1e [diff] |
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}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .