mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Auto merge of #19973 - emilio:media-feature-change, r=xidorn
style: Rework how media feature changes are handled for XBL. Bug: 1435939 Reviewed-by: xidorn <!-- 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/19973) <!-- Reviewable:end -->
This commit is contained in:
commit
e57319a734
4 changed files with 851 additions and 725 deletions
|
@ -18,6 +18,7 @@ use gecko_bindings::structs::mozilla::dom::CallerType;
|
|||
use gecko_bindings::structs::mozilla::AnonymousCounterStyle;
|
||||
use gecko_bindings::structs::mozilla::AtomArray;
|
||||
use gecko_bindings::structs::mozilla::MallocSizeOf;
|
||||
use gecko_bindings::structs::mozilla::ServoStyleSet;
|
||||
use gecko_bindings::structs::mozilla::OriginFlags;
|
||||
use gecko_bindings::structs::mozilla::UniquePtr;
|
||||
use gecko_bindings::structs::ServoRawOffsetArc;
|
||||
|
@ -25,6 +26,7 @@ use gecko_bindings::structs::nsIContent;
|
|||
use gecko_bindings::structs::nsIDocument;
|
||||
use gecko_bindings::structs::nsIDocument_DocumentTheme;
|
||||
use gecko_bindings::structs::nsSimpleContentList;
|
||||
use gecko_bindings::structs::MediumFeaturesChangedResult;
|
||||
use gecko_bindings::structs::RawGeckoAnimationPropertySegment;
|
||||
use gecko_bindings::structs::RawGeckoComputedTiming;
|
||||
use gecko_bindings::structs::RawGeckoCSSPropertyIDList;
|
||||
|
@ -2097,15 +2099,10 @@ extern "C" {
|
|||
}
|
||||
extern "C" {
|
||||
pub fn Servo_StyleSet_MediumFeaturesChanged(
|
||||
set: RawServoStyleSetBorrowed,
|
||||
viewport_units_used: *mut bool,
|
||||
) -> u8;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_StyleSet_SetDevice(
|
||||
set: RawServoStyleSetBorrowed,
|
||||
pres_context: RawGeckoPresContextOwned,
|
||||
) -> u8;
|
||||
document_set: RawServoStyleSetBorrowed,
|
||||
non_document_sets: *const nsTArray<*mut ServoStyleSet>,
|
||||
may_affect_default_style: bool,
|
||||
) -> MediumFeaturesChangedResult;
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_StyleSet_CompatModeChanged(raw_data: RawServoStyleSetBorrowed);
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue