Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | clippy: Fix `explicit_auto_deref` warnings in `components/script` (#31837) | Oluwatobi Sofela | 2024-03-23 | 1 | -1/+1 |
| | | | | | | | | | * clippy: Fix explicit auto-deref warnings * clippy: Fix explicit auto-deref warnings * refactor: Tidy up code * refactor: Fix method not found errors | ||||
* | Support the parsing of image/svg+xml elements (#31318) | Keith Yeung | 2024-02-14 | 1 | -2/+2 |
| | | | | | * Support the parsing of image/svg+xml elements * Update WPT test expectations | ||||
* | Strict import formatting (grouping and granularity) (#30325) | Samson | 2023-09-11 | 1 | -9/+8 |
| | | | | | * strict imports formatting * Reformat all imports | ||||
* | Rename reflect_dom_object2. | Josh Matthews | 2023-05-31 | 1 | -2/+2 |
| | |||||
* | Formatting. | Josh Matthews | 2023-05-28 | 1 | -1/+4 |
| | |||||
* | Support arbitrary protos when wrapping DOM objects with constructors. | Josh Matthews | 2023-05-28 | 1 | -5/+6 |
| | |||||
* | Fix `document.characterSet` not reflecting byte order marks. | Andreu Botella | 2020-12-31 | 1 | -2/+2 |
| | | | | | | | | | | | | | The process of decoding the network byte stream to Unicode is backed by an instance of `encoding_rs::Decoder`, which will switch the encoding it uses if it finds a BOM in the byte stream. However, this change in encoding is not communicated back to the caller and so `document.characterSet` gives the wrong result. This change fixes that. See whatwg/html#5359 and whatwg/encoding#203 for the spec-level backing for this change. Signed-off-by: Andreu Botella <abb@randomunok.com> | ||||
* | Add trait DomObjectWrap to provide WRAP function | YUAN LYU | 2020-03-20 | 1 | -5/+1 |
| | |||||
* | Modify `script` to prevent further violations of snake_case | Kunal Mohan | 2020-01-18 | 1 | -0/+1 |
| | |||||
* | Update MPL license to https (part 3) | Jan Andre Ikenmeyer | 2018-11-19 | 1 | -1/+1 |
| | |||||
* | Reorder imports | Pyfisch | 2018-11-06 | 1 | -2/+2 |
| | |||||
* | `cargo fix --edition` | Simon Sapin | 2018-11-06 | 1 | -17/+17 |
| | |||||
* | Format script component | chansuke | 2018-09-19 | 1 | -36/+46 |
| | |||||
* | Updated content_type of Document and XMLDocument from DOCString to Mime | Nupur Baghel | 2018-02-09 | 1 | -1/+1 |
| | |||||
* | replace DocumentSource::NotFromParser with DocumentSource::FromParser | tigercosmos | 2018-01-06 | 1 | -2/+2 |
| | |||||
* | Use FetchCanceller for document loads | Manish Goregaokar | 2017-11-22 | 1 | -2/+4 |
| | |||||
* | Remove use of unstable box syntax. | Simon Sapin | 2017-10-16 | 1 | -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 Ramine | 2017-09-26 | 1 | -4/+4 |
| | | | | | | | 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 JS<T> to Dom<T> | Anthony Ramine | 2017-09-26 | 1 | -3/+3 |
| | |||||
* | Rename dom::bindings::js to dom::bindings::root | Anthony Ramine | 2017-09-26 | 1 | -1/+1 |
| | |||||
* | Make #[dom_struct] a proc_macro attribute | Anthony Ramine | 2017-02-24 | 1 | -0/+1 |
| | |||||
* | Add ImmutableOrigin to allow for serializing origins | Connor Brewster | 2017-02-22 | 1 | -2/+2 |
| | |||||
* | Adds an `as_str()` method to WebIDL enums to hide slice of strings from ↵ | Gregory Katz | 2017-02-16 | 1 | -2/+1 |
| | | | | callers. Uses the new method in two places. | ||||
* | Allow windows to share browsing contexts. | Alan Jeffrey | 2017-01-28 | 1 | -3/+3 |
| | |||||
* | The constellation notifies the script thread about documents becoming ↵ | Alan Jeffrey | 2017-01-27 | 1 | -0/+3 |
| | | | | inactive, active and fully active. | ||||
* | Kill ServoParser::pipeline | Anthony Ramine | 2017-01-27 | 1 | -2/+2 |
| | |||||
* | Auto merge of #14647 - servo:current-global, r=jdm | bors-servo | 2016-12-29 | 1 | -0/+2 |
|\ | | | | | | | | | | | | | | | Support the 'current' global object. <!-- 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/14647) <!-- Reviewable:end --> | ||||
| * | Pass the Document's origin to its constructor. | Ms2ger | 2016-12-23 | 1 | -0/+2 |
| | | | | | | | | CC #10963. | ||||
* | | Update links to DOM Parsing specification | Raghav | 2016-12-28 | 1 | -1/+1 |
|/ | | | | | Changed links from https://domparsing.spec.whatwg.org/ to https://w3c.github.io/DOM-Parsing/. | ||||
* | Make WebIDL constructors take a more specific global if possible (fixes #14071) | Rohan Prinja | 2016-11-30 | 1 | -3/+2 |
| | |||||
* | Reorganise ServoParser | Anthony Ramine | 2016-11-14 | 1 | -4/+3 |
| | | | | | | Free-standing fonctions parse_html and friends are now static methods on ServoParser, and the HTML and XML tokenizers have been moved to private submodules. | ||||
* | Remove intrinsic Root::r() | Anthony Ramine | 2016-10-11 | 1 | -3/+2 |
| | |||||
* | Merge script::parse and script::dom::servoparser | Anthony Ramine | 2016-10-11 | 1 | -2/+2 |
| | |||||
* | Pass a &GlobalScope to WebIDL static methods and constructors | Anthony Ramine | 2016-10-06 | 1 | -3/+3 |
| | |||||
* | Introduce GlobalScope::as_window | Anthony Ramine | 2016-10-06 | 1 | -1/+1 |
| | |||||
* | Make reflect_dom_object take a &GlobalScope | Anthony Ramine | 2016-10-06 | 1 | -1/+1 |
| | |||||
* | Reorder `use` statements | UK992 | 2016-09-09 | 1 | -1/+1 |
| | |||||
* | script: Obtain referrer policy from header | Aravind Gollakota | 2016-07-15 | 1 | -0/+2 |
| | |||||
* | Implement Document.referrer | Nazım Can Altınova | 2016-07-14 | 1 | -2/+4 |
| | |||||
* | Added support for additional xml types to DOMParser::parseFromString | Andrew Fluth | 2016-06-01 | 1 | -2/+5 |
| | |||||
* | Move DOMString back to script | Anthony Ramine | 2016-05-24 | 1 | -1/+1 |
| | | | | This entirely removes the 'non-geckolib' feature of the util crate. | ||||
* | Store a pointer to the browsing context in the Document. | Ms2ger | 2016-02-11 | 1 | -0/+2 |
| | |||||
* | Rustfmt some of script. | Ms2ger | 2015-11-18 | 1 | -6/+10 |
| | |||||
* | Replaced DOMString constructor by conversion functions. | Alan Jeffrey | 2015-11-12 | 1 | -2/+1 |
| | | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("..."). | ||||
* | M1503 - Integrate XML parse -Initial Steps | jsharda | 2015-11-04 | 1 | -6/+9 |
| | |||||
* | Make DOMString a newtype around String, rather than a typedef. | Ms2ger | 2015-11-04 | 1 | -1/+1 |
| | | | | | | | | | | This should make it somewhat easier to experiment with alternative representations in the future. To reduce churn, this commit leaves the String field public, though. Also, this will allow us to use the default String type to represent the IDL USVString type, which explicitly forbids unpaired surrogates, ans as such is a better match to the Rust String type. | ||||
* | Get rid of a bunch of explicit derefs | David Zbarsky | 2015-11-03 | 1 | -1/+1 |
| | |||||
* | more refactoring | rohan.prinja | 2015-10-30 | 1 | -1/+1 |
| | |||||
* | Do not root DOMParser::window | Anthony Ramine | 2015-10-19 | 1 | -5/+4 |
| | |||||
* | Issue 8028: `parse_html` should take `Url` rather than `&Url` | Stephen Li | 2015-10-15 | 1 | -1/+1 |
| |