aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/element.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement concept of shadow including tree orderFernando Jiménez Moreno2019-04-261-1/+1
|
* Do not care about shadow roots when getting root elementFernando Jiménez Moreno2019-04-261-8/+1
|
* Bind/unbind shadow host children to/from treeFernando Jiménez Moreno2019-04-261-0/+20
|
* Add is_connected flag to node and use it to replace most uses of is_in_docFernando Jiménez Moreno2019-04-261-6/+13
|
* Implement shadow-including root, set node as in doc when connected. Makes JS ↵Fernando Jiménez Moreno2019-04-261-5/+4
| | | | work in shadow trees
* Expose Element.AttachShadow under dom.shadowdom.enabled prefFernando Jiménez Moreno2019-04-261-0/+7
|
* IS_IN_SHADOW_TREE flagFernando Jiménez Moreno2019-04-261-0/+3
|
* Element attachShadow implementationFernando Jiménez Moreno2019-04-261-0/+53
|
* ShadowRoot interfaceFernando Jiménez Moreno2019-04-261-1/+1
|
* Remove :-servo-case-sensitive-type-attr()Ian Moody2019-04-181-4/+0
| | | | | | | | No longer needed now that the case-sensitive flag for attributes selectors is supported. Update user-agent CSS sheet to use the standard flag. Fixes #23227
* style: Fix servo build, and appease tidy / fmt.Emilio Cobos Álvarez2019-04-121-0/+1
|
* Remove most RootedReference usesAnthony Ramine2019-03-101-12/+12
| | | | We can replace all uses of RootedReference for Option<T> by Option::deref calls.
* ReformatSimon Sapin2019-02-261-7/+8
|
* style: Rename MozLength to Size, and MaxLength to MaxSize.Emilio Cobos Álvarez2019-02-121-35/+25
| | | | | | | | | | | | | MozLength is not a very descriptive name. If we're going to use it in both Gecko and Servo we may as well name it something more accurate. I would've chosen `ContentSize` per CSS2[1][2] if it wasn't a lie in presence of box-sizing. I don't have better ideas than `Size`, given that. [1]: https://drafts.csswg.org/css2/visudet.html#propdef-width [2]: https://drafts.csswg.org/css2/box.html#content-width Differential Revision: https://phabricator.services.mozilla.com/D19280
* Fix servo build.Emilio Cobos Álvarez2019-02-101-25/+35
|
* Implement cannot navigateCYBAI2019-01-231-0/+12
|
* Parse url in getter methodShanavas M2019-01-141-6/+6
|
* Set url attributeShanavas M2019-01-141-5/+10
|
* Rustfmt recent changes.Emilio Cobos Álvarez2019-01-081-25/+15
|
* style: Fix servo build.Emilio Cobos Álvarez2019-01-081-14/+14
|
* style: Fix servo build.Emilio Cobos Álvarez2019-01-081-13/+31
| | | | | | This also fixes a bunch of calc handling issues and such. Also remove tests that no longer compile and are covered by WPT.
* Fix Servo build.Emilio Cobos Álvarez2019-01-071-2/+4
|
* Remove now-unnecessary must_root and allow(unrooted_must_root) annotationsManish Goregaokar2019-01-041-1/+0
|
* Serialize the children of void html elements as empty stringsGeorge Roman2019-01-031-1/+0
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-14/+11
|
* Update src/href attributes to be a USVStringDan Robertson2018-12-171-8/+7
| | | | | | | | | | | | 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
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-16/+16
|
* Reorder importsPyfisch2018-11-061-16/+26
|
* Format remaining filesPyfisch2018-11-061-7/+9
|
* Sort `use` statementsSimon Sapin2018-11-061-4/+4
|
* `cargo fix --edition`Simon Sapin2018-11-061-74/+74
|
* Format script componentchansuke2018-09-191-550/+738
|
* Fix Servo build.Emilio Cobos Álvarez2018-09-181-1/+4
|
* Fix Servo build.Emilio Cobos Álvarez2018-08-081-8/+0
|
* Implement support for Element.toggleAttributeJonathan Kingston2018-06-211-0/+37
|
* MutationObserver api: Implement takeRecords() and characterData mutationsFabrice Desré2018-05-021-3/+3
|
* Notify the embedder when it should display or hide an IMEFabrice Desré2018-04-211-0/+17
|
* style: Add infrastructure to match :host.Emilio Cobos Álvarez2018-03-141-0/+8
|
* style: Tidy a couple things.Emilio Cobos Álvarez2018-03-141-1/+0
|
* Auto merge of #20012 - ↵bors-servo2018-02-271-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | alexfjw:avoid_Window-GetComputedStyle_when_checking_for_display-none, r=emilio Avoid `Window::GetComputedStyle` when checking for `display: none` <!-- Please describe your changes on the following line: --> Refactored Window::GetComputedStyle to use Element::Style. Not sure which tests are relevant, but I've ran the dom, fetch & 2dcontext wpt tests. They don't seem to give errors. --- <!-- 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 #19885. <!-- Either: --> - [x] These changes do not require tests because it's a refactoring task <!-- 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/20012) <!-- Reviewable:end -->
| * Avoid `Window::GetComputedStyle` when checking for `display: none`Alex Fong2018-02-261-2/+2
| |
* | selectors: Remove the get_ prefix from get_local_name and get_namespace.Emilio Cobos Álvarez2018-02-241-4/+4
| |
* | Implement element.innerText getterFernando Jiménez Moreno2018-02-131-1/+1
|/
* Auto merge of #19878 - emilio:slotted-slot, r=noxbors-servo2018-01-291-1/+9
|\ | | | | | | | | | | | | | | | | | | | | | | selectors: Never match ::slotted on <slot>s. This fixes the test from https://github.com/w3c/web-platform-tests/pull/9212 in Gecko. <!-- 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/19878) <!-- Reviewable:end -->
| * selectors: Never match ::slotted on <slot>s.Emilio Cobos Álvarez2018-01-271-1/+9
| | | | | | | | | | This fixes the test from https://github.com/w3c/web-platform-tests/pull/9212 in Gecko.
* | script: Move `style` as Element methodCYBAI2018-01-281-12/+14
| |
* | Add layout RPC query for getting an element's styleJon Leighton2018-01-281-32/+30
|/ | | | | | | | 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.
* Auto merge of #19803 - jonleighton:issue-19765, r=emiliobors-servo2018-01-191-4/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement Element::has_css_layout_box() r? emilio Here's my initial attempt to fix #19430. It seems surprisingly simple so I am wondering whether I have missed something! (Or maybe it just actually is quite simple...) Some things I am unsure about: 1. The spec seems vague about what a [CSS layout box](https://drafts.csswg.org/cssom-view/#css-layout-box) actually is. Indeed it says: "The terms CSS layout box and SVG layout box are not currently defined by CSS or SVG." 2. One thing the spec *does* say explicitly is "For the purpose of the requirements in this specification, elements that have a computed value of the display property that is table-column or table-column-group must be considered to have an associated CSS layout box (the column or column group, respectively)." I am unclear about the relevance of this, since [overflow does not apply](https://drafts.csswg.org/css-overflow-3/#overflow-properties) to an [internal table element](https://drafts.csswg.org/css-display-3/#layout-specific-display). Therefore I haven't done anything about this explicitly, but maybe I'm missing some nuance. <!-- 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/19803) <!-- Reviewable:end -->
| * Implement Element::has_css_layout_box()Jon Leighton2018-01-181-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Calling scroll() on an element which is not rendered (by a parent with display: none) would previously cause a crash. In fact, we should terminate the algorithm [https://drafts.csswg.org/cssom-view/#dom-element-scroll] at step 10 in this situation. The fix hinges on implementing Element::has_css_layout_box() correctly, rather than just returning true in all cases as we did previously. Fixes #19430.