[@container] Add placeholder StyleRecalcContext to ElementRuleCollector
We need to propagate container size information down to style resolution of elements that depend on a container queries. The StyleRecalcContext class will (eventually) transport that information. This CL is the first in a chain of CLs which does the necessary refactoring to propagate a StyleRecalcContext all the way from StyleEngine::UpdateStyleAndLayoutTreeForContainer to descendants ElementRuleCollector instances. Longer term I expect StyleRecalcContext to also setup/manage the SelectorFilter (or otherwise merge with that functionality), but this problem is out of scope at the moment. Bug: 1145970 Change-Id: Ia30b796e0e95c83e5f04d971a593644ec18bc8eb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2626433 Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Reviewed-by:Rune Lillesveen <futhark@chromium.org> Reviewed-by:
Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#843535}
Showing
Please register or sign in to comment