aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/dom_wrapper.rs
Commit message (Collapse)AuthorAgeFilesLines
* Moar detach shadow improvementsFernando Jiménez Moreno2019-07-221-3/+1
|
* Detach shadow clean upFernando Jiménez Moreno2019-07-221-1/+3
|
* Only allow UA widgets as children of media elementsFernando Jiménez Moreno2019-07-221-0/+4
| | | | Do not allow pseudo-elements for replaced elements
* Fix style system build with recent changes.Emilio Cobos Álvarez2019-06-251-0/+4
|
* style: Do not use borrowed types in the selectors::Element trait.Evgeniy Reizner2019-06-041-12/+34
| | | | | Closes #22972 Closes #23463
* script: Fix Servo build.Emilio Cobos Álvarez2019-05-291-0/+8
|
* layout: fix Servo build.Emilio Cobos Álvarez2019-05-071-0/+11
|
* Final nits; fix custom elements rare data usage; s/owner_s_r/containing_s_rFernando Jiménez Moreno2019-04-291-1/+1
| | | | | Clarify special case for containing_shadow_root and add it to layout accessor
* Set dirty descendants if node is connectedFernando Jiménez Moreno2019-04-261-1/+1
|
* Move is_connected function from style to layout, where it is usedFernando Jiménez Moreno2019-04-261-4/+4
|
* Minor tweaks: rename composed_parent_node_ref, remove or update outdated ↵Fernando Jiménez Moreno2019-04-261-8/+11
| | | | comments...
* Tweak list of shadow roots attached to docFernando Jiménez Moreno2019-04-261-1/+4
|
* Make ServoShadowRoot.flush_stylesheets unsafeFernando Jiménez Moreno2019-04-261-5/+3
|
* Flush shadow roots stylesheets only if they changedFernando Jiménez Moreno2019-04-261-0/+17
|
* Minor layout thread cleanups:Fernando Jiménez Moreno2019-04-261-12/+8
| | | | | | | - lifetime naming - unrequired reference removal - containing_shadow_host getter simplification - use stylist.device getter where possible
* Derive PartialEq for ServoShadowRootFernando Jiménez Moreno2019-04-261-8/+1
|
* Do not set dirty out-of-doc nodesFernando Jiménez Moreno2019-04-261-1/+5
|
* Invalidate and flush shadow tree stylesheets where neededFernando Jiménez Moreno2019-04-261-2/+18
|
* Expose a way to flush shadow root stylesheets from layoutFernando Jiménez Moreno2019-04-261-1/+11
|
* Implement TShadowRoot::style_dataFernando Jiménez Moreno2019-04-261-1/+6
|
* Adapt traversals for shadow domFernando Jiménez Moreno2019-04-261-2/+17
|
* First bits of shadow dom layoutFernando Jiménez Moreno2019-04-261-21/+69
|
* Add is_connected flag to node and use it to replace most uses of is_in_docFernando Jiménez Moreno2019-04-261-3/+3
|
* Remove :-servo-case-sensitive-type-attr()Ian Moody2019-04-181-3/+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
* Implement CDATASection interface and createCDATASection methodGeorge Roman2019-03-141-3/+6
|
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-16/+24
|
* Format remaining filesPyfisch2018-11-061-6/+2
|
* Make layout use available image data before querying the image cache.Josh Matthews2018-10-121-0/+7
|
* Revert import style formatFernando Jiménez Moreno2018-10-081-4/+2
|
* layout: add media_data() to ServoThreadSafeLayoutNode implementationVíctor Manuel Jáquez Leal2018-10-081-2/+9
|
* Fix Servo build.Emilio Cobos Álvarez2018-09-181-2/+6
|
* Current-pixel-density tests passingpaavininanda2018-09-131-0/+5
|
* Auto merge of #21613 - pyfisch:layout_thread-fmt, r=Manishearthbors-servo2018-09-051-157/+211
|\ | | | | | | | | | | | | | | | | | | | | Rustfmt layout_thread crate Part of #21373. Checked all changes looks good. :tada: Manually removed two optional semicolons within unsafe so that it is formatted in one line. <!-- 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/21613) <!-- Reviewable:end -->
| * Rustfmt layout_thread cratePyfisch2018-09-051-157/+211
| |
* | Fix other parts of the Servo build.Emilio Cobos Álvarez2018-09-031-3/+3
|/
* Fix Servo build.Emilio Cobos Álvarez2018-08-081-19/+0
|
* layout: script: Fix build.Emilio Cobos Álvarez2018-06-231-1/+1
|
* style: Fix build after 1bc30a67320ce90f2e07988925a340b457f1a43a.Emilio Cobos Álvarez2018-04-171-0/+8
|
* style: Add infrastructure to match :host.Emilio Cobos Álvarez2018-03-141-0/+16
|
* style: Allow to share style across elements with similar XBL bindings.Emilio Cobos Álvarez2018-03-121-2/+2
|
* style: Separate the XBL and shadow dom styling bits.Emilio Cobos Álvarez2018-03-071-0/+8
| | | | | | Bug: 1441022 Reviewed-by: xidorn MozReview-Commit-ID: 2W0BmZ8wWXg
* style: Add also a containing_shadow API.Emilio Cobos Álvarez2018-03-031-0/+4
|
* style: Add bindings for ShadowRoot.Emilio Cobos Álvarez2018-03-031-6/+33
| | | | | | | This adds TShadowRoot to the `dom` module. Right now it barely adds uses of it, but this is a prerequisite to fix a bunch of Shadow DOM bugs and separate it from the XBL mess.
* style: Make Element::id not clone the attribute.Emilio Cobos Álvarez2018-02-241-3/+3
|
* style: Remove get_ prefix from get_state and get_id.Emilio Cobos Álvarez2018-02-241-2/+2
|
* selectors: Remove the get_ prefix from get_local_name and get_namespace.Emilio Cobos Álvarez2018-02-241-11/+11
|
* selectors: Never match ::slotted on <slot>s.Emilio Cobos Álvarez2018-01-271-0/+11
| | | | | This fixes the test from https://github.com/w3c/web-platform-tests/pull/9212 in Gecko.
* style: Use CascadeFlags for what they're for.Emilio Cobos Álvarez2018-01-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we have an Element around on cascade, we can stop using the cascade flags mechanism to pass various element-related state, like "is this element the root", or "should it use the item-based display fixup". That fixes handwaviness in the handling of those flags from style reparenting, and code duplication to handle tricky stuff like :visited. There are a number of other changes that are worth noticing: * skip_root_and_item_based_display_fixup is renamed to skip_item_display_fixup: TElement::is_root() already implies being the document element, which by definition is not native anonymous and not a pseudo-element. Thus, you never get fixed-up if your NAC or a pseudo, which is what the code tried to avoid, so the only fixup with a point is the item one, which is necessary. * The pseudo-element probing code was refactored to return early a Option::<CascadeInputs>::None, which is nicer than what it was doing. * The visited_links_enabled check has moved to selector-matching time. The rest of the checks aren't based on whether the element is a link, or are properly guarded by parent_style.visited_style().is_some() or visited_rules.is_some(). Thus you can transitively infer that no element will end up with a :visited style, not even from style reparenting. Anyway, the underlying reason why I want the element in StyleAdjuster is because we're going to implement an adjustment in there depending on the tag of the element (converting display: contents to display: none depending on the tag), so computing that information eagerly, including a hash lookup, wouldn't be nice.
* style: Derive debug for CascadeInputs.Emilio Cobos Álvarez2018-01-231-0/+2
| | | | It no longer has anything than rules.