Bug 1302949 - Add a method to Gecko bindings for comparing declaration blocks; r=Manishearth

MozReview-Commit-ID: EtX2oLXdGNm
This commit is contained in:
Brian Birtles 2016-09-15 16:09:54 +09:00 committed by Manish Goregaokar
parent 56e70aec51
commit 61bcc3a2ef
3 changed files with 22 additions and 0 deletions

View file

@ -413,6 +413,13 @@ pub extern "C" fn Servo_DeclarationBlock_Release(declarations: ServoDeclarationB
unsafe { GeckoDeclarationBlock::release(declarations) };
}
#[no_mangle]
pub extern "C" fn Servo_DeclarationBlock_Equals(a: ServoDeclarationBlockBorrowed,
b: ServoDeclarationBlockBorrowed)
-> bool {
GeckoDeclarationBlock::as_arc(&a) == GeckoDeclarationBlock::as_arc(&b)
}
#[no_mangle]
pub extern "C" fn Servo_DeclarationBlock_GetCache(declarations: ServoDeclarationBlockBorrowed)
-> *mut nsHTMLCSSStyleSheet {