aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servoparser/xml.rs
Commit message (Collapse)AuthorAgeFilesLines
* Refactor ServoParser Tokenizer to return TokenizerResultNipun Garg2023-06-221-4/+6
|
* Use `#![register_tool]` instead of `#![register_attr]`Simon Sapin2019-11-151-1/+1
| | | | CC https://github.com/rust-lang/rust/issues/66079
* Update xml5ever and html5everBastien Orivel2019-05-191-12/+3
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-6/+6
|
* Format script componentchansuke2018-09-191-4/+4
|
* Implement the create an element for token algorithmConnor Brewster2018-01-111-1/+2
|
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-2/+2
| | | | | | | 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 JS<T> to Dom<T>Anthony Ramine2017-09-261-6/+6
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Decode UTF-8 code points across network packetsSimon Sapin2017-05-271-5/+5
|
* Upgrade to html5ever 0.16Simon Sapin2017-05-021-126/+7
|
* Mark the page source as loaded only after parsing is doneAnthony Ramine2017-01-191-0/+4
|
* Store parser's current line when script elements are created.karenher2017-01-111-1/+2
| | | | | | Use the newly stored line as the starting line number when evaluating JS. This ensures that inline scripts will report errors with meaningful line numbers.
* Unify text insertion when parsing HTML and XMLAnthony Ramine2017-01-101-8/+4
|
* Properly insert text in document when parsingAnthony Ramine2017-01-071-0/+6
| | | | | | | If the last child of a node is a Text child and we are inserting text in that node, we need to append it to that Text child. Doing that means that HTMLStyleElement::children_changed gets called less frequently, but that's not a problem during parsing thanks to the pop hook.
* Update xml5ever to 0.3.0Anthony Ramine2017-01-071-2/+7
|
* Remove HeapGCValueAnthony Ramine2016-12-121-2/+2
| | | | | | It could be used to have mutable JSVal fields without GC barriers. With the removal of that trait, MutHeap and MutNullableHeap can respectively be replaced by MutJS and MutNullableJS.
* Mark JSTraceable and its method as unsafeAnthony Ramine2016-12-061-3/+4
|
* Make Element::prefix return an Option<&DOMString>Anthony Ramine2016-12-011-1/+1
|
* Make ServoParser::pending_input hold onto a BufferQueueAnthony Ramine2016-11-181-15/+31
|
* Urlmageddon: Use refcounted urls more often.Emilio Cobos Álvarez2016-11-171-2/+2
|
* Reorganise ServoParserAnthony Ramine2016-11-141-28/+59
| | | | | | Free-standing fonctions parse_html and friends are now static methods on ServoParser, and the HTML and XML tokenizers have been moved to private submodules.
* Update html5ever to 0.10.1Anthony Ramine2016-11-101-3/+2
|
* Update to string-cache 0.3Simon Sapin2016-11-031-6/+6
|
* Remove intrinsic Root::r()Anthony Ramine2016-10-111-1/+1
|
* Merge script::parse and script::dom::servoparserAnthony Ramine2016-10-111-0/+147