aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko
diff options
context:
space:
mode:
authorBoris Chiou <boris.chiou@gmail.com>2017-10-19 10:49:10 +0800
committerBoris Chiou <boris.chiou@gmail.com>2017-10-19 11:05:07 +0800
commitaa72970f0aa5d1855ee91f2868a7a463d0c9fb39 (patch)
tree43dcb29af1a0f8a64b838102cfdcf5b4c7419f28 /components/style/gecko
parent4c538b642e4bdfbf42c522c5a59c258a6d14546e (diff)
downloadservo-aa72970f0aa5d1855ee91f2868a7a463d0c9fb39.tar.gz
servo-aa72970f0aa5d1855ee91f2868a7a463d0c9fb39.zip
Add Servo_StyleSet_GetComputedValuesByAddingAnimation FFI.
Add an FFI to create a temporary ServoStyleContext with the animation value. We need this because we calculate the Cumulative change hints to check if we can ignore this animation segment.
Diffstat (limited to 'components/style/gecko')
-rw-r--r--components/style/gecko/generated/bindings.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs
index 404e072b04e..3ffab7ccf56 100644
--- a/components/style/gecko/generated/bindings.rs
+++ b/components/style/gecko/generated/bindings.rs
@@ -3005,6 +3005,19 @@ extern "C" {
-> ServoStyleContextStrong;
}
extern "C" {
+ pub fn Servo_StyleSet_GetComputedValuesByAddingAnimation(set:
+ RawServoStyleSetBorrowed,
+ element:
+ RawGeckoElementBorrowed,
+ existing_style:
+ ServoStyleContextBorrowed,
+ snapshots:
+ *const ServoElementSnapshotTable,
+ animation:
+ RawServoAnimationValueBorrowed)
+ -> ServoStyleContextStrong;
+}
+extern "C" {
pub fn Servo_SerializeFontValueForCanvas(declarations:
RawServoDeclarationBlockBorrowed,
buffer: *mut nsAString);