aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/use_counters/mod.rs
Commit message (Collapse)AuthorAgeFilesLines
* style: Support css use counters for unimplemented properties.Boris Chiou2019-09-121-31/+52
| | | | | | | | | | | | | | | | | | | | | | For developing properties, we will handle them in an other bug. Besides, I use an iframe for the test because we create a use counter in the constructor of Document, which use the prefs to decide what kind of properties we want to record. So, in the test, we have to reload iframe to make sure we re-create the document, so does the use counter, to make sure the prefs work properly. The two prefs affect the css use counters: 1. layout.css.use-counters.enabled: Allocate use counters, and record non-custom properties. 2. layout.css.use-counters-unimplemented.enabled: Record all unimplmented properties into the use counters. If we disable layout.css.use-counters.enblaed, we don't create use counters object, so layout.css.use-counters-unimplemented.enabled doesn't work, either. Differential Revision: https://phabricator.services.mozilla.com/D43860
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition --features gecko`Simon Sapin2018-11-101-3/+3
|
* `cargo fix --edition`Simon Sapin2018-11-101-1/+1
|
* Format style component.chansuke2018-09-091-1/+2
|
* style: Make the counters non-atomic counters and merge afterwards.Emilio Cobos Álvarez2018-09-031-6/+36
| | | | | | | | | This was consistently faster in the benchmark (even when counters were disabled, which was slightly suspicious, but...). Anyway, it's not really much code, most of it is FFI copy-pasta. Differential Revision: https://phabricator.services.mozilla.com/D3874
* style: Add a test for the use counters.Emilio Cobos Álvarez2018-09-031-4/+20
| | | | | | | | | | | | Mostly testing that they work, and that they record what we expect them to record, that is, the actual property that was parsed, and not the properties that it'd resolve or expand to. That may be another tricky part for CSSOM, I think style setters would fail an alias test if implemented with the current setup (we do the property lookup in C++). Differential Revision: https://phabricator.services.mozilla.com/D3829
* style: Hook the use counters into StyleSheet parsing.Emilio Cobos Álvarez2018-09-031-0/+1
| | | | | | | | | | | | | | Still not hooked into telemetry, I talked with :janerik and :gfritzsche about that, but test incoming! This intentionally doesn't handle CSSOM and such for now, will file followups for those, though should be trivial. I want to unify / clean up how we do the use counters and the error reporting stuff for CSSOM, since the current function call still shows up in profiles, but that should be a follow-up. Differential Revision: https://phabricator.services.mozilla.com/D3828
* style: Add a very simple use counter implementation.Emilio Cobos Álvarez2018-09-031-0/+40
As simple as I could make it, for now. We can improve on this. Differential Revision: https://phabricator.services.mozilla.com/D3827