aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-102/+102
| | | | | | | 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-2/+2
| | | | | | | | 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 LayoutJS<T> to LayoutDom<T>Anthony Ramine2017-09-261-14/+14
|
* Rename MutNullableJS<T> to MutNullableDom<T>Anthony Ramine2017-09-261-9/+9
|
* Rename JS<T> to Dom<T>Anthony Ramine2017-09-261-8/+8
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-3/+1
|
* Auto merge of #18514 - asajeffrey:layout-dont-panic-if-no-iframe-bc, r=emiliobors-servo2017-09-221-6/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove sources of panic when laying out an iframe without a nested browsing context <!-- Please describe your changes on the following line: --> At the moment, layout panics if it discovers an iframe without a nested browsing context. Under normal circumstances, this is reasonable, but it requires very tight synchronization between script, layout, the constellation and the compositor. In particular, if a layout is in progress when an iframe's browsing context is discarded, this can trigger panic. This PR fixes this in two ways: 1. Making the pipeline and browsing context ids optional in layout's representation of an iframe. 2. Shutting down layout before discarding a browsing context, rather than after. This is belt and braces. --- <!-- 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 #17482 and #18477 - [X] These changes do not require tests because the PR is fixing a panic caused by a race condition <!-- 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/18514) <!-- Reviewable:end -->
| * Remove sources of panic when laying out an iframe without a nested browsing ↵Alan Jeffrey2017-09-221-6/+6
| | | | | | | | context.
* | Introduce an NthIndexCache type and pipe it from ThreadLocalStyleContext to ↵Bobby Holley2017-09-201-2/+5
|/ | | | | | MatchingContext. Some future refactoring here to pass fewer things as parameters would be nice.
* style: Remove NODE_NEEDS_DIRTY_ON_VIEWPORT_SIZE_CHANGE.Emilio Cobos Álvarez2017-08-281-2/+1
| | | | Recascading is enough.
* order derivable traits listsClément DAVID2017-08-231-4/+4
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* script: Add a function to check whether a node is before another one in DOM ↵Emilio Cobos Álvarez2017-08-171-0/+11
| | | | | | order. Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* script: Optimize CompareDocumentPosition.Emilio Cobos Álvarez2017-08-171-37/+53
| | | | Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* script: Early return in CompareDocumentPosition to deindent most of the ↵Emilio Cobos Álvarez2017-08-171-41/+41
| | | | | | function. Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* Handle exceptions during upgradesConnor Brewster2017-08-091-3/+3
|
* Enqueue upgradesConnor Brewster2017-08-091-4/+5
|
* Replace all uses of the style::stylearc alias with servo_arc.Michael Partheil2017-07-191-1/+1
| | | | | | 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).
* Fix adopted and connected callback reactionsConnor Brewster2017-07-181-9/+16
|
* Auto merge of #17614 - cbrewster:custom_element_reactions, r=jdmbors-servo2017-07-171-2/+27
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement custom element reactions <!-- Please describe your changes on the following line: --> Initial work for implementing custom element reactions: https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-reactions --- <!-- 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 #17433 (github issue number if applicable). <!-- 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/17614) <!-- Reviewable:end -->
| * Support custom element callback reactionsConnor Brewster2017-07-171-2/+27
| |
* | Have CharacterData call children_changed on its parent when data is set.Jonathan Chan2017-07-131-0/+10
|/ | | | | | | | | | | Have CharacterData.SetData call children_changed on its parent when data is set (if it is a Text node) so that HTMLStyleElement parents can re-parse. Add variant ChildrenMutation::Text for it to use as the mutation. This fixes an issue where an empty <style> element's data is set but the style is not updated. An HTMLStyleElement parent re-parses in its children_changed implementation.
* Auto merge of #17515 - frewsxcv:frewsxcv-simple-node-iterator, r=KiChjangbors-servo2017-06-251-80/+40
|\ | | | | | | | | | | | | | | 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-80/+40
| |
* | Allow element prefix to be setConnor Brewster2017-06-231-2/+2
| | | | | | | | | | Implements step 6.1.10 of https://dom.spec.whatwg.org/#concept-create-element
* | Add flag for sync/async CE creationConnor Brewster2017-06-231-3/+6
| |
* | Support `is` option when creating elementsConnor Brewster2017-06-231-1/+1
| |
* | Hook CE registry into element creationConnor Brewster2017-06-231-0/+5
|/
* Untry scriptSimon Sapin2017-06-181-13/+13
|
* Bump euclid to 0.14.Nicolas Silva2017-06-141-4/+2
|
* stylo: Support :hover and :active quirkNazım Can Altınova2017-06-101-5/+6
|
* Thread ParseError return values through CSS parsing.Josh Matthews2017-06-091-2/+2
|
* Move the ancestor hashes out of Selector.Bobby Holley2017-06-051-2/+2
| | | | MozReview-Commit-ID: 5mipXnjgSED
* Added a TopLevelBrowsingContextId type.Alan Jeffrey2017-05-221-1/+1
|
* Implement MutationObserver childList mutations.Imanol Fernandez2017-05-191-5/+49
|
* Auto merge of #16900 - emilio:pseudos, r=bholleybors-servo2017-05-171-3/+7
|\ | | | | | | | | | | | | | | | | | | | | Bug 1364850: Move PseudoElement to be just another combinator in selectors. r=bholley On top of https://github.com/servo/servo/pull/16890. <!-- 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/16900) <!-- Reviewable:end -->
| * Bug 1364850: Move PseudoElement to be just another combinator in selectors. ↵Emilio Cobos Álvarez2017-05-171-3/+7
| | | | | | | | | | | | | | r=bholley MozReview-Commit-ID: 8OoOIodkKJ5 Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* | Auto merge of #16883 - jdm:mutationobserver, r=jdmbors-servo2017-05-171-1/+13
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Mutation Observer API Rebased from #16668. - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix (partially) #6633 - [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/16883) <!-- Reviewable:end -->
| * Mutation Observer APISumit2017-05-151-1/+13
| |
* | Renamed constellation::Frame to constellation::BrowsingContext.Alan Jeffrey2017-05-151-4/+4
|/
* Make methods storing layout-originating nodes unsafe.Josh Matthews2017-05-151-10/+8
|
* Make non-initial about:blank loads asynchronousConnor Brewster2017-05-121-1/+8
| | | | | | | | | | | | | | | Don't update iframe pipeline until load completes To preserve the previous functionality of delaying load events when a new navigation is triggered, pending pipeline id represents the current pending load. The load event is only fired if the load message's pipeline id matches the pending pipeline id. Track frame size on Frame instead of Pipeline Disabled matchMedia test Track creator pipeline id
* Bug 1355343: Take all the snapshots into account. r=bholleyEmilio Cobos Álvarez2017-05-101-9/+22
| | | | | | | | | | | | | | | | | I've chosen this approach mainly because there's no other good way to guarantee the model is correct than holding the snapshots alive until a style refresh. What I tried before this (storing them in a sort of "immutable element data") is a pain, since we call into style from the frame constructor and other content notifications, which makes keeping track of which snapshots should be cleared an which shouldn't an insane task. Ideally we'd have a single entry-point for style, but that's not the case right now, and changing that requires pretty non-trivial changes to the frame constructor. MozReview-Commit-ID: FF1KWZv2iBM Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
* Auto merge of #16689 - servo:m5e, r=noxbors-servo2017-05-031-2/+2
|\ | | | | | | | | | | | | | | Upgrade to html5ever 0.16 <!-- 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/16689) <!-- Reviewable:end -->
| * Upgrade to html5ever 0.16Simon Sapin2017-05-021-2/+2
| |
* | Fix up script and layout.Bobby Holley2017-05-021-1/+1
|/
* Auto merge of #16495 - coalman:tidy-brace-alignment, r=emiliobors-servo2017-04-191-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make tidy check that opening and closing braces that begin a line do … …so with proper alignment. --- <!-- 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 #16486 (github issue number if applicable). <!-- 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/16495) <!-- Reviewable:end -->
| * Fix indentation errors in servo rust code that tidy now finds.coalman2017-04-181-1/+1
| |
* | Introduce SelectorInner and use it for top-level matching.Bobby Holley2017-04-181-3/+3
|/ | | | MozReview-Commit-ID: DxG6USsPIkh
* Implement the form owner conceptMukilan Thiyagarajan2017-03-151-1/+48
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|