DescriptionImplement collection of @viewport rules from DocumentStyleCollection.
The @viewport rules will be recollected and re-resolved from a new
updateViewport() method. Rule will need to be re-collected when
stylesheets are added, or when media queries change. Re-resolution
needs to happen when the viewport descriptors contain vh/vw units, or
after a re-collection of rules.
Store the viewport and device dependent mq results on the
ViewportStyleResolver as these may be different from the results
collected when constructing the rulesets because of the initial/actual
viewport difference. The device dependent will not be different, but
nested media queries may cause some media queries to be skipped for
ruleset construction which would not be skipped for @viewport rule
collection.
We also change the existing code to lazily reset() in preparation for
the re-collect/re-resolve distinction.
R=timloh@chromium.org
BUG=567021
Committed: https://crrev.com/5f7120199c7334506d9384891532f864512ae3b8
Cr-Commit-Position: refs/heads/master@{#425942}
Patch Set 1 #Patch Set 2 : Rebased. #
Messages
Total messages: 16 (9 generated)
|