Xidorn Quan
dc25b51b6e
Remove StyleBackendType uses.
2018-03-28 23:13:44 +11:00
Xidorn Quan
688fb23d25
Remove nsCSSPseudoClasses.{h,cpp} and nsCSSPseudoClassList.h.
2018-03-28 09:50:14 +11:00
Xidorn Quan
e57b6c65a0
Move matching logic of :-moz-table-border-nonzero and :-moz-browser-frame into individual binding functions.
2018-03-28 09:50:14 +11:00
Xidorn Quan
911f174b70
Make :-moz-native-anonymous and :-moz-use-shadow-tree-root matches in Rust code.
2018-03-28 09:50:13 +11:00
Xidorn Quan
bb15111dab
Use Servo to implement GetStatesForPseudoClass function in InspectorUtils.
2018-03-28 09:50:13 +11:00
Nicholas Nethercote
77e3522507
Statically allocate static atoms.
2018-03-26 17:05:05 +11:00
Emilio Cobos Álvarez
4c6d1321ec
style: Update bindings.
...
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2018-03-22 18:04:29 +01:00
Emilio Cobos Álvarez
bd70c405b4
style: Rename StyleContext to ComputedStyle.
...
Bug: 1447483
Reviewed-by: jwatt
MozReview-Commit-ID: KATZ6DkmpVY
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2018-03-22 18:04:29 +01:00
OJ Kwon
c8592ead6f
refactor(counter_style): parse int via parse_non_negative
2018-03-21 15:03:38 -07:00
Emilio Cobos Álvarez
9c77f0b977
style: Better Shadow DOM assertions.
...
Bug: 1445682
Reviewed-by: xidorn
Differential Revision: https://phabricator.services.mozilla.com/D748
2018-03-19 13:58:18 +01:00
bors-servo
28348ba6b6
Auto merge of #20338 - emilio:moz-document-haxx, r=xidorn
...
Add a pref to allow parsing @-moz-document url-prefix in content.
Bug: 1446470
Reviewed-by: xidorn
<!-- 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/20338 )
<!-- Reviewable:end -->
2018-03-19 07:18:02 -04:00
Emilio Cobos Álvarez
c43de8ff29
style: Update bindings.
2018-03-19 11:24:19 +01:00
bors-servo
b47224dbcc
Auto merge of #20339 - emilio:atom-from-dead-beef, r=nox
...
style: Remove unsound Atom From implementations.
Fixes #20158
<!-- 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/20339 )
<!-- Reviewable:end -->
2018-03-19 06:11:14 -04:00
Emilio Cobos Álvarez
55e2cd5dc3
style: Remove unsound Atom From implementations.
...
Fixes #20158
2018-03-19 11:06:53 +01:00
Nupur Baghel
307858bf69
CounterBound::Integer made to store an Integer
2018-03-19 09:57:10 +05:30
Xidorn Quan
368fb574f8
Have servo report traversal statistics to gecko.
2018-03-15 11:57:52 +11:00
Xidorn Quan
afa377acfd
Update bindings.
2018-03-15 11:57:47 +11:00
Emilio Cobos Álvarez
9fa2618197
style: Add infrastructure to match :host.
2018-03-14 15:10:05 +01:00
Emilio Cobos Álvarez
9364cd21b8
style: Don't share style with an element that has a different proto binding than us.
...
See the lengthy comment about why... XBL sucks.
MozReview-Commit-ID: 8UgeJAVkj6a
2018-03-12 21:47:47 +01:00
Emilio Cobos Álvarez
c338745b17
style: Allow to share style across elements with similar XBL bindings.
2018-03-12 21:47:46 +01:00
Anthony Ramine
afaa00a344
Remove some uses of trivial_to_computed_value
2018-03-09 11:57:22 +01:00
bors-servo
9b540d199e
Auto merge of #20241 - emilio:xbl-faster, r=bholley
...
style: Make getting the XBL binding faster.
<!-- 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/20241 )
<!-- Reviewable:end -->
2018-03-08 11:31:35 -05:00
Emilio Cobos Álvarez
da97d56d4e
style: Make getting the XBL binding faster.
...
MozReview-Commit-ID: GPj3uv4xgAv
2018-03-08 14:12:08 +01:00
Xidorn Quan
ecbc55ffcf
Construct URLValue eagerly and share it between specified value and style structs.
2018-03-08 23:34:35 +11:00
Xidorn Quan
fa5d76c395
Split CssUrl from SpecifiedUrl for non-value URLs.
2018-03-08 23:34:34 +11:00
Xidorn Quan
0090fbb3c8
Move ComputedUrl into their impl mods.
2018-03-08 23:34:33 +11:00
Xidorn Quan
d001fd9a0a
Move Parse impl of SpecifiedUrl into corresponding files.
2018-03-08 23:34:33 +11:00
Xidorn Quan
a99ca543cd
Add SpecifiedImageUrl for <url> used as images.
2018-03-08 23:34:32 +11:00
Xidorn Quan
14b708311b
Remove some useless clone() call on SpecifiedUrl::image_value.
2018-03-08 21:35:33 +11:00
Emilio Cobos Álvarez
ef4ea7cc49
style: Separate the XBL and shadow dom styling bits.
...
Bug: 1441022
Reviewed-by: xidorn
MozReview-Commit-ID: 2W0BmZ8wWXg
2018-03-07 15:42:28 +01:00
Xidorn Quan
20ec610e68
Do not disable thread pool in the parent process.
2018-03-07 09:40:33 +11:00
Anthony Ramine
ca45695db1
Introduce #[css(skip)]
2018-03-05 15:53:15 +01:00
Anthony Ramine
31036d6510
Derive ToCss for MediaList
...
This uncovered the fancy snowflake `use fmt::Write` in the impl of ToCss
for NonTSPseudoClass.
2018-03-05 12:02:31 +01:00
Anthony Ramine
0b3a5b42ba
Introduce enum CounterBound for the bounds in counter_style::Ranges
2018-03-05 12:02:25 +01:00
bors-servo
fbeb5a81a8
Auto merge of #20194 - emilio:ascii-ext-stuff, r=nox
...
style: remove unused AsciiExt imports.
eq_ignore_ascii_case is not in AsciiExt since rustc 1.23.
<!-- 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/20194 )
<!-- Reviewable:end -->
2018-03-04 13:35:04 -05:00
Emilio Cobos Álvarez
39a3d93b4f
style: remove unused AsciiExt imports.
...
eq_ignore_ascii_case is not in AsciiExt since rustc 1.23.
2018-03-04 15:31:06 +01:00
Jonathan Kew
33ead015b1
style: Make 'font' shorthand reset the 'font-variation-settings' property.
...
As required by the spec: https://drafts.csswg.org/css-fonts-4/#font-prop
See https://bugzilla.mozilla.org/show_bug.cgi?id=1435983
Basically, make font-variation-settings work in the same way as font-feature-settings
already does.
2018-03-04 12:26:32 +00:00
Emilio Cobos Álvarez
f422c7dca4
style: Assert sanity in GeckoNode::as_document.
2018-03-03 23:52:52 +01:00
Emilio Cobos Álvarez
56fc1a6649
style: Account for a few more cases in the node's debug-formatting code.
2018-03-03 23:52:51 +01:00
Emilio Cobos Álvarez
a19219ec79
style: Add also a containing_shadow API.
2018-03-03 23:52:50 +01:00
Emilio Cobos Álvarez
2f0df1b421
style: Add bindings for ShadowRoot.
...
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.
2018-03-03 23:52:49 +01:00
Emilio Cobos Álvarez
865a14cf0f
style: Update bindings.
2018-03-03 20:42:41 +01:00
Emilio Cobos Álvarez
98e4c08c64
style: Update bindings.
2018-03-03 18:18:22 +01:00
Emilio Cobos Álvarez
da94feb11a
style: Copy less URLs on stylo.
...
Bug: 1442246
Reviewed-by: jdm
MozReview-Commit-ID: NmHue1mGDq
2018-03-03 18:18:22 +01:00
Anthony Ramine
ad7adee882
Use CustomIdent in Symbol::Ident
...
The former code was not following the spec.
2018-03-03 16:15:13 +01:00
Xidorn Quan
107d9d2072
Remove text-is-significant param from Gecko_IsSignificantChild
2018-03-01 09:48:32 +11:00
Bobby Holley
0236a6ce99
Stylo: Pass an explicit parent SheetLoadData for child stylesheet loads.
...
MozReview-Commit-ID: 7XNu42NtITm
2018-02-28 08:28:48 -08:00
Emilio Cobos Álvarez
8c4b401dd3
style: Only expose longhands to rust via iterators.
...
The key here is that we only filter longhands if the shorthand is accessible to
content and vice-versa. This prevents the bug that prevented me to land this
patch before, which was us not expanding properly chrome-only shorthands.
Again, this is incomplete, and I need to teach LonghandsToSerialize to get a
potentially incomplete list of properties, and all that.
2018-02-28 00:19:31 +01:00
bors-servo
a7f38f0f32
Auto merge of #20133 - emilio:kill-xbl, r=xidorn
...
style: Make Shadow DOM not use XBL anymore.
Bug: 1425759
Reviewed-by: xidorn
MozReview-Commit-ID: Jf2iGvLC5de
<!-- 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/20133 )
<!-- Reviewable:end -->
2018-02-27 05:47:29 -05:00
Emilio Cobos Álvarez
a5957fadf6
style: Update bindings.
2018-02-27 11:14:19 +01:00