Introduce SelectorFilterAncestorScope for style recalc roots.
We currently push a SelectorFilterParentScope on the stack for each element in the ancestor chain while matching style rules. In order to support starting style recalc at a root element which is not the document root, we need to be able to push a scope for an ancestor chain instead of a single element. This CL introduces a subclass for doing that. Also added some simple unit tests. Bug: 868810 Change-Id: I23dd49ab1b9d02efe5f281ca2dbec773d699bc0e Reviewed-on: https://chromium-review.googlesource.com/1219106Reviewed-by:Anders Ruud <andruud@chromium.org> Commit-Queue: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#590280}
Showing
Please register or sign in to comment