mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Sync stylo bindings
This commit is contained in:
parent
877e480c47
commit
8b76bd7c19
3 changed files with 97 additions and 7 deletions
|
@ -276,7 +276,7 @@ extern "C" {
|
|||
pub fn Servo_StyleSheetHasRules(sheet: *mut RawServoStyleSheet) -> bool;
|
||||
pub fn Servo_InitStyleSet() -> *mut RawServoStyleSet;
|
||||
pub fn Servo_DropStyleSet(set: *mut RawServoStyleSet);
|
||||
pub fn Servo_ParseStyleAttribute(bytes: *const u8, length: u32,
|
||||
pub fn Servo_ParseStyleAttribute(bytes: *const u8, length: u8,
|
||||
cache: *mut nsHTMLCSSStyleSheet)
|
||||
-> *mut ServoDeclarationBlock;
|
||||
pub fn Servo_DropDeclarationBlock(declarations:
|
||||
|
|
|
@ -1537,15 +1537,30 @@ pub struct nsWritingIterator<CharT> {
|
|||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct nsStringComparator;
|
||||
pub struct nsStringComparator {
|
||||
pub _vftable: *const _vftable_nsStringComparator,
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct _vftable_nsStringComparator {
|
||||
pub _bindgen_empty_ctype_warning_fix: u64,
|
||||
}
|
||||
impl ::std::clone::Clone for nsStringComparator {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_nsStringComparator() {
|
||||
assert_eq!(::std::mem::size_of::<nsStringComparator>() , 8usize);
|
||||
assert_eq!(::std::mem::align_of::<nsStringComparator>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct nsDefaultStringComparator {
|
||||
pub _base: nsStringComparator,
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct _vftable_nsDefaultStringComparator {
|
||||
pub _base: _vftable_nsStringComparator,
|
||||
}
|
||||
impl ::std::clone::Clone for nsDefaultStringComparator {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
|
@ -1575,15 +1590,30 @@ fn bindgen_test_layout_nsAString_internal() {
|
|||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct nsCStringComparator;
|
||||
pub struct nsCStringComparator {
|
||||
pub _vftable: *const _vftable_nsCStringComparator,
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct _vftable_nsCStringComparator {
|
||||
pub _bindgen_empty_ctype_warning_fix: u64,
|
||||
}
|
||||
impl ::std::clone::Clone for nsCStringComparator {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_nsCStringComparator() {
|
||||
assert_eq!(::std::mem::size_of::<nsCStringComparator>() , 8usize);
|
||||
assert_eq!(::std::mem::align_of::<nsCStringComparator>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct nsDefaultCStringComparator {
|
||||
pub _base: nsCStringComparator,
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct _vftable_nsDefaultCStringComparator {
|
||||
pub _base: _vftable_nsCStringComparator,
|
||||
}
|
||||
impl ::std::clone::Clone for nsDefaultCStringComparator {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
|
@ -1620,6 +1650,10 @@ fn bindgen_test_layout_nsACString_internal() {
|
|||
pub struct nsCaseInsensitiveCStringComparator {
|
||||
pub _base: nsCStringComparator,
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct _vftable_nsCaseInsensitiveCStringComparator {
|
||||
pub _base: _vftable_nsCStringComparator,
|
||||
}
|
||||
impl ::std::clone::Clone for nsCaseInsensitiveCStringComparator {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
|
@ -2211,10 +2245,21 @@ pub struct nsTArray<T> {
|
|||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct nsCOMPtr_helper;
|
||||
pub struct nsCOMPtr_helper {
|
||||
pub _vftable: *const _vftable_nsCOMPtr_helper,
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct _vftable_nsCOMPtr_helper {
|
||||
pub _bindgen_empty_ctype_warning_fix: u64,
|
||||
}
|
||||
impl ::std::clone::Clone for nsCOMPtr_helper {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_nsCOMPtr_helper() {
|
||||
assert_eq!(::std::mem::size_of::<nsCOMPtr_helper>() , 8usize);
|
||||
assert_eq!(::std::mem::align_of::<nsCOMPtr_helper>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct nsQueryInterface {
|
||||
|
|
|
@ -1537,15 +1537,30 @@ pub struct nsWritingIterator<CharT> {
|
|||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct nsStringComparator;
|
||||
pub struct nsStringComparator {
|
||||
pub _vftable: *const _vftable_nsStringComparator,
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct _vftable_nsStringComparator {
|
||||
pub _bindgen_empty_ctype_warning_fix: u64,
|
||||
}
|
||||
impl ::std::clone::Clone for nsStringComparator {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_nsStringComparator() {
|
||||
assert_eq!(::std::mem::size_of::<nsStringComparator>() , 8usize);
|
||||
assert_eq!(::std::mem::align_of::<nsStringComparator>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct nsDefaultStringComparator {
|
||||
pub _base: nsStringComparator,
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct _vftable_nsDefaultStringComparator {
|
||||
pub _base: _vftable_nsStringComparator,
|
||||
}
|
||||
impl ::std::clone::Clone for nsDefaultStringComparator {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
|
@ -1575,15 +1590,30 @@ fn bindgen_test_layout_nsAString_internal() {
|
|||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct nsCStringComparator;
|
||||
pub struct nsCStringComparator {
|
||||
pub _vftable: *const _vftable_nsCStringComparator,
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct _vftable_nsCStringComparator {
|
||||
pub _bindgen_empty_ctype_warning_fix: u64,
|
||||
}
|
||||
impl ::std::clone::Clone for nsCStringComparator {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_nsCStringComparator() {
|
||||
assert_eq!(::std::mem::size_of::<nsCStringComparator>() , 8usize);
|
||||
assert_eq!(::std::mem::align_of::<nsCStringComparator>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct nsDefaultCStringComparator {
|
||||
pub _base: nsCStringComparator,
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct _vftable_nsDefaultCStringComparator {
|
||||
pub _base: _vftable_nsCStringComparator,
|
||||
}
|
||||
impl ::std::clone::Clone for nsDefaultCStringComparator {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
|
@ -1620,6 +1650,10 @@ fn bindgen_test_layout_nsACString_internal() {
|
|||
pub struct nsCaseInsensitiveCStringComparator {
|
||||
pub _base: nsCStringComparator,
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct _vftable_nsCaseInsensitiveCStringComparator {
|
||||
pub _base: _vftable_nsCStringComparator,
|
||||
}
|
||||
impl ::std::clone::Clone for nsCaseInsensitiveCStringComparator {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
|
@ -2211,10 +2245,21 @@ pub struct nsTArray<T> {
|
|||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct nsCOMPtr_helper;
|
||||
pub struct nsCOMPtr_helper {
|
||||
pub _vftable: *const _vftable_nsCOMPtr_helper,
|
||||
}
|
||||
#[repr(C)]
|
||||
pub struct _vftable_nsCOMPtr_helper {
|
||||
pub _bindgen_empty_ctype_warning_fix: u64,
|
||||
}
|
||||
impl ::std::clone::Clone for nsCOMPtr_helper {
|
||||
fn clone(&self) -> Self { *self }
|
||||
}
|
||||
#[test]
|
||||
fn bindgen_test_layout_nsCOMPtr_helper() {
|
||||
assert_eq!(::std::mem::size_of::<nsCOMPtr_helper>() , 8usize);
|
||||
assert_eq!(::std::mem::align_of::<nsCOMPtr_helper>() , 8usize);
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct nsQueryInterface {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue