Bobby Holley
7b0679848b
Fix up script and layout.
2017-05-02 17:35:45 -07:00
Anthony Ramine
f68e2fded9
Propagate quirks mode all the way to ParserContext
...
The quirks mode is still not properly propagated in geckolib.
2017-04-27 10:41:55 +02:00
J. Ryan Stinnett
6069e44f02
SVG length parsing mode
...
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
2017-04-14 17:22:16 +08:00
J. Ryan Stinnett
1a31b87c22
Pass ParserContext down to lengths
...
To make it possible to check the rule type when parsing lengths, we need to pass
the `ParserContext` down through many layers to the place where length units are
parsed.
This change leaves it unused, so it's only to prepare for the next change.
MozReview-Commit-ID: 70YwtcCxnWw
2017-04-12 16:40:48 +08:00
J. Ryan Stinnett
4574cd8ea6
Pull rule_type into ParserContext
...
Absorb `rule_type` into the `ParserContext` so that it's easier to pass down to
deeper levels of the parser.
MozReview-Commit-ID: DjBNytLxGKX
2017-04-12 16:40:17 +08:00
Simon Sapin
adb97d4cbe
Wrap most CSS rules in Locked<_> instead of RwLock<_>
2017-03-19 22:30:36 +01:00
Simon Sapin
600152bd00
Replace more RwLock<MediaList> with shared_lock::Locked<MediaList>
2017-03-19 22:30:34 +01:00
Simon Sapin
fe4e70c5f8
Introduce a ToCssWithGuard trait
2017-03-19 22:30:33 +01:00
Anthony Ramine
31e9d81c0f
Make #[dom_struct] a proc_macro attribute
2017-02-24 01:50:51 +01:00
Manish Goregaokar
b4a83b6cec
CSSOM bits for @supports: CSSConditionRule and CSSSupportsRule, with conditionText attribute
2017-01-07 23:17:52 -08:00
Anthony Ramine
1327ebd52f
Remove HeapGCValue
...
It could be used to have mutable JSVal fields without GC barriers.
With the removal of that trait, MutHeap and MutNullableHeap can respectively
be replaced by MutJS and MutNullableJS.
2016-12-12 10:47:54 -10:00
Corey Farwell
449f6337d4
Rename Reflectable
to DomObject
.
...
Fixes https://github.com/servo/servo/issues/8473 .
2016-12-08 08:50:35 -10:00
Nazım Can Altınova
c052835281
Implement MediaList interface
2016-12-02 23:46:40 +03:00
Simon Sapin
f1d49d3773
Make CSSRule always keep a pointer to its parent stylesheet
...
even when the parentStylesheet IDL attribute returns null.
2016-11-28 16:50:38 +01:00
Manish Goregaokar
a9cd17ae96
Add CSSGroupingRule.{cssRules, insertRule(), deleteRule()}
2016-11-23 09:32:43 -08:00
Manish Goregaokar
53c99662bc
Make parent stylesheet optional for CSSRules
2016-11-23 09:32:40 -08:00
Nazım Can Altınova
fdbadcdce2
Implement ToCss serialization for CSSRules
2016-11-18 12:17:53 +03:00
Manish Goregaokar
177d6fa4ee
Support basic immutable CSSOM
2016-11-15 06:56:18 -08:00