Commit 9b699b33 authored by Vladimir Levin's avatar Vladimir Levin Committed by Commit Bot

[Isolation]: Establish isolation on style & layout containment.

This patch adds style & layout containment as another criteria for when
we establish isolation.

R=chrishtr@chromium.org

Change-Id: I325edc499d41ea8580d138e982a358f74d13f22e
Reviewed-on: https://chromium-review.googlesource.com/c/1388747Reviewed-by: default avatarMason Freed <masonfreed@chromium.org>
Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
Commit-Queue: vmpstr <vmpstr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#619964}
parent 28ebe55f
...@@ -317,8 +317,12 @@ static bool NeedsIsolationNodes(const LayoutObject& object) { ...@@ -317,8 +317,12 @@ static bool NeedsIsolationNodes(const LayoutObject& object) {
return false; return false;
// Paint containment establishes isolation. // Paint containment establishes isolation.
if (object.ShouldApplyPaintContainment()) // Style & Layout containment also establish isolation.
if (object.ShouldApplyPaintContainment() ||
(object.ShouldApplyStyleContainment() &&
object.ShouldApplyLayoutContainment())) {
return true; return true;
}
// Layout view establishes isolation with the exception of local roots (since // Layout view establishes isolation with the exception of local roots (since
// they are already essentially isolated). // they are already essentially isolated).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment