Record viewport unit usage and generate proper restyle hint.

This commit is contained in:
Xidorn Quan 2017-07-25 18:20:50 +10:00
parent bf16b146e8
commit 388875ca44
4 changed files with 30 additions and 5 deletions

View file

@ -1921,8 +1921,9 @@ extern "C" {
pub fn Servo_StyleSet_RebuildData(set: RawServoStyleSetBorrowed);
}
extern "C" {
pub fn Servo_StyleSet_MediumFeaturesChanged(set: RawServoStyleSetBorrowed)
-> bool;
pub fn Servo_StyleSet_MediumFeaturesChanged(set: RawServoStyleSetBorrowed,
viewport_changed: bool)
-> nsRestyleHint;
}
extern "C" {
pub fn Servo_StyleSet_CompatModeChanged(raw_data: