aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servoparser/mod.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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 -->
| * Issue #15017: Properly handle and report network errors on page loads.Simon Martin2017-01-281-10/+17
| |
* | Allow windows to share browsing contexts.Alan Jeffrey2017-01-281-2/+2
| |
* | The constellation notifies the script thread about documents becoming ↵Alan Jeffrey2017-01-271-0/+2
|/ | | | inactive, active and fully active.
* Kill ServoParser::pipelineAnthony Ramine2017-01-271-26/+4
|
* Reformat dom::servoparserAnthony Ramine2017-01-251-61/+56
|
* Simplify processing of deferred scriptsAnthony Ramine2017-01-201-2/+1
| | | | | It is now done on-demand when a deferred script finished loading, and when the page source finished loading.
* Mark the page source as loaded only after parsing is doneAnthony Ramine2017-01-191-5/+13
|
* Reorder some steps in ServoParser::finishAnthony Ramine2017-01-171-6/+6
|
* Remove ScriptThread::parsing_completeAnthony Ramine2017-01-171-6/+18
|
* Introduce PendingScriptAnthony Ramine2017-01-111-3/+3
| | | | | This moves scripts' loading results in Document, instead of maintaining them behind a DOMRefCell in each HTMLScriptElement.
* Introduce Document::has_pending_parsing_blocking_scriptAnthony Ramine2017-01-111-2/+2
|
* Unify text insertion when parsing HTML and XMLAnthony Ramine2017-01-101-0/+20
|
* Pass the Document's origin to its constructor.Ms2ger2016-12-231-0/+1
| | | | CC #10963.