commit | 1d1101adcfc3828ca582cc9197d4d5061ea65a6d | [log] [tgz] |
---|---|---|
author | Manish Jethani <m.jethani@eyeo.com> | Wed Jan 17 11:23:02 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 17 11:23:02 2018 |
tree | dbb33771ff52e0db7db72215c475f965b0aad391 | |
parent | 4bd9c8e6e51dfe55296d4c30ea965fc6c3c7f7b5 [diff] |
Handle media queries in user style sheets The implementation of user style sheets in crrev.com/c/641294 did not account for media queries. As a result, once a user sheet's initial rule set is generated, it is never updated based on changes in device type or viewport dimensions. User rules intended for print, for example, have no effect. This patch fixes the issue by updating StyleEngine::MediaQueryAffectingValueChanged to clear the rule sets for any relevant user sheets and have them regenerated via StyleEngine::UpdateActiveUserStyleSheets CSSGlobalRuleSet now collects both user and scoped style features from StyleEngine by calling StyleEngine::CollectFeaturesTo BUG=632009 Change-Id: I38726d0e36f34cdeabcedb264d3e7c6bfac958f6 Reviewed-on: https://chromium-review.googlesource.com/789735 Commit-Queue: Manish Jethani <m.jethani@eyeo.com> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#529707}
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 .