aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servoparser
Commit message (Collapse)AuthorAgeFilesLines
...
| * set document ready state to complete in step 4 of parser abortGregory Terzian2018-12-231-2/+1
| |
* | Update src/href attributes to be a USVStringDan Robertson2018-12-171-2/+2
|/ | | | | | | | | | | | The following IDLs have the src/href attributes typed as a DOMString while in the spec the attribute has been updated to be a USVString: - HTMLIFrameElement - HTMLImageElement - HTMLInputElement - HTMLLinkElement - HTMLMediaElement - HTMLScriptElement
* Make the parser decode input from document's encodingAnthony Ramine2018-12-121-6/+10
| | | | | The document's encoding is only computed from the Content-Type header for now, with no sniffing at all.
* Fix an ignore_malloc_size_of commentAnthony Ramine2018-12-121-1/+1
|
* Remove an argument to ServoParser::parse_html_script_inputAnthony Ramine2018-12-121-5/+1
| | | | Since the spec of document.open was updated, this argument became useless.
* Use Utf8LossyDecoder instead of IncompleteUtf8Anthony Ramine2018-12-051-25/+66
|
* refactored performance timing to align with updated specddh2018-11-201-6/+54
| | | | | | | | | | | | refactoring with ResourceFetchMetadata implemented deprecated window.timing functionality created ResourceTimingListener trait fixed w3c links in navigation timing updated include.ini to run resource timing tests on ci
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-194-4/+4
|
* Update crossbeam-channel to 0.3Bastien Orivel2018-11-181-3/+3
|
* Reorder importsPyfisch2018-11-063-14/+18
|
* Format remaining filesPyfisch2018-11-063-16/+25
|
* Sort `use` statementsSimon Sapin2018-11-061-2/+2
|
* `cargo fix --edition`Simon Sapin2018-11-064-64/+64
|
* Update hyper to 0.12Bastien Orivel2018-11-011-14/+17
|
* Format script componentchansuke2018-09-194-306/+549
|
* Replace mpsc with crossbeam/servo channel, update ipc-channelSimon Sapin2018-09-121-1/+1
| | | | Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
* stopping tokenizer if parser is abortedGregory Terzian2018-07-291-0/+3
|
* spec compliant active parser conceptGregory Terzian2018-07-291-0/+5
|
* delegate resource reading to embedderPaul Rouget2018-04-271-5/+3
|
* Use specific assertion for DOM servoparserCYBAI2018-01-261-1/+1
|
* Use specific assertion for DOM servoparser async_htmlCYBAI2018-01-261-1/+1
|
* Implement `throw-on-dynamic-markup-insertion-counter`Connor Brewster2018-01-111-3/+3
|
* Add a check for when the js execution stack is emptyConnor Brewster2018-01-111-1/+4
|
* Implement the create an element for token algorithmConnor Brewster2018-01-114-40/+127
|
* queue event instead of immediately fireddh2017-11-301-0/+4
| | | | | | created checks to see if parser is in use before event dispatch changed tests to expect crash and added async style test
* Use FetchCanceller for document loadsManish Goregaokar2017-11-221-1/+2
|
* Treat application/xml like text/xml in ParserContext::process_responseChristian Gati2017-11-181-6/+4
| | | | Update wpt
* Upgrade to rustc 1.23.0-nightly (02004ef78 2017-11-08)Simon Sapin2017-11-092-2/+0
|
* Auto merge of #18968 - mbrubeck:try, r=emiliobors-servo2017-10-211-4/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | Use try syntax for Option where appropriate - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because they are refactoring only <!-- 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/18968) <!-- Reviewable:end -->
| * Use try syntax for Option where appropriateMatt Brubeck2017-10-201-4/+1
| |
* | removed same_tree and has_parent_node methodsNikhil Shagrithaya2017-10-192-19/+13
|/
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-184-25/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* Fix commonmark Markdown warnings in docs, part 1Matt Brubeck2017-10-172-6/+6
| | | | | | | | Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
* Remove use of unstable box syntax.Simon Sapin2017-10-161-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.
* ChildrenOnly -> ChildrenOnly(Option<QualName>)Jyotsna Prakash2017-10-071-2/+2
| | | | use this updated type from html5ever
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-264-31/+31
| | | | | | | 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 DOMRefCell<T> to DomRefCell<T>Anthony Ramine2017-09-261-9/+9
| | | | | | | | I don't want to do such a gratuitous rename, but with all the other types now having "Dom" as part of their name, and especially with "DomOnceCell", I feel like the other cell type that we already have should also follow the convention. That argument loses weight though when we realise there is still DOMString and other things.
* Rename MutNullableJS<T> to MutNullableDom<T>Anthony Ramine2017-09-261-2/+2
|
* Rename JS<T> to Dom<T>Anthony Ramine2017-09-264-63/+63
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-264-4/+4
|
* Implement `size_hint` for more iterators.Corey Farwell2017-09-131-0/+4
| | | | | | | | ``` implement size hint for more iterators because why not we like fast things ```
* order derivable traits listsClément DAVID2017-08-232-2/+2
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Auto merge of #18056 - cynicaldevil:remove-treesink-dep-on-dom, r=noxbors-servo2017-08-182-88/+129
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | End TreeBuilder's reliance on DOM. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> Fixed h5e's TreeBuilder so that it does not use `same_tree` and `has_parent_node` methods: https://github.com/cynicaldevil/html5ever/commit/d8c2ea5cb62a1a755bb78b9f5de05d966776883a <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- 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/18056) <!-- Reviewable:end -->
| * TreeSink impls do not explicitly rely on and methods anymoreNikhil Shagrithaya2017-08-182-88/+129
| |
* | Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10)Simon Sapin2017-08-151-2/+2
|/
* Run the async HTML Tokenizer on a new threadNikhil Shagrithaya2017-07-291-221/+461
|
* Backed out changeset a417b9d7712d for vendoring bustage. r=backout on a ↵Gecko Backout2017-07-281-461/+221
| | | | | | CLOSED TREE Backs out https://github.com/servo/servo/pull/17565
* Run the async HTML Tokenizer on a new threadNikhil Shagrithaya2017-07-241-221/+461
|
* Replace all uses of the style::stylearc alias with servo_arc.Michael Partheil2017-07-191-2/+2
| | | | | | 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).
* Convert node serialization to a purely iterative algorithm.Austin Hicks2017-07-171-63/+121
| | | | We maintain a stack of open element nodes and non-node elements and use it to determine when to close them.