Bug 1332969: stylo: Synchronously do a style update when the device changes.

Ideally this would be lazy, but eventually we're going to need to restyle in
RebuildAllStyleData anyway, which would require us to have the style up to date,
so no need to complicate our lives.

MozReview-Commit-ID: AlmUGRCNm2z
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
Emilio Cobos Álvarez 2017-01-23 18:46:27 +01:00
parent 7e2329ea4e
commit d29fade4c2
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 15 additions and 20 deletions

View file

@ -685,7 +685,7 @@ pub extern "C" fn Servo_StyleSet_Init(pres_context: RawGeckoPresContextOwned)
#[no_mangle]
pub extern "C" fn Servo_StyleSet_RebuildData(raw_data: RawServoStyleSetBorrowed) {
let mut data = PerDocumentStyleData::from_ffi(raw_data).borrow_mut();
data.device_changed = true;
data.reset_device();
}
#[no_mangle]