Hiroyuki Ikezoe
3244d6264a
Drop parent style argument from Gecko_UpdateAnimations.
2017-06-09 06:03:21 +09:00
bors-servo
6b707b3248
Auto merge of #17234 - mbrubeck:dir, r=xidorn
...
stylo: Make :-moz-locale-dir selector non-internal.
https://bugzilla.mozilla.org/show_bug.cgi?id=1367310
<!-- 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/17234 )
<!-- Reviewable:end -->
2017-06-08 11:25:42 -07:00
Matt Brubeck
2e85790fa0
stylo: Make :-moz-locale-dir selector non-internal.
2017-06-08 09:07:06 -07:00
bors-servo
433b7bf9fa
Auto merge of #17221 - aethanyc:support-xbl-stylesheet, r=heycam
...
stylo: Get rules from Gecko XBL stylesheets in cascading (Bug 1290276)
The change was reviewed in https://bugzilla.mozilla.org/show_bug.cgi?id=1290276
<!-- 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/17221 )
<!-- Reviewable:end -->
2017-06-08 00:19:27 -07:00
bors-servo
24e944ad94
Auto merge of #17219 - upsuper:currentcolor, r=Manishearth,birtles
...
Support interpolation between currentcolor and numeric color
This is the Servo side change of [bug 1345709](https://bugzilla.mozilla.org/show_bug.cgi?id=1345709 ).
<!-- 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/17219 )
<!-- Reviewable:end -->
2017-06-07 21:03:52 -07:00
Ting-Yu Lin
108a169216
stylo: Update gecko generated bindings
2017-06-08 11:26:06 +08:00
Ting-Yu Lin
2411749fcf
stylo: Get rules from Gecko XBL stylesheets in cascading (Bug 1290276)
2017-06-08 11:18:44 +08:00
Cameron McCormack
18d847227c
style: Update Gecko bindings.
2017-06-08 09:37:33 +08:00
Cameron McCormack
f492c8fe6e
style: Match :lang() using snapshots correctly.
2017-06-08 09:37:09 +08:00
Cameron McCormack
c7e2500311
style: Note :lang() as being sensitive to attributes.
2017-06-08 09:37:09 +08:00
Cameron McCormack
e299905606
style: Define types for pseudo-class string argument storage.
2017-06-08 09:37:09 +08:00
Xidorn Quan
bf77f81ed6
Create RGBAColor for colors compute to RGBA.
2017-06-08 10:42:26 +10:00
bors-servo
eaefcbe551
Auto merge of #17211 - Manishearth:stylo-single-generic, r=heycam
...
stylo: Prefill default font when a single generic is set
r=heycam https://bugzilla.mozilla.org/show_bug.cgi?id=1370734
<!-- 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/17211 )
<!-- Reviewable:end -->
2017-06-07 10:53:25 -07:00
Manish Goregaokar
3db0d3b4fa
stylo: Prefill default font when a single generic is set
2017-06-07 09:40:15 -07:00
Fernando Jiménez Moreno
36f3255484
Bug 1367615 - Stylo: implement inIDOMUtils.getSelectorCount and inIDOMUtils.getSelectorTextFromIndex
2017-06-07 17:42:29 +02:00
Boris Chiou
1d44c273d3
Implement an FFI and matrix conversions for matrix decomposition/interpolation/recomposition.
...
We use Servo backend to decompose/interpolate/recompose matrices on both
main thread and compositor thread.
2017-06-07 13:04:05 +08:00
Boris Chiou
1a3845b719
Convert between {Accumulate, Interpolate}Matrix and the related gecko type.
...
We convert ComputedOperation::{Accumulate, Interpolate}Matrix into gecko type
not on the main thread, so we cannot use nsCSSValueList_heap (which is not
thread safe so we cannot create it and destroy it on different threads).
Therefore, we use nsCSSValueSharedList to represent the cloned
from_list/to_list. In this patch, we also implement the reversing way,
i.e. Convert eCSSKeyword_{accumulate, interpolate}matrix into
{Accumulate, Interpolate}Matrix.
2017-06-07 11:31:27 +08:00
Cameron McCormack
c6cac88c6f
style: Regenerate Gecko bindings.
2017-06-06 12:26:45 +08:00
Cameron McCormack
17e5c19d70
style: Support matching :-moz-browser-frame and :-moz-table-border-nonzero against snapshots.
2017-06-06 12:26:45 +08:00
Bobby Holley
1281fd9353
Stop slicing selectors when noting dependencies, and match with an offset instead.
...
MozReview-Commit-ID: KLqmdRKygO0
2017-06-05 19:44:01 -07:00
Bobby Holley
5ddabef636
Collapse Selector, SelectorInner, and ComplexSelector into a single Selector.
...
The refcounting is still internal. We'll fix that up next.
MozReview-Commit-ID: CTxZNaR3Qgj
2017-06-05 19:44:00 -07:00
Matt Brubeck
08a53a3810
Bug 1367315 - stylo: Make :dir argument a case-insensitive identifier
2017-06-05 11:09:23 -07:00
KuoE0
00d3fc29bc
Update generated files
...
MozReview-Commit-ID: 3bQbda2PJLX
2017-06-05 15:12:45 +08:00
Brian Birtles
6491509f87
Add FFI for calling Servo's add and accumulate methods on animation values
2017-06-05 12:49:33 +09:00
Brian Birtles
34556f7769
Add FFI for getting the zero value of an animation value
2017-06-05 12:49:33 +09:00
Emilio Cobos Álvarez
58fd80e282
style: Split stylesheets.rs
...
This file has become quite bloated lately. This commit deletes that file in
favor of a set of submodules.
The only noticeable change apart from code move, is converting deep_clone_foo
methods into a trait.
It also unifies logic related to different style rules in the same place.
There's some missing work, specially related to font-face and counter-style, but
I think this is worth landing in the meantime.
2017-06-04 21:50:09 +02:00
Cameron McCormack
19b61dfc08
style: Recascade the document when rem units are used and the root font-size changes.
2017-06-04 10:03:11 +08:00
Emilio Cobos Álvarez
dd3bf6f952
Ensure the default computed values are up-to-date before evaluating media queries.
...
Zoom changes can change the meaning of ems, so we can't re-evaluate media
queries with the old values, because otherwise we may miss a restyle.
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1357461
MozReview-Commit-ID: HQInvR7RPqR
2017-06-03 14:44:12 +02:00
J. Ryan Stinnett
b03867da5d
Update bindings
2017-06-02 14:39:13 -05:00
J. Ryan Stinnett
56b44d2709
Pull decls from Gecko for link preshints
...
Based on a link's active state and the visited handling mode, pull in link,
vlink, and alink preshint declaration blocks from Gecko as needed.
MozReview-Commit-ID: A6udMYbzQnK
2017-06-02 14:34:39 -05:00
Hiroyuki Ikezoe
ac86d2d648
Update bindings.
2017-06-02 12:18:08 +09:00
bors-servo
373d3b91dd
Auto merge of #17130 - Manishearth:stylo-attr, r=heycam,emilio
...
stylo: Handle attr() in `content`
r=heycam https://bugzilla.mozilla.org/show_bug.cgi?id=1346693
<!-- 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/17130 )
<!-- Reviewable:end -->
2017-06-01 15:34:55 -07:00
Manish Goregaokar
25d193ba34
stylo: Use namespace ids for content: attr(..)
...
MozReview-Commit-ID: FZ9YEpHQCBh
2017-06-01 14:11:31 -07:00
bors-servo
cfdb6af53b
Auto merge of #17121 - Manishearth:stylo-system-font-ser, r=upsuper
...
stylo: Fix serialization of system fonts
<!-- 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/17121 )
<!-- Reviewable:end -->
2017-06-01 14:04:41 -07:00
Jeff Hajewski
878b9a4db3
Use enum class for white-space
2017-06-01 13:55:54 -07:00
Emilio Cobos Álvarez
509a450cff
Bug 1369187: style: Add first-line and first-letter to the set of eager pseudo styles. r=bholley
...
MozReview-Commit-ID: DmpX0nA2DOw
2017-06-01 21:09:34 +02:00
Fernando Jiménez Moreno
ebfb18c1b5
Update gecko bindings
2017-05-31 11:07:06 +02:00
Hiroyuki Ikezoe
c058eb5512
Update bindings.
2017-05-31 06:16:31 +09:00
Hiroyuki Ikezoe
636c47da29
Set the dirty flag of DeclarationBlock when the DeclarationBlock is modified and clear the flag when it's resyled.
2017-05-31 05:48:27 +09:00
bors-servo
43862ba045
Auto merge of #17092 - heycam:document-colors, r=xidorn
...
style: Add support for disabled document colors.
Reviewed in https://bugzilla.mozilla.org/show_bug.cgi?id=1355716 .
<!-- 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/17092 )
<!-- Reviewable:end -->
2017-05-30 06:10:42 -05:00
bors-servo
433d68955b
Auto merge of #17071 - servo:derive-all-the-things, r=emilio
...
Reuse Rect<T> some more
<!-- 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/17071 )
<!-- Reviewable:end -->
2017-05-30 05:11:28 -05:00
Cameron McCormack
c768169149
style: Add support for disabled document colors.
2017-05-30 16:25:08 +08:00
Xidorn Quan
571d4c272b
Update binding files.
2017-05-30 09:41:31 +10:00
Emilio Cobos Álvarez
9c77dd8de6
style: Sync bindings.
2017-05-29 20:27:47 +02:00
Emilio Cobos Álvarez
ac5872b48c
Bug 1357583: style: Make effective_rules return an iterator, stop refcounting the Device. r=heycam
...
This makes the code cleaner, and also documents the fact that effective_rules
recurses into imports.
No we're not adding the imported stylesheets twice, and we share code with the
invalidation analysis.
MozReview-Commit-ID: DOF2AViTlmR
2017-05-29 20:27:43 +02:00
Emilio Cobos Álvarez
39e836966e
Bug 1357583: style: Hook up the invalidator in the StyleSheetSet. r=heycam
...
MozReview-Commit-ID: IhgKAovTJMX
2017-05-29 20:27:36 +02:00
Nicholas Nethercote
6d5b1242db
Introduce and start using the MallocSizeOf trait.
...
MallocSizeOf is similar to the existing HeapSizeOf trait from the
heapsize crate. The only difference is that MallocSizeOf's
malloc_size_of_children() function takes an additional MallocSizeOfFn
argument, which is used to measure heap blocks. This extra argument
makes MallocSizeOf match how Gecko's memory measurements work, and is
required for Stylo to integrate with DMD.
The patch also introduces a second trait, MallocSizeOfWithGuard, which
is much the same as MallocSizeOf, but with a |guard| argument for the
global style lock.
Finally, the patch uses the new traits to measure a small amount of
Stylo's memory usage.
2017-05-29 10:16:55 +10:00
Anthony Ramine
862fc4f88d
Rename BorderRadiusSize to BorderCornerSize
2017-05-29 00:58:53 +02:00
Anthony Ramine
af3ede418b
Refactor BorderRadius and move it to the border modules
...
BorderRadius now parses itself reusing Rect<T>.
2017-05-28 14:36:37 +02:00
bors-servo
369d5cf124
Auto merge of #17058 - Manishearth:stylo-randomprops, r=emilio
...
stylo: Support remaning longhands
r=xidorn https://bugzilla.mozilla.org/show_bug.cgi?id=1367275
<!-- 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/17058 )
<!-- Reviewable:end -->
2017-05-27 13:37:59 -05:00