Fernando Jiménez Moreno
6bf1ca20a2
Make Node and Element rare_data an Option
2019-04-26 12:00:25 +02:00
Fernando Jiménez Moreno
8eba587547
Merge Node::shadow_including_inclusive_ancestors into inclusive_ancestors
2019-04-26 11:42:38 +02:00
Fernando Jiménez Moreno
bdd2f32c0f
Minor tweaks: rename composed_parent_node_ref, remove or update outdated comments...
2019-04-26 11:42:37 +02:00
Fernando Jiménez Moreno
0313e38074
Tweak list of shadow roots attached to doc
2019-04-26 11:42:37 +02:00
Fernando Jiménez Moreno
b8925a0297
Set IS_CONNECTED flag on host and children instead of on containing shadow root
2019-04-26 11:42:37 +02:00
Fernando Jiménez Moreno
c75da615bd
Add custom elements related stuff into ElementRareData
2019-04-26 11:31:19 +02:00
Fernando Jiménez Moreno
6af4729f42
Introduce NodeRareData and ElementRareData
2019-04-26 11:31:19 +02:00
Fernando Jiménez Moreno
813b242419
Introduce BindContext with in_doc and connected flags
...
Fix some is_in_doc -> is_connected mistakes
2019-04-26 11:31:18 +02:00
Fernando Jiménez Moreno
740aae06ba
Register named elements in either the document or shadow tree
2019-04-26 11:31:18 +02:00
Fernando Jiménez Moreno
67c90a0717
Relax attachShadow restrictions for user agent widgets
2019-04-26 11:31:17 +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
18c1b8f690
Register/unregister shadow roots in documents when they are connected
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
7c9e8aa4cc
First bits of shadow dom layout
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
d6ddb08e23
Do not care about shadow roots when getting root element
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
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
ffdc9d255f
Expose Element.AttachShadow under dom.shadowdom.enabled pref
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
18ae0fcbd6
ShadowRoot interface
2019-04-26 10:17:44 +02:00
Ian Moody
8d7fe68ac3
Remove :-servo-case-sensitive-type-attr()
...
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
2019-04-18 13:46:59 +01:00
Emilio Cobos Álvarez
49842f5031
style: Fix servo build, and appease tidy / fmt.
2019-04-12 12:20:15 +02:00
Anthony Ramine
5fe5e5d6de
Remove most RootedReference uses
...
We can replace all uses of RootedReference for Option<T> by Option::deref calls.
2019-03-10 17:51:35 +01:00
Simon Sapin
4464354e2e
Reformat
2019-02-26 08:18:33 +01:00
Emilio Cobos Álvarez
c2819365f0
style: Rename MozLength to Size, and MaxLength to MaxSize.
...
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
2019-02-12 02:28:00 +01:00
Emilio Cobos Álvarez
6daebcc5df
Fix servo build.
2019-02-10 07:23:51 +01:00
CYBAI
cb86d451e6
Implement cannot navigate
2019-01-23 00:38:45 +08:00
Shanavas M
02d28e02e3
Parse url in getter method
2019-01-14 18:51:52 +05:30
Shanavas M
37aa21d8db
Set url attribute
2019-01-14 14:59:39 +05:30
Emilio Cobos Álvarez
2a6cdaa30a
Rustfmt recent changes.
2019-01-08 12:01:28 +01:00
Emilio Cobos Álvarez
c7f30ad0df
style: Fix servo build.
2019-01-08 12:01:11 +01:00
Emilio Cobos Álvarez
4a31509215
style: Fix servo build.
...
This also fixes a bunch of calc handling issues and such.
Also remove tests that no longer compile and are covered by WPT.
2019-01-08 12:00:42 +01:00
Emilio Cobos Álvarez
97bd8fc280
Fix Servo build.
2019-01-07 00:59:30 +01:00
Manish Goregaokar
611dc4bc70
Remove now-unnecessary must_root and allow(unrooted_must_root) annotations
2019-01-04 15:05:07 -08:00
George Roman
a2d5d4f3da
Serialize the children of void html elements as empty strings
2019-01-03 07:49:13 +02:00
Simon Sapin
be69f9c3e6
Rustfmt has changed its default style :/
2018-12-28 13:17:47 +01:00
Dan Robertson
c46508e497
Update src/href attributes to be a USVString
...
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
2018-12-17 15:28:42 +00:00
Jan Andre Ikenmeyer
a1a14459c1
Update MPL license to https (part 3)
2018-11-19 14:47:12 +01:00
Simon Sapin
2012be4a8b
cargo fix --edition-idioms
2018-11-08 09:28:00 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Pyfisch
cb07debcb6
Format remaining files
2018-11-06 22:30:31 +01:00
Simon Sapin
76e59a46d3
Sort use
statements
2018-11-06 15:26:02 +01:00
Simon Sapin
45f7199eee
cargo fix --edition
2018-11-06 15:26:02 +01:00
chansuke
c37a345dc9
Format script component
2018-09-19 17:40:47 -04:00
Emilio Cobos Álvarez
60e28c61e5
Fix Servo build.
2018-09-18 11:52:39 +02:00
Emilio Cobos Álvarez
689293e4fb
Fix Servo build.
2018-08-08 01:34:35 +02:00
Jonathan Kingston
a271c615f7
Implement support for Element.toggleAttribute
2018-06-21 02:06:32 +01:00