Auto merge of #18877 - emilio:closest-why, r=nox

stylo: Dumb down the return value of SelectorList_Closest.

So it builds with rust 1.21.

See: https://bugzilla.mozilla.org/show_bug.cgi?id=1408622

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18877)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-10-14 08:13:59 -05:00 committed by GitHub
commit 8b6207c0d6
2 changed files with 31 additions and 20 deletions

View file

@ -1921,6 +1921,11 @@ extern "C" {
pub fn Gecko_AddBufferToCrashReport(addr: *const ::std::os::raw::c_void,
len: usize);
}
extern "C" {
pub fn Gecko_AnnotateCrashReport(key_str: *const ::std::os::raw::c_char,
value_str:
*const ::std::os::raw::c_char);
}
extern "C" {
pub fn Servo_Element_ClearData(node: RawGeckoElementBorrowed);
}
@ -2118,6 +2123,11 @@ extern "C" {
arg2: RawServoSelectorListBorrowed)
-> bool;
}
extern "C" {
pub fn Servo_SelectorList_Closest(arg1: RawGeckoElementBorrowed,
arg2: RawServoSelectorListBorrowed)
-> *const RawGeckoElement;
}
extern "C" {
pub fn Servo_StyleSet_AddSizeOfExcludingThis(malloc_size_of: MallocSizeOf,
malloc_enclosing_size_of: