aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servoparser/mod.rs
Commit message (Collapse)AuthorAgeFilesLines
* Use `#![register_tool]` instead of `#![register_attr]`Simon Sapin2019-11-151-2/+2
| | | | CC https://github.com/rust-lang/rust/issues/66079
* Add simple implementation of content-security-policy on scripts / stylesMichael Howell2019-10-161-0/+28
| | | | | | | | This needs a lot more hooks before it'll actually be a good implementation, but for a start it can help get some feedback on if this is the right way to go about it. Part of servo/servo#4577
* Responding to review commentsAlan Jeffrey2019-09-111-25/+27
|
* Prefetch img and scripts during parsingAlan Jeffrey2019-09-101-4/+41
|
* Upgrade to rustc 1.38.0-nightly (dddb7fca0 2019-07-30)Simon Sapin2019-07-311-1/+1
|
* Merge Node::shadow_including_inclusive_ancestors into inclusive_ancestorsFernando Jiménez Moreno2019-04-261-2/+2
|
* #8539 Config preferences backend restructurePeter Hall2019-03-201-6/+2
|
* Remove most RootedReference usesAnthony Ramine2019-03-101-2/+2
| | | | We can replace all uses of RootedReference for Option<T> by Option::deref calls.
* Auto merge of #22121 - gterzian:remove_constellation_block_in_navigation, ↵bors-servo2018-12-261-2/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=paulrouget Remove sync constellation -> embedder communication <!-- 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: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #22042 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/22121) <!-- Reviewable:end -->
| * 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-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
| |