mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Merge ServoStyleSheet and StyleSheet.
These are the most minimal changes I could make. More cleanups incoming. Bug: 1457920 Reviewed-by: xidorn MozReview-Commit-ID: AdMOA1acQIH
This commit is contained in:
parent
4f161d9339
commit
9ed48952f5
1 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ use context::QuirksMode;
|
||||||
use dom::TElement;
|
use dom::TElement;
|
||||||
use gecko_bindings::bindings::{self, RawServoStyleSet};
|
use gecko_bindings::bindings::{self, RawServoStyleSet};
|
||||||
use gecko_bindings::structs::{self, RawGeckoPresContextOwned, ServoStyleSetSizes, ServoStyleSheet};
|
use gecko_bindings::structs::{self, RawGeckoPresContextOwned, ServoStyleSetSizes, ServoStyleSheet};
|
||||||
use gecko_bindings::structs::{ServoStyleSheetInner, StyleSheetInfo, nsIDocument};
|
use gecko_bindings::structs::{StyleSheetInfo, nsIDocument};
|
||||||
use gecko_bindings::sugar::ownership::{HasArcFFI, HasBoxFFI, HasFFI, HasSimpleFFI};
|
use gecko_bindings::sugar::ownership::{HasArcFFI, HasBoxFFI, HasFFI, HasSimpleFFI};
|
||||||
use invalidation::media_queries::{MediaListKey, ToMediaListKey};
|
use invalidation::media_queries::{MediaListKey, ToMediaListKey};
|
||||||
use malloc_size_of::MallocSizeOfOps;
|
use malloc_size_of::MallocSizeOfOps;
|
||||||
|
@ -54,9 +54,9 @@ impl GeckoStyleSheet {
|
||||||
unsafe { &*self.0 }
|
unsafe { &*self.0 }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn inner(&self) -> &ServoStyleSheetInner {
|
fn inner(&self) -> &StyleSheetInfo {
|
||||||
unsafe {
|
unsafe {
|
||||||
&*(self.raw()._base.mInner as *const StyleSheetInfo as *const ServoStyleSheetInner)
|
&*(self.raw().mInner as *const StyleSheetInfo)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ impl StylesheetInDocument for GeckoStyleSheet {
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
let dom_media_list = self.raw()._base.mMedia.mRawPtr as *const DomMediaList;
|
let dom_media_list = self.raw().mMedia.mRawPtr as *const DomMediaList;
|
||||||
if dom_media_list.is_null() {
|
if dom_media_list.is_null() {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue