commit | c26a7505fd2da86795521ed2a300dacbfb78853c | [log] [tgz] |
---|---|---|
author | Manish Jethani <m.jethani@eyeo.com> | Thu Nov 23 13:25:54 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 23 13:25:54 2017 |
tree | b7c2e9aed45dd1855408edd2021e4c7de7bd5a7f | |
parent | 2714c42c6f5d0a7ad322b30147adcf155a40629b [diff] |
Add origin option for injected style sheets crrev.com/c/641294 replaced injected author style sheets with user style sheets. There are, however, legitimate use cases for the former. For one, specificity does not work across origin boundaries; in such cases extension developers may be forced to use "!important" as a hack. This patch reintroduces the author origin for injected style sheets and makes it the default by bringing back the relevant code deleted in crrev.com/c/641294 WebDocument::InsertStyleSheet now takes an optional second argument of type WebDocument::CSSOrigin BUG=632009 Change-Id: Ia6e7018411faf47411aabfb82e39158650ccedb4 Reviewed-on: https://chromium-review.googlesource.com/765642 Reviewed-by: nainar <nainar@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Commit-Queue: nainar <nainar@chromium.org> Cr-Commit-Position: refs/heads/master@{#518913}
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 .