aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/cssrulelist.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix insertRule crash by exposing getter on stylesheet's ownersbansal30962019-03-221-1/+10
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-10/+10
|
* Format script componentchansuke2018-09-191-36/+46
|
* Fix some "unnecessary parentheses" warningsSimon Sapin2018-01-221-1/+1
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* 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-7/+7
| | | | | | | 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 DOMRefCell<T> to DomRefCell<T>Anthony Ramine2017-09-261-3/+3
| | | | | | | | I don't want to do such a gratuitous rename, but with all the other types now having "Dom" as part of their name, and especially with "DomOnceCell", I feel like the other cell type that we already have should also follow the convention. That argument loses weight though when we realise there is still DOMString and other things.
* Rename MutNullableJS<T> to MutNullableDom<T>Anthony Ramine2017-09-261-6/+6
|
* Rename JS<T> to Dom<T>Anthony Ramine2017-09-261-3/+3
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-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).
* stylo: Switch Gecko over to ServoStyleContextManish Goregaokar2017-07-171-7/+9
|
* stylo: Fix StyleSheetInner/Stylesheet mappingEmilio Cobos Álvarez2017-07-021-1/+1
| | | | | | The key of this patch is the split between Stylesheet and StylesheetContents. Gecko will use StylesheetContents, which maps to a ServoStyleSheetInner.
* Fix up script and layout.Bobby Holley2017-05-021-1/+1
|
* Bug 1325878: Pass the MediaList down to Servo, making <style media> work. ↵Emilio Cobos Álvarez2017-04-121-10/+8
| | | | | | | r=xidorn MozReview-Commit-ID: BUCSQJs2CNI Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* Pass CSS loader to Servo for insertRule.Xidorn Quan2017-04-031-1/+4
|
* Fix another deadlockSimon Sapin2017-03-191-3/+6
|
* Wrap most CSS rules in Locked<_> instead of RwLock<_>Simon Sapin2017-03-191-8/+7
|
* Replace RwLock<CssRules> with Locked<CssRules>Simon Sapin2017-03-191-5/+11
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Remove HeapGCValueAnthony Ramine2016-12-121-6/+6
| | | | | | 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.
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-1/+1
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Mark JSTraceable and its method as unsafeAnthony Ramine2016-12-061-2/+4
|
* Update to Rust 1.15.0-nightly (1c448574b 2016-11-28)Anthony Ramine2016-11-291-1/+0
|
* Move Arc<RwLock<_>> out from CssRules tupleXidorn Quan2016-11-291-5/+5
|
* Use stylesheet’s base URL and ns prefixes in CSSOM insert/appendRule.Simon Sapin2016-11-281-2/+2
|
* Make CSSRule always keep a pointer to its parent stylesheetSimon Sapin2016-11-281-12/+10
| | | | even when the parentStylesheet IDL attribute returns null.
* Move "remove a CSS rule" algorithm to styleXidorn Quan2016-11-241-25/+1
|
* Move "insert a CSS rule" algorithm to styleXidorn Quan2016-11-241-62/+14
| | | | | | 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.
* Add CSSKeyframesRule.{findRule, deleteRule, appendRule}Manish Goregaokar2016-11-231-25/+60
|
* Add CSSGroupingRule.{cssRules, insertRule(), deleteRule()}Manish Goregaokar2016-11-231-0/+1
|
* Transitively deparent on removalManish Goregaokar2016-11-231-2/+9
| | | | Chrome and Firefox do this already, probably a spec oversight
* Make parent stylesheet optional for CSSRulesManish Goregaokar2016-11-231-7/+12
|
* Add support for keyframe-backed CSSRules, CSSKeyframesRule.cssRules and ↵Manish Goregaokar2016-11-231-13/+54
| | | | CSSKeyframeRule
* Handle parser state in CSSOM insert_ruleManish Goregaokar2016-11-231-11/+33
|
* Add insertRule() and deleteRule() on CSSStyleSheetManish Goregaokar2016-11-231-5/+81
|
* Allow mutation of CssRulesManish Goregaokar2016-11-151-2/+2
|
* Support basic immutable CSSOMManish Goregaokar2016-11-151-0/+67