aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlmetaelement.rs
Commit message (Collapse)AuthorAgeFilesLines
...
| | * 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.
* Get rid of a bunch of explicit derefsDavid Zbarsky2015-11-031-1/+1
|
* move Castable into dom::bindings::inheritancerohan.prinja2015-10-301-1/+1
|
* Clean up the cast callsAnthony Ramine2015-10-211-4/+2
|
* Introduce trait CastableAnthony Ramine2015-10-211-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This trait is used to hold onto the downcast and upcast functions of all castable IDL interfaces. A castable IDL interface is one which either derives from or is derived by other interfaces. The deriving relation is represented by implementations of marker trait DerivedFrom<T: Castable> generated in InheritTypes. /^[ ]*use dom::bindings::codegen::InheritTypes::.*(Base|Cast|Derived)/ { /::[a-zA-Z]+(Base|Cast|Derived);/d s/([{ ])[a-zA-Z]+(Base|Cast|Derived), /\1/g s/([{ ])[a-zA-Z]+(Base|Cast|Derived), /\1/g s/, [a-zA-Z]+(Base|Cast|Derived)([},])/\2/g s/, [a-zA-Z]+(Base|Cast|Derived)([},])/\2/g /\{([a-zA-Z]+(Base|Cast|Derived))?\};$/d s/\{([a-zA-Z_]+)\};$/\1;/ } s/([a-zA-Z]+)Cast::from_ref\(\&?\**([a-zA-Z_]+)(\.r\(\))?\)/\2.upcast::<\1>()/g s/([a-zA-Z]+)Cast::from_ref\(\&?\**([a-zA-Z_]+)(\.[a-zA-Z_]+\(\))?\)/\2\3.upcast::<\1>()/g s/\(([a-zA-Z]+)Cast::from_ref\)/\(Castable::upcast::<\1>\)/g s/([a-zA-Z]+)Cast::from_root/Root::upcast::<\1>/g s/([a-zA-Z]+)Cast::from_layout_js\(\&([a-zA-Z_.]+)\)/\2.upcast::<\1>()/g s/([a-zA-Z]+)Cast::to_ref\(\&?\**([a-zA-Z_]+)(\.r\(\))?\)/\2.downcast::<\1>()/g s/([a-zA-Z]+)Cast::to_ref\(\&?\**([a-zA-Z_]+)(\.[a-zA-Z_]+\(\))?\)/\2\3.downcast::<\1>()/g s/\(([a-zA-Z]+)Cast::to_ref\)/\(Castable::downcast::<\1>\)/g s/([a-zA-Z]+)Cast::to_root/Root::downcast::<\1>/g s/([a-zA-Z]+)Cast::to_layout_js\(&?([a-zA-Z_.]+(\(\))?)\)/\2.downcast::<\1>()/g s/\.is_document\(\)/.is::<Document>()/g s/\.is_htmlanchorelement\(\)/.is::<HTMLAnchorElement>()/g s/\.is_htmlappletelement\(\)/.is::<HTMLAppletElement>()/g s/\.is_htmlareaelement\(\)/.is::<HTMLAreaElement>()/g s/\.is_htmlbodyelement\(\)/.is::<HTMLBodyElement>()/g s/\.is_htmlembedelement\(\)/.is::<HTMLEmbedElement>()/g s/\.is_htmlfieldsetelement\(\)/.is::<HTMLFieldSetElement>()/g s/\.is_htmlformelement\(\)/.is::<HTMLFormElement>()/g s/\.is_htmlframesetelement\(\)/.is::<HTMLFrameSetElement>()/g s/\.is_htmlhtmlelement\(\)/.is::<HTMLHtmlElement>()/g s/\.is_htmlimageelement\(\)/.is::<HTMLImageElement>()/g s/\.is_htmllegendelement\(\)/.is::<HTMLLegendElement>()/g s/\.is_htmloptgroupelement\(\)/.is::<HTMLOptGroupElement>()/g s/\.is_htmloptionelement\(\)/.is::<HTMLOptionElement>()/g s/\.is_htmlscriptelement\(\)/.is::<HTMLScriptElement>()/g s/\.is_htmltabledatacellelement\(\)/.is::<HTMLTableDataCellElement>()/g s/\.is_htmltableheadercellelement\(\)/.is::<HTMLTableHeaderCellElement>()/g s/\.is_htmltablerowelement\(\)/.is::<HTMLTableRowElement>()/g s/\.is_htmltablesectionelement\(\)/.is::<HTMLTableSectionElement>()/g s/\.is_htmltitleelement\(\)/.is::<HTMLTitleElement>()/g
* Remove explicit lifetimes which can be elided.Adam Szopa2015-10-211-1/+1
|
* Explicitly customise flags of new nodes where neededAnthony Ramine2015-10-151-3/+2
| | | | | | | Given codegen now generates the various TypeId enums, it seems pointless to still have to write their respective values in every DOM struct inheriting from Node just to set the initial IS_IN_DOC flag in Document and IN_ENABLED_STATE in form controls.
* Generate all Derived implementations in codegenAnthony Ramine2015-10-141-12/+2
|
* Generate the TypeId enums in codegenAnthony Ramine2015-10-141-6/+6
|
* Handle <meta name=viewport> elements when added to documentJames Gilbertson2015-09-301-3/+54
|
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-1/+1
|