Update bindings.

This commit is contained in:
Hiroyuki Ikezoe 2017-10-10 06:34:36 +09:00
parent 175b88afcf
commit 1e5ee9d2d4
3 changed files with 657 additions and 514 deletions

View file

@ -1122,6 +1122,8 @@ cfg_if! {
pub static nsGkAtoms_integrity: *mut nsAtom;
#[link_name = "_ZN9nsGkAtoms12intersectionE"]
pub static nsGkAtoms_intersection: *mut nsAtom;
#[link_name = "_ZN9nsGkAtoms24intersectionobserverlistE"]
pub static nsGkAtoms_intersectionobserverlist: *mut nsAtom;
#[link_name = "_ZN9nsGkAtoms2isE"]
pub static nsGkAtoms_is: *mut nsAtom;
#[link_name = "_ZN9nsGkAtoms11iscontainerE"]
@ -6291,6 +6293,8 @@ cfg_if! {
pub static nsGkAtoms_integrity: *mut nsAtom;
#[link_name = "?intersection@nsGkAtoms@@2PEAVnsAtom@@EA"]
pub static nsGkAtoms_intersection: *mut nsAtom;
#[link_name = "?intersectionobserverlist@nsGkAtoms@@2PEAVnsAtom@@EA"]
pub static nsGkAtoms_intersectionobserverlist: *mut nsAtom;
#[link_name = "?is@nsGkAtoms@@2PEAVnsAtom@@EA"]
pub static nsGkAtoms_is: *mut nsAtom;
#[link_name = "?iscontainer@nsGkAtoms@@2PEAVnsAtom@@EA"]
@ -11460,6 +11464,8 @@ cfg_if! {
pub static nsGkAtoms_integrity: *mut nsAtom;
#[link_name = "\x01?intersection@nsGkAtoms@@2PAVnsAtom@@A"]
pub static nsGkAtoms_intersection: *mut nsAtom;
#[link_name = "\x01?intersectionobserverlist@nsGkAtoms@@2PAVnsAtom@@A"]
pub static nsGkAtoms_intersectionobserverlist: *mut nsAtom;
#[link_name = "\x01?is@nsGkAtoms@@2PAVnsAtom@@A"]
pub static nsGkAtoms_is: *mut nsAtom;
#[link_name = "\x01?iscontainer@nsGkAtoms@@2PAVnsAtom@@A"]
@ -16632,6 +16638,8 @@ macro_rules! atom {
{ unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_integrity as *mut _) } };
("intersection") =>
{ unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_intersection as *mut _) } };
("intersectionobserverlist") =>
{ unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_intersectionobserverlist as *mut _) } };
("is") =>
{ unsafe { $crate::string_cache::atom_macro::atom_from_static($crate::string_cache::atom_macro::nsGkAtoms_is as *mut _) } };
("iscontainer") =>

View file

@ -45,6 +45,7 @@ use gecko_bindings::structs::RawGeckoStyleChildrenIterator;
use gecko_bindings::structs::RawGeckoServoStyleRuleList;
use gecko_bindings::structs::RawGeckoURLExtraData;
use gecko_bindings::structs::RawGeckoXBLBinding;
use gecko_bindings::structs::RawServoSelectorList;
use gecko_bindings::structs::RefPtr;
use gecko_bindings::structs::RustString;
use gecko_bindings::structs::CSSPseudoClassType;
@ -250,6 +251,12 @@ pub type RawServoStyleSetBorrowedMut<'a> = &'a mut RawServoStyleSet;
pub type RawServoStyleSetBorrowedMutOrNull<'a> = Option<&'a mut RawServoStyleSet>;
enum RawServoStyleSetVoid { }
pub struct RawServoStyleSet(RawServoStyleSetVoid);
pub type RawServoSelectorListOwned = ::gecko_bindings::sugar::ownership::Owned<RawServoSelectorList>;
pub type RawServoSelectorListOwnedOrNull = ::gecko_bindings::sugar::ownership::OwnedOrNull<RawServoSelectorList>;
pub type RawServoSelectorListBorrowed<'a> = &'a RawServoSelectorList;
pub type RawServoSelectorListBorrowedOrNull<'a> = Option<&'a RawServoSelectorList>;
pub type RawServoSelectorListBorrowedMut<'a> = &'a mut RawServoSelectorList;
pub type RawServoSelectorListBorrowedMutOrNull<'a> = Option<&'a mut RawServoSelectorList>;
pub type ServoElementSnapshotOwned = ::gecko_bindings::sugar::ownership::Owned<ServoElementSnapshot>;
pub type ServoElementSnapshotOwnedOrNull = ::gecko_bindings::sugar::ownership::OwnedOrNull<ServoElementSnapshot>;
pub type ServoElementSnapshotBorrowed<'a> = &'a ServoElementSnapshot;
@ -514,6 +521,9 @@ extern "C" {
extern "C" {
pub fn Servo_StyleSet_Drop(ptr: RawServoStyleSetOwned);
}
extern "C" {
pub fn Servo_SelectorList_Drop(ptr: RawServoSelectorListOwned);
}
extern "C" {
pub fn Gecko_IsInDocument(node: RawGeckoNodeBorrowed) -> bool;
}
@ -628,9 +638,9 @@ extern "C" {
name: *mut nsAtom) -> bool;
}
extern "C" {
pub fn Gecko_AttrEquals(element: RawGeckoElementBorrowed,
ns: *mut nsAtom, name: *mut nsAtom,
str: *mut nsAtom, ignoreCase: bool) -> bool;
pub fn Gecko_AttrEquals(element: RawGeckoElementBorrowed, ns: *mut nsAtom,
name: *mut nsAtom, str: *mut nsAtom,
ignoreCase: bool) -> bool;
}
extern "C" {
pub fn Gecko_AttrDashEquals(element: RawGeckoElementBorrowed,
@ -665,8 +675,7 @@ extern "C" {
}
extern "C" {
pub fn Gecko_SnapshotAtomAttrValue(element: *const ServoElementSnapshot,
attribute: *mut nsAtom)
-> *mut nsAtom;
attribute: *mut nsAtom) -> *mut nsAtom;
}
extern "C" {
pub fn Gecko_SnapshotLangValue(element: *const ServoElementSnapshot)
@ -674,8 +683,7 @@ extern "C" {
}
extern "C" {
pub fn Gecko_SnapshotHasAttr(element: *const ServoElementSnapshot,
ns: *mut nsAtom, name: *mut nsAtom)
-> bool;
ns: *mut nsAtom, name: *mut nsAtom) -> bool;
}
extern "C" {
pub fn Gecko_SnapshotAttrEquals(element: *const ServoElementSnapshot,
@ -698,10 +706,9 @@ extern "C" {
extern "C" {
pub fn Gecko_SnapshotAttrHasSubstring(element:
*const ServoElementSnapshot,
ns: *mut nsAtom,
name: *mut nsAtom,
str: *mut nsAtom,
ignore_case: bool) -> bool;
ns: *mut nsAtom, name: *mut nsAtom,
str: *mut nsAtom, ignore_case: bool)
-> bool;
}
extern "C" {
pub fn Gecko_SnapshotAttrHasPrefix(element: *const ServoElementSnapshot,
@ -1015,8 +1022,7 @@ extern "C" {
aImageValue: *mut ImageValue);
}
extern "C" {
pub fn Gecko_SetImageElement(image: *mut nsStyleImage,
atom: *mut nsAtom);
pub fn Gecko_SetImageElement(image: *mut nsStyleImage, atom: *mut nsAtom);
}
extern "C" {
pub fn Gecko_CopyImageValueFrom(image: *mut nsStyleImage,
@ -1580,9 +1586,6 @@ extern "C" {
extern "C" {
pub fn Gecko_ShouldCreateStyleThreadPool() -> bool;
}
extern "C" {
pub fn Gecko_GetSystemPageSize() -> usize;
}
extern "C" {
pub fn Gecko_Construct_Default_nsStyleFont(ptr: *mut nsStyleFont,
pres_context:
@ -1902,6 +1905,10 @@ extern "C" {
extern "C" {
pub fn Gecko_SetJemallocThreadLocalArena(enabled: bool);
}
extern "C" {
pub fn Gecko_AddBufferToCrashReport(addr: *const ::std::os::raw::c_void,
len: usize);
}
extern "C" {
pub fn Servo_Element_ClearData(node: RawGeckoElementBorrowed);
}
@ -2090,6 +2097,15 @@ extern "C" {
RawServoDeclarationBlockBorrowed)
-> ServoStyleContextStrong;
}
extern "C" {
pub fn Servo_SelectorList_Parse(selector_list: *const nsACString)
-> *mut RawServoSelectorList;
}
extern "C" {
pub fn Servo_SelectorList_Matches(arg1: RawGeckoElementBorrowed,
arg2: RawServoSelectorListBorrowed)
-> bool;
}
extern "C" {
pub fn Servo_StyleSet_AddSizeOfExcludingThis(malloc_size_of: MallocSizeOf,
malloc_enclosing_size_of:

File diff suppressed because it is too large Load diff