Pass a RawServoStyleSet to Servo_GetComputedValuesForAnonymousBox.

This commit is contained in:
Bobby Holley 2016-04-26 12:35:13 -07:00
parent fb0237d85c
commit 2c63de2492
2 changed files with 5 additions and 3 deletions

View file

@ -25,7 +25,6 @@ use gecko_style_structs::nsStyleSVGReset;
use gecko_style_structs::nsStyleColumn; use gecko_style_structs::nsStyleColumn;
use gecko_style_structs::nsStyleEffects; use gecko_style_structs::nsStyleEffects;
pub enum nsIAtom { } pub enum nsIAtom { }
pub enum nsINode { } pub enum nsINode { }
pub type RawGeckoNode = nsINode; pub type RawGeckoNode = nsINode;
@ -86,7 +85,8 @@ extern "C" {
-> *mut ServoComputedValues; -> *mut ServoComputedValues;
pub fn Servo_GetComputedValuesForAnonymousBox(parentStyleOrNull: pub fn Servo_GetComputedValuesForAnonymousBox(parentStyleOrNull:
*mut ServoComputedValues, *mut ServoComputedValues,
pseudoTag: *mut nsIAtom) pseudoTag: *mut nsIAtom,
set: *mut RawServoStyleSet)
-> *mut ServoComputedValues; -> *mut ServoComputedValues;
pub fn Servo_AddRefComputedValues(arg1: *mut ServoComputedValues); pub fn Servo_AddRefComputedValues(arg1: *mut ServoComputedValues);
pub fn Servo_ReleaseComputedValues(arg1: *mut ServoComputedValues); pub fn Servo_ReleaseComputedValues(arg1: *mut ServoComputedValues);

View file

@ -182,8 +182,10 @@ pub extern "C" fn Servo_GetComputedValues(element: *mut RawGeckoElement)
#[no_mangle] #[no_mangle]
pub extern "C" fn Servo_GetComputedValuesForAnonymousBox(_parentStyleOrNull: *mut ServoComputedValues, pub extern "C" fn Servo_GetComputedValuesForAnonymousBox(_parentStyleOrNull: *mut ServoComputedValues,
_pseudoTag: *mut nsIAtom) _pseudoTag: *mut nsIAtom,
raw_data: *mut RawServoStyleSet)
-> *mut ServoComputedValues { -> *mut ServoComputedValues {
let _data = PerDocumentStyleData::borrow_mut_from_raw(raw_data);
unimplemented!(); unimplemented!();
} }