aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/csssupportsrule.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove use of unstable box syntax.Simon Sapin2017-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-2/+2
| | | | | | | In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned.
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Devirtualize CSS error reporting.Josh Matthews2017-08-241-1/+1
|
* Replace all uses of the style::stylearc alias with servo_arc.Michael Partheil2017-07-191-1/+1
| | | | | | The alias is left there temporarilly and will be removed completely in a later commit where also components/style/gecko/generated/structs_{debug|release}.rs are re-generated (they still use the old alias).
* Move ParsingMode into style_traits.Hiroyuki Ikezoe2017-06-141-2/+2
|
* Thread ParseError return values through CSS parsing.Josh Matthews2017-06-091-2/+3
|
* style: Split stylesheets.rsEmilio Cobos Álvarez2017-06-041-1/+1
| | | | | | | | | | | | | This file has become quite bloated lately. This commit deletes that file in favor of a set of submodules. The only noticeable change apart from code move, is converting deep_clone_foo methods into a trait. It also unifies logic related to different style rules in the same place. There's some missing work, specially related to font-face and counter-style, but I think this is worth landing in the meantime.
* Make ParsingMode bitflags.Hiroyuki Ikezoe2017-05-141-2/+2
| | | | | assert_parsing_mode_match() is mostly the same as assert_restyle_hints_match().
* Rename LengthParsingMode to ParsingMode and LengthParsingMode::SVG to ↵Hiroyuki Ikezoe2017-05-141-2/+2
| | | | | | | PasingMode::AllowUnitlessLength. We need another flag that represents allow-negative-number for SMIL, so this enum will also comprise the another parsing mode that allows negative number.
* Fix up script and layout.Bobby Holley2017-05-021-1/+1
|
* Propagate quirks mode all the way to ParserContextAnthony Ramine2017-04-271-1/+3
| | | | The quirks mode is still not properly propagated in geckolib.
* SVG length parsing modeJ. Ryan Stinnett2017-04-141-2/+3
| | | | | | | SVG allows non-zero lengths to be accepted and assumes they are in px. This adds this length parsing mode to Servo. MozReview-Commit-ID: Kxd3x64r9Ye
* Pull rule_type into ParserContextJ. Ryan Stinnett2017-04-121-2/+2
| | | | | | | Absorb `rule_type` into the `ParserContext` so that it's easier to pass down to deeper levels of the parser. MozReview-Commit-ID: DjBNytLxGKX
* Wrap most CSS rules in Locked<_> instead of RwLock<_>Simon Sapin2017-03-191-9/+11
|
* Introduce a ToCssWithGuard traitSimon Sapin2017-03-191-3/+5
|
* style: Avoid cloning all over the error reporter.Emilio Cobos Álvarez2017-03-141-2/+4
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* CSSOM bits for @supports: CSSConditionRule and CSSSupportsRule, with ↵Manish Goregaokar2017-01-071-0/+77
conditionText attribute