aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlmetaelement.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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`.
* Fix commonmark Markdown warnings in docs, part 1Matt Brubeck2017-10-171-1/+1
| | | | | | | | Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
* 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-3/+3
| | | | | | | 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-3/+3
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Preserve sourceURL comment on style sheetsTom Tromey2017-09-141-0/+1
| | | | | | | | | | | | | In addition to the sourceMappingURL comment, there is a second special comment, "sourceURL", that can be used to set the "display name" of a style sheet for developer tools. This name is also used as the base URL for the source-map URL resolution algorithm. sourceURL is described here: https://blog.getfirebug.com/2009/08/11/give-your-eval-a-name-with-sourceurl/ The devtools feature bug is here: https://bugzilla.mozilla.org/show_bug.cgi?id=880831 This patch changes servo to preserve and expose this value for use in M-C.
* script: Fix stylesheet adoption.Emilio Cobos Álvarez2017-09-131-2/+2
|
* style: Don't look for viewport units in stylesheets.Emilio Cobos Álvarez2017-08-281-4/+0
| | | | | | | | | | Use whether we've computed any viewport unit instead. This is more accurate (we avoid restyling unnecessarily if we've found anything ever on the stylesheet, but that hasn't matched). This has the benefit of also matching Gecko, and simplify some code and fishyness around, and also hopefully speeding up stylesheet parsing.
* style: Replicate the list of stylesheets on the layout thread.Emilio Cobos Álvarez2017-08-181-5/+9
| | | | | | This is a patch that unifies a bit how Gecko and Stylo stylesheets work, in order to be able to eventually move the stylesheets into the stylist, and be able to incrementally update the invalidation map.
* Expose the source map URL on a style sheetTom Tromey2017-08-171-0/+1
| | | | | | This changes Servo to track the source map URL of a style sheet. This parallels a change going in to Gecko: https://bugzilla.mozilla.org/show_bug.cgi?id=1388855
* 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: Fix StyleSheetInner/Stylesheet mappingEmilio Cobos Álvarez2017-07-021-10/+13
| | | | | | The key of this patch is the split between Stylesheet and StylesheetContents. Gecko will use StylesheetContents, which maps to a ServoStyleSheetInner.
* Bug 1331291 part 1 - Set stylesheet url_data correctly for import rule.Xidorn Quan2017-06-131-1/+2
|
* style: Split stylesheets.rsEmilio Cobos Álvarez2017-06-041-2/+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.
* Solving merge conficts related to the html5ever_atoms -> html5ever changeChristian Poveda2017-05-031-2/+2
|\
| * Auto merge of #16689 - servo:m5e, r=noxbors-servo2017-05-031-1/+1
| |\ | | | | | | | | | | | | | | | | | | | | | Upgrade to html5ever 0.16 <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16689) <!-- Reviewable:end -->
| | * Upgrade to html5ever 0.16Simon Sapin2017-05-021-1/+1
| | |
| * | Fix up script and layout.Bobby Holley2017-05-021-1/+1
| |/
* / Changed all prefixes from DOMString to the atomic Prefix from html5everChristian Poveda2017-05-031-3/+3
|/
* Propagate quirks mode all the way to ParserContextAnthony Ramine2017-04-271-0/+1
| | | | The quirks mode is still not properly propagated in geckolib.
* Bug 1325878: Pass the MediaList down to Servo, making <style media> work. ↵Emilio Cobos Álvarez2017-04-121-1/+2
| | | | | | | r=xidorn MozReview-Commit-ID: BUCSQJs2CNI Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* Use a UrlExtraData type alias to unify url handling logic.Xidorn Quan2017-04-031-1/+1
|
* Wrap most CSS rules in Locked<_> instead of RwLock<_>Simon Sapin2017-03-191-2/+1
|
* Replace RwLock<CssRules> with Locked<CssRules>Simon Sapin2017-03-191-1/+2
|
* Replace RwLock<MediaList> with shared_lock::Locked<MediaList>Simon Sapin2017-03-191-1/+4
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Removed util.Alan Jeffrey2016-12-141-1/+2
|
* Remove HeapGCValueAnthony Ramine2016-12-121-3/+3
| | | | | | 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.
* Move Arc<RwLock<_>> out from CssRules tupleXidorn Quan2016-11-291-2/+2
|
* Add base_url and namespaces to style::StylesheetSimon Sapin2016-11-281-0/+2
|
* Implement StyleSheet.disabled.Cameron McCormack2016-11-251-0/+2
|
* Make Stylesheet.dirty_on_viewport_size_change an AtomicBoolSimon Sapin2016-11-181-1/+2
|
* Support basic immutable CSSOMManish Goregaokar2016-11-151-2/+17
|
* Arc all Vec<CSSRule>s, put in CSSRules typeManish Goregaokar2016-11-151-1/+1
|
* CSSRule -> CssRuleTakanori Ishibashi2016-11-141-2/+2
|
* Allow empty media query listXidorn Quan2016-11-101-1/+1
| | | | | | | And make empty list the default value of MediaList. This commit also removes Option wrapper of Stylesheet.media because a stylesheet should always have an associated media query list.
* Update to string-cache 0.3Simon Sapin2016-11-031-8/+8
|
* Add RwLock in more Arc’d things in stylesheets.Simon Sapin2016-10-191-1/+2
|
* Make script build without `impl<T: HeapSizeOf> HeapSizeOf for Arc<T>`.Simon Sapin2016-10-041-0/+1
| | | | | The removal of this impl is not included in this commit. CC https://github.com/servo/heapsize/issues/37#issuecomment-249861171
* Most of the code refactoring needed to be done is done with this commit.Arthur Marble2016-09-181-4/+4
|
* Wrap in Arc<_> every object reflected in CSSOM.Simon Sapin2016-08-311-1/+1
| | | | See https://bugzilla.mozilla.org/show_bug.cgi?id=1281962#c5
* Remove some type aliases that are now just re-exports.Simon Sapin2016-07-201-2/+1
|
* Inline DOM element creation into box expressions in components/script/dom/Kuba Birecki2016-07-141-2/+3
|
* Move util::str to styleAnthony Ramine2016-07-051-1/+1
|
* Refactor `util::prefs` operations to be methods on static struct.Corey Farwell2016-07-021-1/+1
|
* Stop re-exporting AttrValue.Ms2ger2016-06-071-1/+2
|
* Add meta-referrer support for documentsRebecca2016-06-021-3/+48
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-2/+3
| | | | This entirely removes the 'non-geckolib' feature of the util crate.