aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domparser.rs
Commit message (Collapse)AuthorAgeFilesLines
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Add ImmutableOrigin to allow for serializing originsConnor Brewster2017-02-221-2/+2
|
* Adds an `as_str()` method to WebIDL enums to hide slice of strings from ↵Gregory Katz2017-02-161-2/+1
| | | | callers. Uses the new method in two places.
* Allow windows to share browsing contexts.Alan Jeffrey2017-01-281-3/+3
|
* The constellation notifies the script thread about documents becoming ↵Alan Jeffrey2017-01-271-0/+3
| | | | inactive, active and fully active.
* Kill ServoParser::pipelineAnthony Ramine2017-01-271-2/+2
|
* Auto merge of #14647 - servo:current-global, r=jdmbors-servo2016-12-291-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.Ms2ger2016-12-231-0/+2
| | | | | | | | CC #10963.
* | Update links to DOM Parsing specificationRaghav2016-12-281-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 Prinja2016-11-301-3/+2
|
* Reorganise ServoParserAnthony Ramine2016-11-141-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 Ramine2016-10-111-3/+2
|
* Merge script::parse and script::dom::servoparserAnthony Ramine2016-10-111-2/+2
|
* Pass a &GlobalScope to WebIDL static methods and constructorsAnthony Ramine2016-10-061-3/+3
|
* Introduce GlobalScope::as_windowAnthony Ramine2016-10-061-1/+1
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-1/+1
|
* Reorder `use` statementsUK9922016-09-091-1/+1
|
* script: Obtain referrer policy from headerAravind Gollakota2016-07-151-0/+2
|
* Implement Document.referrerNazım Can Altınova2016-07-141-2/+4
|
* Added support for additional xml types to DOMParser::parseFromStringAndrew Fluth2016-06-011-2/+5
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Store a pointer to the browsing context in the Document.Ms2ger2016-02-111-0/+2
|
* Rustfmt some of script.Ms2ger2015-11-181-6/+10
|
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-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 Stepsjsharda2015-11-041-6/+9
|
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-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 derefsDavid Zbarsky2015-11-031-1/+1
|
* more refactoringrohan.prinja2015-10-301-1/+1
|
* Do not root DOMParser::windowAnthony Ramine2015-10-191-5/+4
|
* Issue 8028: `parse_html` should take `Url` rather than `&Url`Stephen Li2015-10-151-1/+1
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-2/+1
| | | | This merges import blocks that were reported by tidy as unmerged.
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-2/+2
|
* Remove helper traitsAnthony Ramine2015-08-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that JSRef<T> is gone, there is no need to have helper traits. On components/script/*.rs: # Remove imports. /^ *use dom::[a-z]+::\{.*Helpers/ { s/\{(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers, /\{/ s/, (Raw[^L]|[^L][^a])[a-zA-Z]+Helpers([,}])/\2/g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::[a-z]+::\{?(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers\}?;$/d On components/script/dom/*.rs: # Ignore layout things. /^(pub )?(impl|trait).*Layout.* \{/,/^}$/ { P; D; } # Delete helpers traits. /^(pub )?trait ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? \{$/,/^\}$/D # Patch private helpers. /^impl.*Private.*Helpers/,/^\}$/ { s/^impl<'a> Private([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for &'a ([^ ]+) \{$/impl \3 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn /s/\(self([,)])/\(\&self\1/ } # Patch public helpers. /^impl.*Helpers/,/^\}$/ { s/^impl(<'a>)? ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for (&'a )?([^ ]+) \{$/impl \5 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn .*\(&?self[,)]/s/(unsafe )?fn/pub &/ /^ *pub (unsafe )?fn /s/\(self([,)])/\(\&self\1/ } The few error cases were then fixed by hand.
* make dom_struct derive HeapSizeOf,João Oliveira2015-08-271-2/+0
| | | | closes #7357
* sort all usesJohann Tuffe2015-08-201-2/+2
|
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-0/+1
|
* Upgrade to SM 39Michael Wu2015-06-191-10/+10
|
* Make external script sources load asynchronously, yet still block further ↵Josh Matthews2015-05-201-2/+2
| | | | parsing. Hook up document loading to async networking events.
* Implement a DocumentLoader type that tracks pending loads and notifies the ↵Josh Matthews2015-05-111-2/+9
| | | | script task when the queue is empty. Dispatch the document load event based on the DocumentLoader's notification.
* Uniformise root() methodsAnthony Ramine2015-04-281-1/+1
| | | | | They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable and ResultRootable.
* Update WHATWG links to use HTTPSCorey Farwell2015-04-131-1/+1
| | | | | | | | | | | | | | Extracted this out of #5649 This commit was created with the following commands: ``` find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ``` ``` find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ```
* Implement Element.innerHTML setterChris Paris2015-03-181-1/+1
|
* Refactored optional argument "last_modified" for DocumentMartin Schröder2015-03-161-0/+2
| | | | Fixes #4981
* Move everything unrelated to the frame tree out of Page and into Document or ↵Josh Matthews2015-03-031-1/+1
| | | | Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal.
* Remove unsupported types from the SupportedType IDL enum.Ms2ger2015-02-281-4/+0
|
* Replace uint/int by usize/isize in various places.Ms2ger2015-02-201-1/+1
|
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-1/+1
| | | | | | | | This used to conflict with the util crate from the standard library, which has long since been removed. The import in layout has not been changed because of a conflict with the util mod there.
* Move to to_owned rather than into_string.Ms2ger2015-01-201-1/+3
| | | | into_string has been removed from Rust.
* Fixes #4164 Make Constructor and new functions take GlobalRef by valueMatt McCoy2015-01-071-1/+1
|
* Remove unsound Root::deref() calls in DOMParser::ParseFromString.Ms2ger2015-01-011-8/+8
| | | | Note that Root::clone() calls through to JSRef::clone() due to autoderef.