Xidorn Quan
e1fa699d6e
Update binding files.
2017-04-03 14:30:35 +10:00
Xidorn Quan
5c9152e3df
Update binding files.
2017-03-30 12:48:18 +11:00
Bobby Holley
7654488988
stylo: Remove ThreadSafeArray.
...
MozReview-Commit-ID: JSpV8nhIVQA
2017-03-27 20:36:42 -07:00
Hiroyuki Ikezoe
4183b0dff2
Introduce UpdateAnimationTasks to perform a bunch of animation's tasks in a SequentialTask.
...
The UpdateAnimationsTasks is a bitflags and each bit is generated from
Gecko's UpdateAnimationsTasks (enum class) values for matching values
between C++ and Rust. For this reason, the bitflags is annotated as
(feature = "gecko"), as a result update_animations() which uses this bitflags
also became gecko-only function.
2017-03-27 17:38:09 +09:00
Hiroyuki Ikezoe
4aae0e29d6
Update bindings.
2017-03-27 17:31:16 +09:00
Hiroyuki Ikezoe
661574f9df
Add NODE_HAS_ANIMATION_ONLY_DIRTY_DESCENDANTS_FOR_SERVO to represent that an element's descendant has animation.
2017-03-27 06:19:51 +09:00
Hiroyuki Ikezoe
da8387e1ac
Update bindings.
2017-03-27 06:19:51 +09:00
Manish Goregaokar
fddddc9711
stylo: Calculate font-size keywords based on base size
...
MozReview-Commit-ID: Ff6kt8RLChI
2017-03-24 10:54:06 -07:00
Boris Chiou
a03bde357c
Bug 1349834 - Update RESTYLE_STYLE_ATTRIBUTE to sync Gecko change.
2017-03-24 22:36:09 +08:00
Mats Palmgren
2d2b98917f
Add 'appearance' property to Stylo (with '-webkit-appearance' alias)
2017-03-23 21:13:40 -07:00
Bobby Holley
e485365288
Bug 1348606 - Use a threadsafe array for counters. r=xidorn
...
MozReview-Commit-ID: KgTgcD5mGqr
2017-03-23 09:35:12 -07:00
Bobby Holley
16e04046b5
Use a wrapper class to maintain the mBinding invariant and stop resolving during the cascade.
2017-03-22 18:10:47 -07:00
Nazım Can Altınova
260e919f7b
Stylo: Update bindings for ServoType
2017-03-20 21:18:59 +03:00
cku
6ccbf499b8
stylo: Update transform-box glue.
2017-03-17 20:00:28 +08:00
Hiroyuki Ikezoe
254d5f6229
Drop Servo_AnimationValues_Uncompute.
2017-03-17 17:57:22 +09:00
Hiroyuki Ikezoe
b210813124
Put computed values into AnimationValueMap instead of hashtable in gecko.
...
Before this patch, we store each computed values in a hashtable,
nsRefPtrHashtable<nsUint32HashKey, RawServoAnimationValue>, for all
KeyframeEffectReadOnly on an element, and convert the ServoAnimationValues of
the hashtable into an nsTArray<ServoAnimationValue*> and then convert
the ServoAnimationValues of the nsTArray into PropertyDeclarationBlock
in rust. This way was really inefficient.
In this patch, we store the computed values into AnimationValueMap and
convert all AnimationValue in the map into PropertyDeclarationBlock
after EffectCompositor::GetAnimationRule.
2017-03-17 12:33:39 +09:00
Hiroyuki Ikezoe
52bee9a4cf
Add AnimationValueMap and expose it in FFI.
...
Current Gecko composes all of effects in the composite order at once.
We can put each computed value into this AnimationValueMap every time composing
an effect.
2017-03-17 12:29:34 +09:00
Hiroyuki Ikezoe
bcdd1c1739
binding-update
2017-03-17 12:26:26 +09:00
Manish Goregaokar
6b9a6806b8
stylo: Support system colors
...
MozReview-Commit-ID: HUfTdcMRoEx
2017-03-15 22:33:45 -07:00
Xidorn Quan
b02c786a42
Update bindings
2017-03-14 15:54:33 +11:00
Hiroyuki Ikezoe
d8f08b80e0
Implement Gecko_StyleAnimationsEquals for checking nsStyleAutoArray<StyleAnimation> equality in servo side.
...
Later we update CSS animations if this function returns false.
2017-03-10 11:07:18 +09:00
Hiroyuki Ikezoe
2892071ce7
Update bindings.
2017-03-10 10:55:00 +09:00
Manish Goregaokar
eda6a4fc4f
stylo: Pass parser URL data in Servo_DeclarationBlock_SetProperty*
...
MozReview-Commit-ID: EVk4aEoyiXv
2017-03-09 14:44:17 -08:00
Boris Chiou
0e97f07290
Bug 1248340 - Update bindgen.
2017-03-08 11:37:58 +08:00
Hiroyuki Ikezoe
e5386ed7aa
Update bindgens.
2017-03-07 13:24:01 +09:00
Hiroyuki Ikezoe
b45e3f1011
Add RawGeckoComputedKeyframeValuesList in build_gecko.rs.
2017-02-24 19:13:04 +09:00
Hiroyuki Ikezoe
be29e8db00
Update bindings.
2017-02-24 19:12:54 +09:00
bors-servo
ed731c80d7
Auto merge of #15675 - Manishearth:resync, r=mbrubeck
...
Resync bindings, use StyleShapeSource for clip-path
The bindings are getting harder to rebase over since the checked-in bindings differ from the generated ones.
Also includes https://bugzilla.mozilla.org/show_bug.cgi?id=1339314
<!-- 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/15675 )
<!-- Reviewable:end -->
2017-02-21 10:05:01 -08:00
Manish Goregaokar
c49c5ec224
Update clip-path glue to use StyleShapeSource
2017-02-21 09:44:47 -08:00
Manish Goregaokar
a68f656e62
Resync bindings
2017-02-21 09:44:17 -08:00
Ravi Shankar
6d4cf7424c
Regen bindings to include StyleGridTrackBreadth
2017-02-20 14:30:47 +05:30
Manish Goregaokar
e965b4e345
stylo: Add ServoBundledURI abstraction for use when setting css::URLValues
...
MozReview-Commit-ID: 4QKKzJ1DVYP
2017-02-18 02:42:47 -08:00
Emilio Cobos Álvarez
91e0ae2fe7
Bindgenup
...
Major pain point is that I had to write the bitfield stuff manually, but that
should be resolved soon again.
Now we generate proper layout for _every_ struct, including field offsets \o/.
2017-02-16 06:12:13 +01:00
Boris Chiou
c7dc3e4008
Bug 1335942 - Part 1: Introduce mozilla::AnimationValue. r=manishearth
...
Use AnimationValue to wrap StyleAnimationValue and RawServoAnimationValue.
2017-02-08 12:32:09 +08:00
Emilio Cobos Álvarez
79d9e2bd51
BindgenUp
2017-02-03 21:31:55 +01:00
Bobby Holley
ae88d22399
Update bindings.
2017-02-02 14:32:22 -08:00
Hiroyuki Ikezoe
b7d7ec233b
Update bindgen.
...
MozReview-Commit-ID: FDASu6yG306
2017-01-29 09:07:41 +09:00
Cameron McCormack
2f39b49e22
Regenerate bindings and tweak some geckolib code for it.
2017-01-26 17:32:08 +08:00
bors-servo
e4a1cb6f87
Auto merge of #15175 - BorisChiou:animation/interpolate_and_cascade, r=heycam
...
Interpolate servo animation values and add them to the cascade
These are the servo-side changes for [bug 1317209](https://bugzilla.mozilla.org/show_bug.cgi?id=1317209 ). @Manishearth, @emilio, and @heycam have already reviewed them there. Please merge these patches until the gecko-side changes for [bug 1317209](https://bugzilla.mozilla.org/show_bug.cgi?id=1317209 ) is landed.
---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix [bug 1317209](https://bugzilla.mozilla.org/show_bug.cgi?id=1317209 ).
- [X] These changes do not require tests because there are existing tests for this in mozilla-central
<!-- 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/15175 )
<!-- Reviewable:end -->
2017-01-25 23:36:33 -08:00
Emilio Cobos Álvarez
ec19f7c7cc
Regenerate in-tree bindings.
...
MozReview-Commit-ID: 4mnAh9y7SY4
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-25 10:42:45 +01:00
Boris Chiou
19aea7ea78
Bug 1317209 - Part 5: Support transition cascade level. r=emilio
...
Support a new enum, EffectCompositor_CascadeLevel, which is an equivalent of
EffectCompositor::CascadeLevel in Gecko.
2017-01-24 18:44:07 +08:00
Boris Chiou
4f0791a94b
Bug 1317209 - Part 1: Implement uncompute FFI. r=manishearth
2017-01-24 15:47:35 +08:00
Manish Goregaokar
9c69b3d0a5
Regen bindings
2017-01-21 16:54:17 -08:00
Emilio Cobos Álvarez
182e0758f7
Regenerate bindings.
...
MozReview-Commit-ID: 4XEaLnhGSqT
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-18 14:39:26 +01:00
Emilio Cobos Álvarez
646258e5a0
Bug 1331213: Don't make the pres context pointers opaque. r=heycam
...
I don't know why they were that way, but it makes no sense and tests still pass.
MozReview-Commit-ID: HAIuQhqlTtF
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-17 14:18:51 +01:00
Emilio Cobos Álvarez
5b5243b8af
Bug 1331213: Bootstrap a Gecko-side Device, and track it's dirtiness manually in the per-doc data. r=heycam
...
The setup is quite different to Servo-land, so add a comment about the different
setup.
Also, check viewport rules when flushing stylesheets. I believe that the
previous behavior is plain wrong, though I haven't taken the time to come up
with a test case.
In any case, it doesn't hurt any of both back-ends.
MozReview-Commit-ID: 46gtTkesOsr
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-01-17 14:05:23 +01:00
Cameron McCormack
6ca0c10e79
stylo: Regenerate bindings.
2017-01-16 16:22:55 +08:00
Manish Goregaokar
296b468801
stylo: Expose property-pref mappings
...
MozReview-Commit-ID: 7evWOUFwa3K
2017-01-13 14:22:04 -08:00
Manish Goregaokar
d87b710fdd
stylo: Store servo computed values for animation properties
...
MozReview-Commit-ID: IoQLN5tdIBw
2017-01-11 15:24:53 -08:00
Bobby Holley
3fcfc9c5fc
Bug 1325734 - Simplify ElementData and eliminate the concept of consuming styles. r=emilio
2017-01-09 11:51:37 -08:00