mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Rewrite CounterStyleOrNone::from_gecko_value to use fewer binding functions
This commit is contained in:
parent
473934c989
commit
65c2047df2
6 changed files with 1442 additions and 1329 deletions
|
@ -14,6 +14,7 @@ use gecko_bindings::structs::mozilla::css::ErrorReporter;
|
|||
use gecko_bindings::structs::mozilla::css::ImageValue;
|
||||
use gecko_bindings::structs::mozilla::css::URLValue;
|
||||
use gecko_bindings::structs::mozilla::css::URLValueData;
|
||||
use gecko_bindings::structs::mozilla::AnonymousCounterStyle;
|
||||
use gecko_bindings::structs::mozilla::MallocSizeOf;
|
||||
use gecko_bindings::structs::mozilla::OriginFlags;
|
||||
use gecko_bindings::structs::mozilla::Side;
|
||||
|
@ -971,29 +972,12 @@ extern "C" {
|
|||
src: *const CounterStylePtr);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_CounterStyle_IsNone(ptr: *const CounterStylePtr) -> bool;
|
||||
pub fn Gecko_CounterStyle_GetName(ptr: *const CounterStylePtr)
|
||||
-> *mut nsIAtom;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_CounterStyle_IsName(ptr: *const CounterStylePtr) -> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_CounterStyle_GetName(ptr: *const CounterStylePtr,
|
||||
result: *mut nsAString);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_CounterStyle_GetSymbols(ptr: *const CounterStylePtr)
|
||||
-> *const nsTArray<nsStringRepr>;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_CounterStyle_GetSystem(ptr: *const CounterStylePtr) -> u8;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_CounterStyle_IsSingleString(ptr: *const CounterStylePtr)
|
||||
-> bool;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_CounterStyle_GetSingleString(ptr: *const CounterStylePtr,
|
||||
result: *mut nsAString);
|
||||
pub fn Gecko_CounterStyle_GetAnonymous(ptr: *const CounterStylePtr)
|
||||
-> *const AnonymousCounterStyle;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Gecko_SetNullImageValue(image: *mut nsStyleImage);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue