Add an author_style_disabled flag to stylist.update, and associated structs.

MozReview-Commit-ID: FiXyEN4xVnU
This commit is contained in:
Brad Werth 2017-04-11 15:48:38 +08:00 committed by Brad Werth
parent 54e691b2aa
commit 91a9fb06c7
5 changed files with 29 additions and 3 deletions

View file

@ -645,9 +645,11 @@ pub extern "C" fn Servo_StyleSet_FlushStyleSheets(raw_data: RawServoStyleSetBorr
}
#[no_mangle]
pub extern "C" fn Servo_StyleSet_NoteStyleSheetsChanged(raw_data: RawServoStyleSetBorrowed) {
pub extern "C" fn Servo_StyleSet_NoteStyleSheetsChanged(raw_data: RawServoStyleSetBorrowed,
author_style_disabled: bool) {
let mut data = PerDocumentStyleData::from_ffi(raw_data).borrow_mut();
data.stylesheets_changed = true;
data.author_style_disabled = author_style_disabled;
}
#[no_mangle]