mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
stylo: Honor CallerType for media query parsing.
So that matchMedia can parse internal stuff in Chrome code. Bug: 1410074 Reviewed-by: xidorn MozReview-Commit-ID: 6M4HHqVJ1dp
This commit is contained in:
parent
5da0a8d872
commit
21b314e633
2 changed files with 37 additions and 10 deletions
|
@ -14,6 +14,7 @@ use gecko_bindings::structs::mozilla::css::ErrorReporter;
|
|||
use gecko_bindings::structs::mozilla::css::ImageValue;
|
||||
use gecko_bindings::structs::mozilla::css::URLValue;
|
||||
use gecko_bindings::structs::mozilla::css::URLValueData;
|
||||
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;
|
||||
|
@ -2868,7 +2869,8 @@ extern "C" {
|
|||
}
|
||||
extern "C" {
|
||||
pub fn Servo_MediaList_SetText(list: RawServoMediaListBorrowed,
|
||||
text: *const nsACString);
|
||||
text: *const nsACString,
|
||||
aCallerType: CallerType);
|
||||
}
|
||||
extern "C" {
|
||||
pub fn Servo_MediaList_GetLength(list: RawServoMediaListBorrowed) -> u32;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue