Skip to content

Commit

Permalink
Update bindings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroyuki Ikezoe committed Oct 9, 2017
1 parent 175b88a commit 1e5ee9d
Show file tree
Hide file tree
Showing 3 changed files with 657 additions and 514 deletions.
8 changes: 8 additions & 0 deletions components/style/gecko/generated/atom_macro.rs
Expand Up @@ -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"]
Expand Down Expand Up @@ -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"]
Expand Down Expand Up @@ -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"]
Expand Down Expand Up @@ -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") =>
Expand Down
48 changes: 32 additions & 16 deletions components/style/gecko/generated/bindings.rs
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -665,17 +675,15 @@ 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)
-> *mut nsAtom;
}
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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1e5ee9d

Please sign in to comment.