aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servoparser
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* replaced ParseNodeID with ParseNodeIdstreichgeorg2017-06-261-22/+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-232-5/+9
| |
* | Support `is` option when creating elementsConnor Brewster2017-06-232-4/+14
|/
* Remove target and data fields from parse_node_dataNikhil Shagrithaya2017-06-221-19/+6
|
* Untry scriptSimon Sapin2017-06-181-4/+4
|
* Added preference to enable/disable async html tokenizerNikhil Shagrithaya2017-06-171-4/+12
|
* Added Async HTML TokenizerNikhil Shagrithaya2017-06-172-1/+502
|
* Redirect document loads manuallyNikhil Shagrithaya2017-05-311-0/+1
|
* Decode UTF-8 code points across network packetsSimon Sapin2017-05-273-26/+61
|
* Upgrade to html5ever 0.16Simon Sapin2017-05-023-313/+214
|
* Properly coalesce whitespace when given a reference child (fixes #15979)Anthony Ramine2017-03-171-1/+6
|
* Properly handle annotation-xml integration points (fixes #15980)Anthony Ramine2017-03-161-0/+11
|