mirror of
https://github.com/servo/servo.git
synced 2025-08-13 09:25:32 +01:00
Devirtualize nsIAtom.
This commit is contained in:
parent
0160aaeeea
commit
7019d42523
5 changed files with 13 additions and 18 deletions
|
@ -18,7 +18,6 @@ use gecko_bindings::structs::{nsCSSKeyword, nsCSSProps_KTableEntry, nsCSSValue,
|
|||
use gecko_bindings::structs::{nsMediaExpression_Range, nsMediaFeature};
|
||||
use gecko_bindings::structs::{nsMediaFeature_ValueType, nsMediaFeature_RangeType, nsMediaFeature_RequirementFlags};
|
||||
use gecko_bindings::structs::{nsPresContext, RawGeckoPresContextOwned};
|
||||
use gecko_bindings::structs::nsIAtom;
|
||||
use media_queries::MediaType;
|
||||
use parser::ParserContext;
|
||||
use properties::{ComputedValues, StyleBuilder};
|
||||
|
@ -165,7 +164,7 @@ impl Device {
|
|||
// mMediaEmulated.
|
||||
let context = self.pres_context();
|
||||
let medium_to_use = if context.mIsEmulatingMedia() != 0 {
|
||||
context.mMediaEmulated.raw::<nsIAtom>()
|
||||
context.mMediaEmulated.mRawPtr
|
||||
} else {
|
||||
context.mMedium
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue