aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Node retargeting algorithmFernando Jiménez Moreno2019-04-261-0/+31
|
* Add is_connected flag to node and use it to replace most uses of is_in_docFernando Jiménez Moreno2019-04-261-9/+17
|
* Implement shadow-including root, set node as in doc when connected. Makes JS ↵Fernando Jiménez Moreno2019-04-261-6/+24
| | | | work in shadow trees
* Expose Element.AttachShadow under dom.shadowdom.enabled prefFernando Jiménez Moreno2019-04-261-1/+1
|
* Node shadow root ownerFernando Jiménez Moreno2019-04-261-0/+16
|
* IS_IN_SHADOW_TREE flagFernando Jiménez Moreno2019-04-261-0/+9
|
* Partial ShadowRoot implementation of DocumentOrShadowRootFernando Jiménez Moreno2019-04-261-4/+10
|
* ShadowRoot interfaceFernando Jiménez Moreno2019-04-261-16/+18
|
* Implement CDATASection interface and createCDATASection methodGeorge Roman2019-03-141-8/+18
|
* Simplify RootedReference and make it specifically about slicesIt's now ↵Anthony Ramine2019-03-111-1/+1
| | | | called DomSlice<T>.
* Remove most RootedReference usesAnthony Ramine2019-03-101-33/+42
| | | | We can replace all uses of RootedReference for Option<T> by Option::deref calls.
* Make a bunch of layout queries morally saferAnthony Ramine2019-01-091-4/+8
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-11/+10
|
* Prevent JS execution and layout operations while DOM in inconsistent state.Josh Matthews2018-12-141-0/+12
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Update uuidBastien Orivel2018-11-091-1/+1
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-2/+2
|
* Reorder importsPyfisch2018-11-061-8/+8
|
* Format remaining filesPyfisch2018-11-061-8/+9
|
* Sort `use` statementsSimon Sapin2018-11-061-2/+2
|
* `cargo fix --edition`Simon Sapin2018-11-061-51/+51
|
* Auto merge of #21931 - jdm:reload-images, r=emiliobors-servo2018-10-131-0/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make layout use available image data before querying the image cache. These changes make layout more efficient for any page which contains images that have already loaded, since it does not require synchronously querying the image cache thread for each image present. It also makes reloading a page actually display the images that are already in the image cache. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #21919 - [x] There are tests for these changes <!-- 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/21931) <!-- Reviewable:end -->
| * Make layout use available image data before querying the image cache.Josh Matthews2018-10-121-0/+10
| |
* | Auto merge of #21856 - zcorpan:zcorpan/remove-td-th-interfaces, r=jdmbors-servo2018-10-121-1/+1
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the HTMLTable{Header,Data}CellElement interfaces Fixes #17222. <!-- Please describe your changes on the following line: --> This removes the `HTMLTableHeaderCellElement` and `HTMLTableDataCellElement` interfaces and uses the `HTMLTableCellElement` interface for both `th` and `td` elements, as per the spec. --- <!-- 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 #17222. <!-- Either: --> - [X] 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/21856) <!-- Reviewable:end -->
| * Remove the HTMLTable{Header,Data}CellElement interfacesSimon Pieters2018-10-021-1/+1
| | | | | | | | Fixes #17222.
* | Rustfmt and make tidy happyFernando Jiménez Moreno2018-10-081-1/+1
| |
* | Revert import style formatFernando Jiménez Moreno2018-10-081-4/+2
| |
* | dom: add media_data() method to LayoutDom implementationVíctor Manuel Jáquez Leal2018-10-081-2/+14
|/
* Adding relevant mutations and new test resultspaavininanda2018-09-201-2/+8
|
* Format script componentchansuke2018-09-191-424/+576
|
* Current-pixel-density tests passingpaavininanda2018-09-131-0/+10
|
* remove misleading urltigercosmos2018-05-261-2/+0
|
* Implement MutationObserver.disconnect()Fabrice Desré2018-05-091-0/+7
|
* Implement element.innerText getterFernando Jiménez Moreno2018-02-131-0/+4
|
* Change debug assertions to specific onesjanczer2018-02-071-1/+1
|
* script: Move `style` as Element methodCYBAI2018-01-281-5/+0
|
* Add layout RPC query for getting an element's styleJon Leighton2018-01-281-0/+5
| | | | | | | | This enables us to implement Element::has_css_layout_box() in a more direct way, and also enables us to remove some of the existing more specific queries. Fixes #19811.
* Properly handle CR in textarea placeholders (fixes #19717)Anthony Ramine2018-01-101-1/+1
|
* style: Remove TNode::set_can_be_fragmented and TNode::can_be_fragmented.Emilio Cobos Álvarez2018-01-041-4/+1
| | | | | Replace them instead by a computed value flag, the same way as the IS_IN_DISPLAY_NONE_SUBTREE flag works.
* Use FetchCanceller for document loadsManish Goregaokar2017-11-221-1/+1
|
* script: Fix Servo relying on descendants being visited when there's a reframe.Emilio Cobos Álvarez2017-11-101-1/+14
|
* script: Call content_and_heritage_changed from children_changed instead of ↵Emilio Cobos Álvarez2017-11-101-5/+1
| | | | | | | | | add_child / remove_child. add_child / remove_child aren't called when a node character data changed. This is important for finer grained invalidation. The only test that tests this is now wallpapered, but won't be after #19164.
* Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-16/+16
|
* Auto merge of #18968 - mbrubeck:try, r=emiliobors-servo2017-10-211-21/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | 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-21/+5
| |
* | Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-191-16/+16
|/ | | | | | failures, e.g. in layout/reftests/bugs/392435-1.html. r=backout on a CLOSED TREE Backs out https://github.com/servo/servo/pull/18809
* Update bitflags to 1.0 in every servo crateBastien Orivel2017-10-191-16/+16
| | | | | It still needs dependencies update to remove all the other bitflags versions.
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-4/+4
| | | | | | | | 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.