Fernando Jiménez Moreno
3dd38151d4
Make StyleSheetListOwner implement JSTraceable
2019-04-26 11:31:17 +02:00
Fernando Jiménez Moreno
3ccd622c9b
Introduce ShadowIncluding enum for tree traversals
2019-04-26 11:31:17 +02:00
Fernando Jiménez Moreno
2674a3e717
Flush shadow roots stylesheets only if they changed
2019-04-26 11:31:17 +02:00
Fernando Jiménez Moreno
a841c713d6
Minor layout thread cleanups:
...
- lifetime naming
- unrequired reference removal
- containing_shadow_host getter simplification
- use stylist.device getter where possible
2019-04-26 11:31:17 +02:00
Fernando Jiménez Moreno
00178aff4d
Derive PartialEq for ServoShadowRoot
2019-04-26 11:31:17 +02:00
Fernando Jiménez Moreno
57fa6b1c51
Update expectations for cssom tests
2019-04-26 11:31:17 +02:00
Fernando Jiménez Moreno
39c96acbbe
Remove IS_CONNECTED flag when node is removed from the doc
2019-04-26 11:31:17 +02:00
Fernando Jiménez Moreno
d7b6a6f509
Do not set dirty out-of-doc nodes
2019-04-26 11:31:16 +02:00
Fernando Jiménez Moreno
e66438de48
Fix the way the IS_CONNECTED flag is set
2019-04-26 11:31:16 +02:00
Fernando Jiménez Moreno
0d2f65baea
Shadow DOM layout and style reftest
2019-04-26 11:31:16 +02:00
Fernando Jiménez Moreno
2515966db6
Fix formatting issues
2019-04-26 11:31:16 +02:00
Fernando Jiménez Moreno
067acdfd27
Update size of tests with shadow root size
2019-04-26 11:31:16 +02:00
Fernando Jiménez Moreno
f097233707
Update test expectations and whitelist ShadowRoot interface
2019-04-26 10:17:48 +02:00
Fernando Jiménez Moreno
efce2825b9
Return composed parent node. Fixes style sharing panics
2019-04-26 10:17:48 +02:00
Fernando Jiménez Moreno
07e2f41c34
Retarget result of shadowRoot.element(s)FromPoint
2019-04-26 10:17:48 +02:00
Fernando Jiménez Moreno
8641866a50
Fix Document.Element(s)FromPoint
2019-04-26 10:17:47 +02:00
Fernando Jiménez Moreno
47872cdaa3
Do not add shadow tree styles to stylist
2019-04-26 10:17:47 +02:00
Fernando Jiménez Moreno
519cc2c317
Invalidate and flush shadow tree stylesheets where needed
2019-04-26 10:17:47 +02:00
Fernando Jiménez Moreno
18c1b8f690
Register/unregister shadow roots in documents when they are connected
2019-04-26 10:17:47 +02:00
Fernando Jiménez Moreno
cd07574235
Expose a way to flush shadow root stylesheets from layout
2019-04-26 10:17:47 +02:00
Fernando Jiménez Moreno
e9f0e76d3c
Implement TShadowRoot::style_data
2019-04-26 10:17:47 +02:00
Fernando Jiménez Moreno
23b92d54d4
Remove stylesheets ownership from DocumentOrShadowRoot
2019-04-26 10:17:47 +02:00
Fernando Jiménez Moreno
3bb50cc479
ShadowRoot stylesheet list
2019-04-26 10:17:47 +02:00
Fernando Jiménez Moreno
0d6bd24245
Move stylesheets related code to DocumentOrShadowRoot
2019-04-26 10:17:47 +02:00
Fernando Jiménez Moreno
d2e1a3ab33
Adapt traversals for shadow dom
2019-04-26 10:17:46 +02:00
Fernando Jiménez Moreno
7c9e8aa4cc
First bits of shadow dom layout
2019-04-26 10:17:46 +02:00
Fernando Jiménez Moreno
be06f1e9b3
Always get browsing context from document
2019-04-26 10:17:46 +02:00
Fernando Jiménez Moreno
2e5c058463
Implement concept of shadow including tree order
2019-04-26 10:17:46 +02:00
Fernando Jiménez Moreno
f6ba165882
Throw when trying to import or adopt a shadow root
2019-04-26 10:17:46 +02:00
Fernando Jiménez Moreno
6a85409ffe
Throw NotSupported when trying to deep clone a shadow root
2019-04-26 10:17:46 +02:00
Fernando Jiménez Moreno
d6ddb08e23
Do not care about shadow roots when getting root element
2019-04-26 10:17:46 +02:00
Fernando Jiménez Moreno
c48ad0ff7e
Introduce concept of composed parent node
2019-04-26 10:17:46 +02:00
Fernando Jiménez Moreno
1b036355ce
Bind/unbind shadow host children to/from tree
2019-04-26 10:17:45 +02:00
Fernando Jiménez Moreno
df81debffc
Set connected flag not only on elements
2019-04-26 10:17:45 +02:00
Fernando Jiménez Moreno
4740ce53a0
Make note_dirty_descendants jump around shadow roots
2019-04-26 10:17:45 +02:00
Fernando Jiménez Moreno
ea69bbc75b
Node retargeting algorithm
2019-04-26 10:17:45 +02:00
Fernando Jiménez Moreno
441357b74e
Add is_connected flag to node and use it to replace most uses of is_in_doc
2019-04-26 10:17:45 +02:00
Fernando Jiménez Moreno
640fc04743
Implement shadow-including root, set node as in doc when connected. Makes JS work in shadow trees
2019-04-26 10:17:45 +02:00
Fernando Jiménez Moreno
48975840dd
Unify DocumentOrShadowRoot implementation
2019-04-26 10:17:45 +02:00
Fernando Jiménez Moreno
f3e707306f
Test DOM isolation for shadow trees
2019-04-26 10:17:45 +02:00
Fernando Jiménez Moreno
ffdc9d255f
Expose Element.AttachShadow under dom.shadowdom.enabled pref
2019-04-26 10:17:44 +02:00
Fernando Jiménez Moreno
091fcbecd1
Node shadow root owner
2019-04-26 10:17:44 +02:00
Fernando Jiménez Moreno
9022bd3d11
IS_IN_SHADOW_TREE flag
2019-04-26 10:17:44 +02:00
Fernando Jiménez Moreno
569b4fce10
Element attachShadow implementation
2019-04-26 10:17:44 +02:00
Fernando Jiménez Moreno
4304ee28dc
Partial ShadowRoot implementation of DocumentOrShadowRoot
2019-04-26 10:17:44 +02:00
Fernando Jiménez Moreno
18ae0fcbd6
ShadowRoot interface
2019-04-26 10:17:44 +02:00
Fernando Jiménez Moreno
cbcf21c248
DocumentOrShadowRoot mixin
2019-04-26 10:17:44 +02:00
bors-servo
9b20187793
Auto merge of #23273 - servo-wpt-sync:wpt_update_26-04-2019, r=servo-wpt-sync
...
Sync WPT with upstream (26-04-2019)
Automated downstream sync of changes from upstream as of 26-04-2019.
[no-wpt-sync]
2019-04-26 01:35:36 -04:00
WPT Sync Bot
efca990ffe
Update web-platform-tests to revision d3cf77a7b8c20c678b725238eaa8a72eca3787ae
2019-04-26 01:35:21 -04:00
bors-servo
b73956cc37
Auto merge of #23090 - miller-time:nav-fetch-referrer, r=gterzian
...
Add referrer to navigation fetch request
<!-- Please describe your changes on the following line: -->
Implement step 13 of [following hyperlinks](https://html.spec.whatwg.org/#following-hyperlinks-2 ) and step 14.3 of [window open](https://html.spec.whatwg.org/#window-open-steps ), as well as other referrer- and fetch-related updates.
---
<!-- 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 #22890 (GitHub issue number if applicable)
<!-- Either: -->
- [ ] 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/23090 )
<!-- Reviewable:end -->
2019-04-25 20:21:23 -04:00