commit | 30168b99604c48a32828f26b5acb2674beea1a5d | [log] [tgz] |
---|---|---|
author | Manish Jethani <m.jethani@eyeo.com> | Mon Oct 16 17:47:34 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Oct 16 17:47:34 2017 |
tree | e4ba9f35e1e1c05455914b57697b51961e42e18f | |
parent | e4488e203ff33223f228dd2359383d2085a76c07 [diff] |
Implement user style sheets This is based on the design document at https://goo.gl/jzD8Zk Browser extension developers expect their style sheets to be treated as user style sheets, as "!important" user declarations have a higher precedence than "!important" author declarations. Therefore, in order to implement this behavior, this patch makes the following changes: 1. MatchResult now maintains user rules in addition to UA and author rules 2. DocumentStyleSheetCollection no longer cares about injected style sheets 3. StyleEngine now treats injected style sheets as user style sheets 4. StyleResolver now calls its new MatchUserRules method right after calling MatchUARules 5. The ApplyMatchedStandardProperties method of StyleResolver applies important properties in the correct order BUG=632009 Change-Id: If752b1af762f233dae49bb5bffd6d5e6a4b54acd Reviewed-on: https://chromium-review.googlesource.com/641294 Commit-Queue: Rune Lillesveen <rune@opera.com> Reviewed-by: Rune Lillesveen <rune@opera.com> Cr-Commit-Position: refs/heads/master@{#509096}
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 .