mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Bug 1328787 - Part 6: Update build_gecko.rs and bindings. r=heycam
'RawServoDeclarationBlock' in structs_types in build_gecko.rs and the change in conversion.rs are needed for using set_arc_leaky() for PropertyValuePair.mServoDeclarationBlock. Without this change, mServoDeclarationBlock.set_arc_leaky() is called against RawServoDeclarationBlockVoid. MozReview-Commit-ID: FZkZ0OclXcP
This commit is contained in:
parent
092440b3b6
commit
a4cafe7106
2 changed files with 10 additions and 1 deletions
|
@ -232,6 +232,7 @@ mod bindings {
|
||||||
.include(add_include("gfxFontConstants.h"))
|
.include(add_include("gfxFontConstants.h"))
|
||||||
.include(add_include("nsThemeConstants.h"))
|
.include(add_include("nsThemeConstants.h"))
|
||||||
.include(add_include("mozilla/dom/AnimationEffectReadOnlyBinding.h"))
|
.include(add_include("mozilla/dom/AnimationEffectReadOnlyBinding.h"))
|
||||||
|
.include(add_include("mozilla/Keyframe.h"))
|
||||||
.include(add_include("mozilla/ServoElementSnapshot.h"))
|
.include(add_include("mozilla/ServoElementSnapshot.h"))
|
||||||
.include(add_include("mozilla/dom/Element.h"))
|
.include(add_include("mozilla/dom/Element.h"))
|
||||||
.include(add_include("mozilla/ServoBindings.h"))
|
.include(add_include("mozilla/ServoBindings.h"))
|
||||||
|
@ -288,6 +289,7 @@ mod bindings {
|
||||||
"HalfCorner",
|
"HalfCorner",
|
||||||
"Image",
|
"Image",
|
||||||
"ImageURL",
|
"ImageURL",
|
||||||
|
"Keyframe",
|
||||||
"nsAttrName",
|
"nsAttrName",
|
||||||
"nsAttrValue",
|
"nsAttrValue",
|
||||||
"nsBorderColors",
|
"nsBorderColors",
|
||||||
|
@ -362,6 +364,7 @@ mod bindings {
|
||||||
"nsTArray",
|
"nsTArray",
|
||||||
"nsTArrayHeader",
|
"nsTArrayHeader",
|
||||||
"Position",
|
"Position",
|
||||||
|
"PropertyValuePair",
|
||||||
"Runnable",
|
"Runnable",
|
||||||
"ServoAttrSnapshot",
|
"ServoAttrSnapshot",
|
||||||
"ServoElementSnapshot",
|
"ServoElementSnapshot",
|
||||||
|
@ -489,9 +492,11 @@ mod bindings {
|
||||||
let structs_types = [
|
let structs_types = [
|
||||||
"RawGeckoDocument",
|
"RawGeckoDocument",
|
||||||
"RawGeckoElement",
|
"RawGeckoElement",
|
||||||
|
"RawGeckoKeyframeList",
|
||||||
"RawGeckoNode",
|
"RawGeckoNode",
|
||||||
"RawGeckoAnimationValueList",
|
"RawGeckoAnimationValueList",
|
||||||
"RawServoAnimationValue",
|
"RawServoAnimationValue",
|
||||||
|
"RawServoDeclarationBlock",
|
||||||
"RawGeckoPresContext",
|
"RawGeckoPresContext",
|
||||||
"RawGeckoPresContextOwned",
|
"RawGeckoPresContextOwned",
|
||||||
"ThreadSafeURIHolder",
|
"ThreadSafeURIHolder",
|
||||||
|
@ -500,6 +505,7 @@ mod bindings {
|
||||||
"TraversalRootBehavior",
|
"TraversalRootBehavior",
|
||||||
"FontFamilyList",
|
"FontFamilyList",
|
||||||
"FontFamilyType",
|
"FontFamilyType",
|
||||||
|
"Keyframe",
|
||||||
"ServoElementSnapshot",
|
"ServoElementSnapshot",
|
||||||
"SheetParsingMode",
|
"SheetParsingMode",
|
||||||
"StyleBasicShape",
|
"StyleBasicShape",
|
||||||
|
@ -554,6 +560,7 @@ mod bindings {
|
||||||
"nsStyleVariables",
|
"nsStyleVariables",
|
||||||
"nsStyleVisibility",
|
"nsStyleVisibility",
|
||||||
"nsStyleXUL",
|
"nsStyleXUL",
|
||||||
|
"nsTimingFunction",
|
||||||
"nscoord",
|
"nscoord",
|
||||||
"nsresult",
|
"nsresult",
|
||||||
"Loader",
|
"Loader",
|
||||||
|
@ -596,6 +603,7 @@ mod bindings {
|
||||||
let servo_borrow_types = [
|
let servo_borrow_types = [
|
||||||
"nsCSSValue",
|
"nsCSSValue",
|
||||||
"RawGeckoAnimationValueList",
|
"RawGeckoAnimationValueList",
|
||||||
|
"RawGeckoKeyframeList",
|
||||||
];
|
];
|
||||||
for &ty in structs_types.iter() {
|
for &ty in structs_types.iter() {
|
||||||
builder = builder.hide_type(ty)
|
builder = builder.hide_type(ty)
|
||||||
|
|
|
@ -11,9 +11,10 @@
|
||||||
use app_units::Au;
|
use app_units::Au;
|
||||||
use gecko::values::convert_rgba_to_nscolor;
|
use gecko::values::convert_rgba_to_nscolor;
|
||||||
use gecko_bindings::bindings::{Gecko_CreateGradient, Gecko_SetGradientImageValue, Gecko_SetUrlImageValue};
|
use gecko_bindings::bindings::{Gecko_CreateGradient, Gecko_SetGradientImageValue, Gecko_SetUrlImageValue};
|
||||||
use gecko_bindings::bindings::{RawServoStyleSheet, RawServoDeclarationBlock, RawServoStyleRule, RawServoImportRule};
|
use gecko_bindings::bindings::{RawServoStyleSheet, RawServoStyleRule, RawServoImportRule};
|
||||||
use gecko_bindings::bindings::{ServoComputedValues, ServoCssRules};
|
use gecko_bindings::bindings::{ServoComputedValues, ServoCssRules};
|
||||||
use gecko_bindings::structs::{nsStyleCoord_CalcValue, nsStyleImage};
|
use gecko_bindings::structs::{nsStyleCoord_CalcValue, nsStyleImage};
|
||||||
|
use gecko_bindings::structs::RawServoDeclarationBlock;
|
||||||
use gecko_bindings::structs::nsresult;
|
use gecko_bindings::structs::nsresult;
|
||||||
use gecko_bindings::sugar::ns_style_coord::{CoordDataValue, CoordDataMut};
|
use gecko_bindings::sugar::ns_style_coord::{CoordDataValue, CoordDataMut};
|
||||||
use gecko_bindings::sugar::ownership::{HasArcFFI, HasFFI};
|
use gecko_bindings::sugar::ownership::{HasArcFFI, HasFFI};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue