aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/node.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add ImmutableOrigin to allow for serializing originsConnor Brewster2017-02-221-1/+1
|
* Bug 1336646 - Apply selector flags during traversal. r=emilioBobby Holley2017-02-081-3/+3
|
* Allow windows to share browsing contexts.Alan Jeffrey2017-01-281-2/+2
|
* The constellation notifies the script thread about documents becoming ↵Alan Jeffrey2017-01-271-1/+3
| | | | inactive, active and fully active.
* script: Rename bounding_content_box to bounding_content_box_or_zero.Emilio Cobos Álvarez2017-01-181-2/+5
| | | | And make bounding_content_box preserve whether the element is rendered.
* layout: Expose whether the element was rendered in content_box_query to script.Emilio Cobos Álvarez2017-01-171-1/+5
| | | | But don't change the API yet.
* Auto merge of #14647 - servo:current-global, r=jdmbors-servo2016-12-291-0/+2
|\ | | | | | | | | | | | | | | Support the 'current' global object. <!-- 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/14647) <!-- Reviewable:end -->
| * Pass the Document's origin to its constructor.Ms2ger2016-12-231-0/+2
| | | | | | | | CC #10963.
* | script: Simplify Node::collect_text_contents.Emilio Cobos Álvarez2016-12-251-3/+2
|/
* script: Remove unused function.Emilio Cobos Álvarez2016-12-221-4/+0
|
* Expose Quirks Mode information in the style shared context r=emilioJulien Wajsberg2016-12-171-1/+1
|
* Auto merge of #14549 - frewsxcv:child-text-content, r=Ms2gerbors-servo2016-12-151-0/+5
|\ | | | | | | | | | | | | | | Implement "child text content" concept; use it where appropriate. <!-- 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/14549) <!-- Reviewable:end -->
| * Implement "child text content" concept; use it where appropriate.Corey Farwell2016-12-151-0/+5
| |
* | Remove HeapGCValueAnthony Ramine2016-12-121-9/+9
|/ | | | | | 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.
* Rename `Reflectable` to `DomObject`.Corey Farwell2016-12-081-5/+5
| | | | Fixes https://github.com/servo/servo/issues/8473.
* Mark JSTraceable and its method as unsafeAnthony Ramine2016-12-061-1/+1
|
* Refactor the locate a namespace algorithmAnthony Ramine2016-12-011-60/+10
|