aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servoparser/mod.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* 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-191-1/+1
|
* Reorder importsPyfisch2018-11-061-7/+9
|
* Format remaining filesPyfisch2018-11-061-11/+15
|
* Sort `use` statementsSimon Sapin2018-11-061-2/+2
|
* `cargo fix --edition`Simon Sapin2018-11-061-29/+29
|
* Update hyper to 0.12Bastien Orivel2018-11-011-14/+17
|
* Format script componentchansuke2018-09-191-109/+208
|
* 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
|
* 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-111-21/+106
|
* 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-091-1/+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-191-11/+13
|/
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-171-5/+5
| | | | | | | | 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.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-14/+14
| | | | | | | 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-261-34/+34
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* 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-231-1/+1
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* TreeSink impls do not explicitly rely on and methods anymoreNikhil Shagrithaya2017-08-181-1/+22
|
* Auto merge of #17515 - frewsxcv:frewsxcv-simple-node-iterator, r=KiChjangbors-servo2017-06-251-5/+9
|\ | | | | | | | | | | | | | | Merge explicit node iterator structures into single generic structure. <!-- 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/17515) <!-- Reviewable:end -->
| * Merge explicit node iterator structures into single generic structure.Corey Farwell2017-06-251-5/+9
| |
* | Add flag for sync/async CE creationConnor Brewster2017-06-231-3/+6
| |
* | Support `is` option when creating elementsConnor Brewster2017-06-231-2/+6
|/
* Added preference to enable/disable async html tokenizerNikhil Shagrithaya2017-06-171-4/+12
|
* Added Async HTML TokenizerNikhil Shagrithaya2017-06-171-1/+9
|
* Redirect document loads manuallyNikhil Shagrithaya2017-05-311-0/+1
|
* Decode UTF-8 code points across network packetsSimon Sapin2017-05-271-18/+53
|
* Upgrade to html5ever 0.16Simon Sapin2017-05-021-5/+195
|
* Properly coalesce whitespace when given a reference child (fixes #15979)Anthony Ramine2017-03-171-1/+6
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Add ImmutableOrigin to allow for serializing originsConnor Brewster2017-02-221-1/+1
|
* Auto merge of #15303 - nox:open-your-heart-to-eternal-dimension, r=jdmbors-servo2017-02-031-15/+100
|\ | | | | | | | | | | | | | | Implement document.open and document.close <!-- 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/15303) <!-- Reviewable:end -->
| * Implement document.open and document.close (fixes #14591)Anthony Ramine2017-02-031-15/+100
| |
* | Auto merge of #15285 - simartin:issue_15017, r=noxbors-servo2017-02-031-10/+17
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue #15017: Properly handle and report network errors on page loads. <!-- Please describe your changes on the following line: --> This patch fixes how network errors are handled during page loads: they would not be reported and cause crashes before, and do not anymore. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #15017 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes <!-- 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/15285) <!-- Reviewable:end -->