Emilio Cobos Álvarez
194c2712b5
style: Make MozScriptLevel::Absolute serialize as -moz-absolute(foo).
2017-11-12 16:25:01 +01:00
Emilio Cobos Álvarez
92944cd5eb
style: Make css(dimension) apply to the variant.
2017-11-12 16:25:00 +01:00
Emilio Cobos Álvarez
4927786d90
style: Implement css(dimension) and derive ToCss for a bunch of stuff.
...
For css(dimension), it'd be nice to derive(Parse) too, I think...
2017-11-12 16:22:45 +01:00
Emilio Cobos Álvarez
1b533f9bdc
style: Derive ToCss for MozScriptLevel.
2017-11-12 05:24:09 +01:00
Emilio Cobos Álvarez
06f8f0384b
style: add css(function, iterable), and derive ToCss for VariantAlternates.
2017-11-12 05:24:08 +01:00
Emilio Cobos Álvarez
3a5d70f106
style: Stop inspecting children to recascade them just because we reframed.
...
We only need to do this when display changes from none to non-none, so handle it
explicitly when computing the cascade requirement.
This patch also removes a few conditions that are redundant because they're
handled also by the cascade requirement check, like the initial styling.
2017-11-10 20:47:37 +01:00
CYBAI
aeae3113bf
style: Move font-variant-alternates outside of mako
2017-11-11 02:21:12 +08:00
Emilio Cobos Álvarez
6704122927
style: Get rid of CurrentElementInfo.
...
It's out-of-band data I never liked, and the code has changed enough from when
it was introduced, that now all of the information it stores can be local.
2017-11-10 17:03:01 +01:00
Emilio Cobos Álvarez
49fe3d1c9f
style: Remove "reconstructed ancestor" checks.
...
This is only useful to avoid restyling NAC subtrees, but _not_ for ::before or
::after, in most cases. These subrees are small, and reframing is also not too
common, so I don't think it warrants the complexity.
2017-11-10 17:03:01 +01:00
bors-servo
a3f2fae561
Auto merge of #19165 - CYBAI:font-synthesis-out-of-mako, r=emilio
...
style: Move font-synthesis outside of mako
This is a sub-PR of #19015
r? emilio
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #19160 (github issue number if applicable).
- [x] These changes do not require tests
<!-- 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/19165 )
<!-- Reviewable:end -->
2017-11-09 22:13:51 -06:00
CYBAI
b5370aa688
style: Move font-synthesis outside of mako
2017-11-10 09:00:31 +08:00
Simon Sapin
793bebfc0e
Upgrade to rustc 1.23.0-nightly (02004ef78 2017-11-08)
2017-11-09 16:56:39 +01:00
Emilio Cobos Álvarez
57121a2e15
style: Remove the skip_applying_damage "optimization".
...
We already remove all change hints down the tree when finding a reframe hint
using ClearServoRestyleFromSubtree in ServoRestyleManager, so this is useless.
MozReview-Commit-ID: 1twx7iPt79x
2017-11-09 15:21:53 +01:00
Simon Sapin
954b2cc3d8
Allow unused imports for AsciiExt in style code.
...
See #19128 , this part is cherry-picked so Gecko can build with rust nightly.
2017-11-09 12:43:23 +01:00
CYBAI
e73f2377cf
style: Move font-size-adjust outside of mako
2017-11-08 23:40:23 +08:00
Emilio Cobos Álvarez
5ecf1508ee
style: We never call accumulate_damage_for in a forgetful traversal.
...
We early-return instead before calling it.
MozReview-Commit-ID: JaRWPHCQAl9
2017-11-08 14:24:10 +01:00
Emilio Cobos Álvarez
92a69fbd9a
style: Tidy up PseudoElement::should_exist.
...
MozReview-Commit-ID: Enr1NHONmtp
2017-11-08 14:23:58 +01:00
bors-servo
fd8b4b59c2
Auto merge of #19119 - CYBAI:font-size-out-of-mako, r=emilio
...
style: Move font-size outside of mako
This is a sub-PR of #19015
r? emilio
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #19111 (github issue number if applicable).
- [x] These changes do not require tests
<!-- 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/19119 )
<!-- Reviewable:end -->
2017-11-08 04:05:47 -06:00
CYBAI
0f57d250bb
style: Move font-size outside of mako
2017-11-08 14:31:06 +08:00
Emilio Cobos Álvarez
7adad61db8
style: Get rid of parse_specified.
...
It has a single use, and I don't think we should use it in the future.
2017-11-08 01:33:13 +01:00
Emilio Cobos Álvarez
7f073456f9
style: respect allow_quirks for boxed properties.
...
This will unblock #19119
2017-11-07 14:25:51 +01:00
Gecko Backout
2c1b041fc6
Backed out changeset d77275db6419 (bug 1374178) for failure reftests/transform-3d/translatez-1a.html r=backout a=backout on a CLOSED TREE
...
Backs out https://github.com/servo/servo/pull/19106
2017-11-07 06:49:27 +00:00
Xidorn Quan
7dfcbb582a
Add general impl in gecko_properties for TransformOrigin value and add -moz-window-transform-origin.
2017-11-06 11:49:53 -08:00
Xidorn Quan
9f5195eeec
Add general impl in gecko_properties for Transform value and add -moz-window-transform.
2017-11-06 11:49:52 -08:00
Xidorn Quan
79fb584eac
Use helpers.predefined_type for transform property.
2017-11-06 11:49:50 -08:00
Emilio Cobos Álvarez
3fa75bbdf6
style: Introduce SourceSizeList.
...
MozReview-Commit-ID: 9QMF45VcBFB
2017-11-06 16:36:41 +01:00
Emilio Cobos Álvarez
001c50bcca
style: Simplify a bit media query construction.
...
MozReview-Commit-ID: 3eqezFFWgNZ
2017-11-06 13:51:53 +01:00
Markus Stange
c439475b66
Bug 1414147 - Move fontSmoothingBackgroundColor from nsStyleUserInterface to nsFont, stylo changes.
2017-11-04 12:46:03 -04:00
Emilio Cobos Álvarez
72567505d9
style: Update bindings.
...
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-11-04 11:34:41 +01:00
Emilio Cobos Álvarez
18ac41fe87
style: Inline a bunch of stuff, fixup indentation of a couple things.
...
MozReview-Commit-ID: CgUNMeBDOCw
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-11-04 11:34:40 +01:00
Emilio Cobos Álvarez
c414e90b20
style: Inline DomDescendants.
...
MozReview-Commit-ID: HeBxicDHlzt
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-11-04 11:34:40 +01:00
Emilio Cobos Álvarez
f32f09656b
style: Allow disabling invalidation-based querySelector from C++
...
Rust compile times are hard.
MozReview-Commit-ID: 9Xhtf7f3Vzv
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-11-04 11:34:40 +01:00
Emilio Cobos Álvarez
afb09536f9
style: Remove some unneeded indirections in the invalidation code.
...
MozReview-Commit-ID: 5h5SE3ieC0A
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-11-04 11:34:39 +01:00
Emilio Cobos Álvarez
f0999365e2
style: Bump the selector length heuristic.
...
A selector with combinators has to have length > 2 (a component, a combinator,
another component).
MozReview-Commit-ID: GvMEbRdOVi2
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-11-04 11:34:39 +01:00
Emilio Cobos Álvarez
72ec0392a4
style: Add a query-selector fast path for #id foo.
...
MozReview-Commit-ID: DkrLcfQLPga
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-11-04 11:34:38 +01:00
Emilio Cobos Álvarez
dbfc1eb3e0
style: Extract a bit better the logic for finding elements with an ID under a subtree.
...
MozReview-Commit-ID: Hj9yxBk1OvS
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-11-04 11:34:38 +01:00
Emilio Cobos Álvarez
0032d04bcf
style: Optimize all ids in the rightmost compound selector.
...
This is effectively the same optimization Gecko has now.
MozReview-Commit-ID: 21HrjpHdpOz
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-11-04 11:34:38 +01:00
Emilio Cobos Álvarez
60aec43dad
style: Add a fast path for querySelector/All with a single id selector using the doc ID table.
...
MozReview-Commit-ID: JVnDO890kn4
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-11-04 11:34:37 +01:00
Emilio Cobos Álvarez
f993693eb2
style: Introduce TNode::is_in_document.
...
MozReview-Commit-ID: BrhhoOghtUL
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-11-04 11:34:37 +01:00
Emilio Cobos Álvarez
93272f46a5
style: Move the single simple selector optimizations to a different function.
...
MozReview-Commit-ID: EEM3AzW2A9s
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-11-04 11:34:36 +01:00
Emilio Cobos Álvarez
2783297fa9
style: Add a Document::elements_with_id API.
...
MozReview-Commit-ID: BNtbJp0RI68
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-11-04 11:34:36 +01:00
Gecko Backout
8f8fd517ed
Backed out changeset dbd300f4d75b for build bustage. r=backout on a CLOSED TREE
...
Backs out https://github.com/servo/servo/pull/19108
2017-11-03 23:56:42 +00:00
bors-servo
a0cd781bdc
Auto merge of #19108 - emilio:qsa, r=xidorn,bz
...
stylo: querySelector{,All} optimizations.
Bug: 1410624
<!-- 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/19108 )
<!-- Reviewable:end -->
2017-11-03 14:27:34 -05:00
Emilio Cobos Álvarez
15ef6b0d8a
style: Update bindings.
2017-11-03 20:25:01 +01:00
bors-servo
107ead64d0
Auto merge of #19101 - CYBAI:moz-script-level-out-of-mako, r=emilio
...
style: Move font -moz-script-level outside of mako
This is a sub-PR of #19015
r? emilio
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #19068 (github issue number if applicable).
- [x] These changes do not require tests because _____
<!-- 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/19101 )
<!-- Reviewable:end -->
2017-11-03 11:09:39 -05:00
Emilio Cobos Álvarez
bcc9c62620
style: Inline a bunch of stuff, fixup indentation of a couple things.
...
MozReview-Commit-ID: CgUNMeBDOCw
2017-11-03 14:18:49 +01:00
Emilio Cobos Álvarez
e7149f15d7
style: Inline DomDescendants.
...
MozReview-Commit-ID: HeBxicDHlzt
2017-11-03 14:18:48 +01:00
Emilio Cobos Álvarez
bfabd9f855
style: Allow disabling invalidation-based querySelector from C++
...
Rust compile times are hard.
MozReview-Commit-ID: 9Xhtf7f3Vzv
2017-11-03 14:18:48 +01:00
Emilio Cobos Álvarez
931aae9760
style: Remove some unneeded indirections in the invalidation code.
...
MozReview-Commit-ID: 5h5SE3ieC0A
2017-11-03 14:18:47 +01:00
Emilio Cobos Álvarez
9a378a89b4
style: Bump the selector length heuristic.
...
A selector with combinators has to have length > 2 (a component, a combinator,
another component).
MozReview-Commit-ID: GvMEbRdOVi2
2017-11-03 14:18:46 +01:00