bors-servo
8fa2a262dc
Auto merge of #17658 - emilio:nesting-level, r=bholley
...
selectors: Avoid looking at MatchingMode if the selector isn't the topmost.
Also, switch the hover quirk to the same mechanism.
Bug: 1379696
Reviewed-By: bholley
MozReview-Commit-ID: KrmNqNyASf6
<!-- 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/17658 )
<!-- Reviewable:end -->
2017-07-10 19:16:35 -07:00
Emilio Cobos Álvarez
1f2b79bc30
selectors: Avoid looking at MatchingMode if the selector isn't the topmost.
...
Also, switch the hover quirk to the same mechanism.
Bug: 1379696
Reviewed-By: bholley
MozReview-Commit-ID: KrmNqNyASf6
2017-07-11 03:52:07 +02:00
Josh Matthews
a08371e8eb
stylo: Create error reporters linked to documents (bug 1352669)
2017-07-10 20:46:08 -04:00
Hiroyuki Ikezoe
8f1bb25807
Update bindings.
2017-07-11 06:47:17 +09:00
Hiroyuki Ikezoe
1a5e1c6255
Update bindings.
2017-07-10 18:27:19 +09:00
Xidorn Quan
7fd4b43aea
Use ComputedValues rather than element to get style rule list.
2017-07-10 13:07:15 +10:00
bors-servo
f11a922760
Auto merge of #17430 - upsuper:font-weight-int, r=nox
...
Store font-weight as integer directly
It doesn't make much sense to store `font-weight` as separate enums, especially given that we would need to support (somehow) arbitrary font weight value when we implement CSS Fonts Level 4.
This PR refactors the `font-weight` a bit to make it store as `u16` directly.
<!-- 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/17430 )
<!-- Reviewable:end -->
2017-07-06 16:18:36 -07:00
Gecko Backout
32269fa7cc
Backed out changeset fec394734f83 (bug 17624) for build bustage a=backout CLOSED TREE
...
Backs out https://github.com/servo/servo/pull/17624
2017-07-06 21:58:15 +00:00
Josh Matthews
f5a3830ea2
stylo: Update rust-cssparser; extract more specific error types when reporting (bug 1352669).
2017-07-06 14:32:37 -04:00
Josh Matthews
dc2a500f4b
stylo: Create error reporters linked to documents (bug 1352669)
2017-07-06 14:05:52 -04:00
Xidorn Quan
8b842f5417
Use integer for specified and computed font-weight
2017-07-06 15:31:24 +10:00
Bobby Holley
3330653dc8
Rip out the generic abstractions around ThreadLocalStyleContext.
...
MozReview-Commit-ID: 5WTLuk323Ac
2017-07-05 16:37:17 -07:00
Daisuke Akatsuka
1b28d5e009
update auto generated files
2017-07-05 13:21:08 +09:00
Daisuke Akatsuka
d8dcc52c9a
implements nsStyleImageRequest type properties animatable
2017-07-05 13:11:58 +09:00
Daisuke Akatsuka
d885747a18
implements nsStyleImage type properties animatable
2017-07-05 13:10:58 +09:00
Daisuke Akatsuka
a155a6341d
implements nsStyleSides type properties animatable
2017-07-05 12:57:30 +09:00
Daisuke Akatsuka
34980689a7
implements nsStyleGridLine type properties animatable
2017-07-05 12:55:51 +09:00
Daisuke Akatsuka
983361eb0f
implements nsStyleCoord type properties animatable
2017-07-05 12:54:45 +09:00
Fernando Jiménez Moreno
fc8d0eeae0
stylo: Implement ServoStyleRule::SelectorMatchesElement
2017-07-04 13:13:48 +02:00
Hiroyuki Ikezoe
4331112846
reduce
2017-07-03 15:11:42 +09:00
Emilio Cobos Álvarez
1263075776
stylo: Fix StyleSheetInner/Stylesheet mapping
...
The key of this patch is the split between Stylesheet and StylesheetContents.
Gecko will use StylesheetContents, which maps to a ServoStyleSheetInner.
2017-07-02 15:49:40 +02:00
bors-servo
be58b99b06
Auto merge of #17562 - emilio:less-revalidation-stuff, r=bzbarsky
...
style: Don't treat some document-state-related pseudo-classes as revalidation selectors.
<!-- 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/17562 )
<!-- Reviewable:end -->
2017-07-01 08:13:58 -07:00
Nazım Can Altınova
d589645ee9
stylo: Implement -moz-prefixed radial gradients
2017-06-30 17:54:01 -07:00
Nazım Can Altınova
3e42684d3c
stylo: Implement -moz-prefixed linear gradients
2017-06-30 17:53:01 -07:00
bors-servo
a24600d626
Auto merge of #17577 - mbrubeck:inactive, r=emilio
...
Bug 1348489 - stylo: Implement :-moz-window-inactive.
https://bugzilla.mozilla.org/show_bug.cgi?id=1348489
<!-- 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/17577 )
<!-- Reviewable:end -->
2017-06-30 10:13:01 -07:00
Matt Brubeck
17f4d0c5d9
Bug 1348489 - stylo: Implement :-moz-window-inactive.
2017-06-30 09:31:01 -07:00
bors-servo
a04725fa1c
Auto merge of #17569 - upsuper:fullscreen, r=emilio
...
Support :-moz-full-screen pseudo-class
This fixes [bug 1374901](https://bugzilla.mozilla.org/show_bug.cgi?id=1374901 ).
<!-- 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/17569 )
<!-- Reviewable:end -->
2017-06-30 08:08:00 -07:00
bors-servo
008f90517c
Auto merge of #17566 - canaltinova:font-var-alt, r=emilio
...
stylo: Fix font-variant-alternates property
`font-variant-alternates` was just parsing values as keywords. But many of the alternates are actually functions instead of keywords. This fixes that.
r=emilio on bugzilla side.
---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix [Bug 1356124](https://bugzilla.mozilla.org/show_bug.cgi?id=1356124 )
<!-- 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/17566 )
<!-- Reviewable:end -->
2017-06-30 04:13:15 -07:00
Emilio Cobos Álvarez
65bbd6c23a
style: Update Stylo bindings for new LookAndFeel_ColorID variants
2017-06-29 17:38:14 -07:00
Xidorn Quan
3ea38020f7
Support :-moz-full-screen pseudo-class
2017-06-29 15:44:30 -07:00
Nazım Can Altınova
5d0f7f10e0
stylo: Fix font-variant-alternates property
2017-06-29 13:33:38 -07:00
Gecko Backout
fb4e454df4
Backed out changeset 90036d4d378e (bug 17564) because gecko-side patch caused bustage on Windows. r=backout on a CLOSED TREE
...
Backs out https://github.com/servo/servo/pull/17564
2017-06-29 20:28:35 +00:00
Matt Brubeck
9cef18f6b5
Bug 1348489 - stylo: Implement :-moz-window-inactive.
2017-06-29 11:21:16 -07:00
Emilio Cobos Álvarez
d5a5a7ff16
style: Don't treat some document-state-related pseudo-classes as revalidation selectors.
2017-06-29 08:45:05 -07:00
bors-servo
b3e2b26a23
Auto merge of #17551 - ferjm:bug1375555.stylevariables, r=emilio
...
stylo: implement indexed and count getters for custom properties
From https://bugzilla.mozilla.org/show_bug.cgi?id=1375555
<!-- 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/17551 )
<!-- Reviewable:end -->
2017-06-28 18:04:58 -07:00
Emilio Cobos Álvarez
9558d2d918
stylo: Fix MightHave{State,Attribute}Dependency for XBL.
...
Bug: 1375969
Reviewed-By: heycam
MozReview-Commit-ID: 8I29pMHq4uf
2017-06-28 16:02:11 -07:00
Emilio Cobos Álvarez
02b61ed1a1
style: Refactor XBL rule matching to add another API to iterate the Stylists.
...
This will allow us to query the relevant stylists for invalidation.
Bug: 1375969
Reviewed-By: TYLin
MozReview-Commit-ID: EIIzbr2pEqN
2017-06-28 16:02:08 -07:00
Fernando Jiménez Moreno
93f0de7899
stylo: implement indexed and count getters for custom properties
2017-06-28 12:29:56 -07:00
Cameron McCormack
8f8f01f96d
style: Update Gecko bindings.
2017-06-28 11:59:13 -07:00
Cameron McCormack
25dde5120c
style: Use placement new/delete StyleChildrenIterator FFI functions.
...
MozReview-Commit-ID: L0bhymGJqRx
2017-06-28 11:59:13 -07:00
Cameron McCormack
07ede8cb2a
style: Use faster check to determine whether a StyleChildrenIterator is needed.
...
MozReview-Commit-ID: KNmdtnlEmfc
2017-06-28 11:58:50 -07:00
Cameron McCormack
0b2b30f301
style: Remove unused TElement::children_and_traversal_children_might_differ.
...
MozReview-Commit-ID: GUmuxpdvAa8
2017-06-28 11:58:50 -07:00
Cameron McCormack
84c61fa15e
style: Look to base XBL bindings for content too. r=bholley
...
MozReview-Commit-ID: DFep2S6jnWf
2017-06-28 11:58:50 -07:00
Matt Brubeck
e0b864d787
Bug 1367312 - stylo: Implement :-moz-lwtheme* pseudo-classes.
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1367312
2017-06-28 09:41:33 -07:00
bors-servo
79ee821bef
Auto merge of #17525 - emilio:text-decoration, r=heycam
...
style: Fix propagation of text-decoration lines.
This also paves up the ground to be able to fix #16825 .
<!-- 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/17525 )
<!-- Reviewable:end -->
2017-06-27 12:44:33 -07:00
bors-servo
2843eb5ddf
Auto merge of #17517 - canaltinova:font-lang-override, r=SimonSapin
...
stylo: Implement font-language-override descriptor for @font-face rule
Generally we use computed values for `@font-face` rule descriptors but that descriptor is a bit different than the others in gecko side. It accepts strings instead of unsigned integer(which is computed value of this property). So we had to use SpecifiedValue for that in here.
---
<!-- 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 [Bug 1355364](https://bugzilla.mozilla.org/show_bug.cgi?id=1355364 )
<!-- 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/17517 )
<!-- Reviewable:end -->
2017-06-27 11:35:33 -07:00
Boris Zbarsky
746f245f32
Fix style computation for first-letter pseudo-elements with inline ancestors.
...
We should inherit from the inline, not its parent block.
Gecko bug 1324618 part 10 servo bits: https://bugzilla.mozilla.org/show_bug.cgi?id=1324618
2017-06-26 23:29:18 -07:00
Boris Zbarsky
d40e27d6e5
Reframe less on restyles that involve nonexistent first-letter frames in Gecko.
...
Gecko bug 1324618 part 9 servo bits: https://bugzilla.mozilla.org/show_bug.cgi?id=1324618
2017-06-26 23:27:39 -07:00
Emilio Cobos Álvarez
69e650ea68
style: Fix propagation of text-decoration lines.
2017-06-26 23:12:18 -07:00
Nazım Can Altınova
3421694f12
stylo: Implement font-language-override descriptor for @font-face rule
2017-06-25 18:51:18 -07:00