Anthony Ramine
c52fd0a780
Rename MutNullableJS<T> to MutNullableDom<T>
2017-09-26 09:49:02 +02:00
Anthony Ramine
7be32fb237
Rename JS<T> to Dom<T>
2017-09-26 09:48:55 +02:00
Anthony Ramine
0e3c54c191
Rename dom::bindings::js to dom::bindings::root
2017-09-26 02:19:05 +02:00
Michael Partheil
b07ebbae6b
Replace all uses of the style::stylearc alias with servo_arc.
...
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).
2017-07-19 09:29:05 +02:00
Manish Goregaokar
89930e7565
stylo: Switch Gecko over to ServoStyleContext
2017-07-17 18:03:23 -07:00
Emilio Cobos Álvarez
1263075776
stylo: Fix StyleSheetInner/Stylesheet mapping
...
The key of this patch is the split between Stylesheet and StylesheetContents.
Gecko will use StylesheetContents, which maps to a ServoStyleSheetInner.
2017-07-02 15:49:40 +02:00
Bobby Holley
7b0679848b
Fix up script and layout.
2017-05-02 17:35:45 -07:00
Emilio Cobos Álvarez
ac7bc414d9
Bug 1325878: Pass the MediaList down to Servo, making <style media> work. r=xidorn
...
MozReview-Commit-ID: BUCSQJs2CNI
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-04-12 22:27:45 +08:00
Xidorn Quan
a097a293b5
Pass CSS loader to Servo for insertRule.
2017-04-03 21:18:09 +10:00
Simon Sapin
2952ccfae2
Fix another deadlock
2017-03-19 22:30:41 +01:00
Simon Sapin
adb97d4cbe
Wrap most CSS rules in Locked<_> instead of RwLock<_>
2017-03-19 22:30:36 +01:00
Simon Sapin
f35b4e27b3
Replace RwLock<CssRules> with Locked<CssRules>
2017-03-19 22:30:35 +01:00
Anthony Ramine
31e9d81c0f
Make #[dom_struct] a proc_macro attribute
2017-02-24 01:50:51 +01: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
Anthony Ramine
620a67ff14
Mark JSTraceable and its method as unsafe
2016-12-06 13:15:06 -10:00
Anthony Ramine
1d56087188
Update to Rust 1.15.0-nightly (1c448574b 2016-11-28)
2016-11-29 21:19:25 +01:00
Xidorn Quan
599eb1c9f0
Move Arc<RwLock<_>> out from CssRules tuple
2016-11-29 22:15:13 +11:00
Simon Sapin
70b250fe2a
Use stylesheet’s base URL and ns prefixes in CSSOM insert/appendRule.
2016-11-28 18:01:02 +01: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
Xidorn Quan
03bcb7a26a
Move "remove a CSS rule" algorithm to style
2016-11-24 15:38:40 +11:00
Xidorn Quan
134ef33842
Move "insert a CSS rule" algorithm to style
...
This also changes the algorithm to match w3c/csswg-drafts#754 instead of
the current cssom draft, because that makes the code simpler and matches
implementation of other browsers.
2016-11-24 15:38:40 +11:00
Manish Goregaokar
64442090ba
Add CSSKeyframesRule.{findRule, deleteRule, appendRule}
2016-11-23 09:32:44 -08:00
Manish Goregaokar
a9cd17ae96
Add CSSGroupingRule.{cssRules, insertRule(), deleteRule()}
2016-11-23 09:32:43 -08:00
Manish Goregaokar
cada5d7c03
Transitively deparent on removal
...
Chrome and Firefox do this already, probably a spec oversight
2016-11-23 09:32:42 -08:00
Manish Goregaokar
53c99662bc
Make parent stylesheet optional for CSSRules
2016-11-23 09:32:40 -08:00
Manish Goregaokar
52a3a71be3
Add support for keyframe-backed CSSRules, CSSKeyframesRule.cssRules and CSSKeyframeRule
2016-11-23 09:32:39 -08:00
Manish Goregaokar
2793d5f0a9
Handle parser state in CSSOM insert_rule
2016-11-23 09:31:29 -08:00
Manish Goregaokar
1d20d75cb2
Add insertRule() and deleteRule() on CSSStyleSheet
2016-11-23 09:30:29 -08:00
Manish Goregaokar
2fe390e237
Allow mutation of CssRules
2016-11-15 08:49:58 -08:00
Manish Goregaokar
177d6fa4ee
Support basic immutable CSSOM
2016-11-15 06:56:18 -08:00