aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko/generated/bindings.rs
diff options
context:
space:
mode:
authorBoris Chiou <boris.chiou@gmail.com>2017-11-27 14:26:17 +0800
committerBoris Chiou <boris.chiou@gmail.com>2017-11-28 10:08:12 +0800
commit3a38e815ecbbcb7ae5ba93d9763894c4907fb87a (patch)
tree3cad321ed9202d0390de355b1c5afcf758808d28 /components/style/gecko/generated/bindings.rs
parentac6e04ebfbf27317fea00ea93e855520237b538d (diff)
downloadservo-3a38e815ecbbcb7ae5ba93d9763894c4907fb87a.tar.gz
servo-3a38e815ecbbcb7ae5ba93d9763894c4907fb87a.zip
Implement Servo_ParseTransformIntoMatrix.
DOMMatrix needs to convert a specified transform list into a matrix, so we could rewrite to_transform_3d_matrix by generics for both specified and computed transform lists. Besides, we have to update the test case because we use Transform3D<f64> to compute the matrix, instead of Transform3D<f32>, so the result will be the same as that in Gecko. Using 0.3 may cause floating point issue because (0.3f32 as f64) is not equal to 0.3 (i.e. floating point precision issue), so using 0.25 instead.
Diffstat (limited to 'components/style/gecko/generated/bindings.rs')
-rw-r--r--components/style/gecko/generated/bindings.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/style/gecko/generated/bindings.rs b/components/style/gecko/generated/bindings.rs
index 1e09fa42baf..536dd4e74a9 100644
--- a/components/style/gecko/generated/bindings.rs
+++ b/components/style/gecko/generated/bindings.rs
@@ -1578,6 +1578,8 @@ extern "C" {
} extern "C" {
pub fn Servo_ParseIntersectionObserverRootMargin ( value : * const nsAString , result : * mut nsCSSRect , ) -> bool ;
} extern "C" {
+ pub fn Servo_ParseTransformIntoMatrix ( value : * const nsAString , contains_3d_transform : * mut bool , result : * mut RawGeckoGfxMatrix4x4 , ) -> bool ;
+} extern "C" {
pub fn Gecko_CreateCSSErrorReporter ( sheet : * mut ServoStyleSheet , loader : * mut Loader , uri : * mut nsIURI , ) -> * mut ErrorReporter ;
} extern "C" {
pub fn Gecko_DestroyCSSErrorReporter ( reporter : * mut ErrorReporter , ) ;
@@ -1587,4 +1589,4 @@ extern "C" {
pub fn Gecko_ContentList_AppendAll ( aContentList : * mut nsSimpleContentList , aElements : * mut * const RawGeckoElement , aLength : usize , ) ;
} extern "C" {
pub fn Gecko_GetElementsWithId ( aDocument : * const nsIDocument , aId : * mut nsAtom , ) -> * const nsTArray < * mut Element > ;
-} \ No newline at end of file
+}