aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlmetaelement.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Overrode parse_plain_attribute of VirtualMethods for HTMLMetaElement to pass ↵Joseph P DeBartola III2016-05-181-1/+9
| | | | | | | | as an Atom Imported AttrValue into HTMLMetaElement Updated make_setter! to make_atomic_setter! for in HTMLMetaElement
* Recompute viewport-dependent styles on viewport size changeMatt Brubeck2016-03-191-0/+3
| | | | Fixes #8754.
* Refactor style to be completely backend-independentEmilio Cobos Álvarez2016-02-131-1/+2
| | | | | | | | | | | This commit refactors the style crate to be completely independent of the actual implementation and pseudo-elements supported. This also adds a gecko backend which introduces parsing for the anonymous box pseudo-elements[1], although there's still no way of querying them. https://mxr.mozilla.org/mozilla-central/source/layout/style/nsCSSAnonBoxList.h
* Fix a bunch of clippy lintsJohannes Linke2016-01-021-3/+2
|
* Remove unnecessary conversion to/from DOMString for localName.Eli Friedman2015-12-021-2/+3
|
* Update string_cache to 0.2.Alan Jeffrey2015-11-251-2/+2
| | | | | | | | | | | Updated string_cache, html5ever, xml5ever and selectors in Cargo.toml files and Cargo.lock. Removed references to string_cache_plugin. Import atom! and ns! from string_cache. Replaced ns!("") by ns!(). Replaced ns!(XML) and co by ns!(xml) and co. Replaced atom!(foo) by atom!("foo"). Replaced Atom::from_slice by Atom::from. Replaced atom.as_slice() by &*atom.
* Ignore `<meta name=viewport>` if `@viewport` is.Michael Howell2015-11-151-0/+3
| | | | Fixes #8373
* Move Stylesheet loading and ownership from the layout task into HTML elementsTill Schneidereit2015-11-071-9/+20
| | | | | | | | | | | | | | Stylesheets for `HTMLLinkElement`s are now loaded by the resource task, triggered by the element in question. Stylesheets are owned by the elements they're associated with, which can be `HTMLStyleElement`, `HTMLLinkElement`, and `HTMLMetaElement` (for `<meta name="viewport">). Additionally, the quirks mode stylesheet (just as the user and user agent stylesheets a couple of commits ago), is implemented as a lazy static, loaded once per process and shared between all documents. This all has various nice consequences: - Stylesheet loading becomes a non-blocking operation. - Stylesheets are removed when the element they're associated with is removed from the document. - It'll be possible to implement the CSSOM APIs that require direct access to the stylesheets (i.e., ~ all of them). - Various subtle correctness issues are fixed. One piece of interesting follow-up work would be to move parsing of external stylesheets to the resource task, too. Right now, it happens in the link element once loading is complete, so blocks the script task. Moving it to the resource task would probably be fairly straight-forward as it doesn't require access to any external state.