aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/create.rs
Commit message (Collapse)AuthorAgeFilesLines
* clippy: Fix `explicit_auto_deref` warnings in `components/script` (#31837)Oluwatobi Sofela2024-03-231-5/+5
| | | | | | | | | * clippy: Fix explicit auto-deref warnings * clippy: Fix explicit auto-deref warnings * refactor: Tidy up code * refactor: Fix method not found errors
* Treat the `keygen` element as obsolete (#30429)Ennui Langeweile2023-09-261-0/+2
| | | | | | | | | * Eradicate the `keygen` element * Run `./mach fmt` * Fix relevant Servo test * Fix outdated manifest
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-5/+5
| | | | | * strict imports formatting * Reformat all imports
* remove `extern crate` (#30311)Samson2023-09-081-1/+1
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Support arbitrary protos when wrapping DOM objects with constructors.Josh Matthews2023-05-281-11/+18
|
* Make GlobalScope.get_cx a static method.Josh Matthews2023-05-201-1/+1
|
* Introduce ElementCSSInlineStyle for SVGElementCYBAI2020-06-051-1/+2
|
* Always pass InRealm to GlobalScope::from_context to avoid getting null globalCYBAI2020-02-161-4/+3
|
* :defined worksPatrick Shaughnessy2020-01-301-0/+2
|
* Implement HTMLMenuElementPatrick Shaughnessy2020-01-231-0/+2
|
* apply is: to Document.createElement even when name isn't registered yetPatrick Shaughnessy2019-12-221-6/+13
|
* Use safe JSContext as first argument for throw_dom_exceptionmarmeladema2019-08-091-1/+1
|
* Modify *::get_cx methods to return a safe JSContext instead of a raw onemarmeladema2019-07-241-3/+3
|
* Update to SpiderMonkey 66.Josh Matthews2019-05-101-5/+3
|
* Add custom elements related stuff into ElementRareDataFernando Jiménez Moreno2019-04-261-2/+4
|
* #8539 Config preferences backend restructurePeter Hall2019-03-201-2/+2
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Sort `use` statementsSimon Sapin2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-77/+77
|
* Remove the HTMLTable{Header,Data}CellElement interfacesSimon Pieters2018-10-021-4/+3
| | | | Fixes #17222.
* Format script componentchansuke2018-09-191-162/+173
|
* Implement HTMLPictureElement interface.Rakhi Sharma2018-01-291-0/+2
|
* Use specific assertion for DOM createCYBAI2018-01-261-2/+2
|
* script: Remove HTMLAppletElement.Emilio Cobos Álvarez2017-11-061-8/+7
| | | | It was removed from the spec, there's no reason to keep it in tree.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-11/+11
| | | | | | | 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 dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Track custom element stateConnor Brewster2017-08-091-4/+18
|
* Enqueue upgradesConnor Brewster2017-08-091-4/+16
|
* Check namespace during ce def lookupConnor Brewster2017-08-091-1/+1
|
* Use HTMLElement interface for possible CEsConnor Brewster2017-08-091-1/+4
|
* Support custom element callback reactionsConnor Brewster2017-07-171-1/+4
|
* Allow element prefix to be setConnor Brewster2017-06-231-1/+1
| | | | | Implements step 6.1.10 of https://dom.spec.whatwg.org/#concept-create-element
* Add flag for sync/async CE creationConnor Brewster2017-06-231-20/+28
|
* Support `is` option when creating elementsConnor Brewster2017-06-231-4/+10
|
* Hook CE registry into element creationConnor Brewster2017-06-231-0/+35
|
* Implement HTMLConstructorConnor Brewster2017-06-151-4/+12
|
* Solving merge conficts related to the html5ever_atoms -> html5ever changeChristian Poveda2017-05-031-6/+2
|\
| * Upgrade to html5ever 0.16Simon Sapin2017-05-021-3/+2
| |
* | Changed all prefixes from DOMString to the atomic Prefix from html5everChristian Poveda2017-05-031-4/+3
|/
* script: Add infrastructure to track subresource loads in <link> and <style> ↵Emilio Cobos Álvarez2016-12-161-1/+1
| | | | elements.
* Removed util.Alan Jeffrey2016-12-141-1/+1
|
* Update to string-cache 0.3Simon Sapin2016-11-031-135/+135
|
* add SVGElement, SVGGraphicsElement interfaces and SVGSVGElement elementAlexandrov Sergey2016-10-061-7/+46
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Implement HTMLDetailsElement. Fixes #9216Lanza2016-01-201-1/+2
|
* Remove unnecessary conversion to/from DOMString for localName.Eli Friedman2015-12-021-3/+3
|
* Update string_cache to 0.2.Alan Jeffrey2015-11-251-1/+1
| | | | | | | | | | | 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.
* Rustfmt some of script.Ms2ger2015-11-181-2/+4
|
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-5/+6
| | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* Move Stylesheet loading and ownership from the layout task into HTML elementsTill Schneidereit2015-11-071-1/+1
| | | | | | | | | | | | | | 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.