mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Add insertRule/deleteRule support for stylo
This commit is contained in:
parent
22c8df150a
commit
bddd467c0e
4 changed files with 54 additions and 3 deletions
|
@ -71,7 +71,6 @@ use gecko_bindings::structs::SheetParsingMode;
|
|||
use gecko_bindings::structs::StyleBasicShape;
|
||||
use gecko_bindings::structs::StyleBasicShapeType;
|
||||
use gecko_bindings::structs::StyleClipPath;
|
||||
use gecko_bindings::structs::nscoord;
|
||||
use gecko_bindings::structs::nsCSSKeyword;
|
||||
use gecko_bindings::structs::nsCSSShadowArray;
|
||||
use gecko_bindings::structs::nsCSSValue;
|
||||
|
@ -200,6 +199,8 @@ unsafe impl Sync for nsStyleVisibility {}
|
|||
use gecko_bindings::structs::nsStyleXUL;
|
||||
unsafe impl Send for nsStyleXUL {}
|
||||
unsafe impl Sync for nsStyleXUL {}
|
||||
use gecko_bindings::structs::nscoord;
|
||||
use gecko_bindings::structs::nsresult;
|
||||
|
||||
#[repr(i32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
|
@ -1025,6 +1026,17 @@ extern "C" {
|
|||
index: u32)
|
||||
-> RawServoStyleRuleStrong;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_CssRules_InsertRule(rules: ServoCssRulesBorrowed,
|
||||
sheet: RawServoStyleSheetBorrowed,
|
||||
rule: *const nsACString_internal,
|
||||
index: u32, nested: bool,
|
||||
rule_type: *mut u16) -> nsresult;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_CssRules_DeleteRule(rules: ServoCssRulesBorrowed, index: u32)
|
||||
-> nsresult;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_StyleRule_Debug(rule: RawServoStyleRuleBorrowed,
|
||||
result: *mut nsACString_internal);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue