mirror of
https://github.com/servo/servo.git
synced 2025-10-02 01:29:15 +01:00
Use StyleArc in the style system.
MozReview-Commit-ID: flF0fv9E9M
This commit is contained in:
parent
6d8fc600b8
commit
d78ca4c4f9
37 changed files with 49 additions and 54 deletions
|
@ -11,7 +11,7 @@ use std::borrow::Cow;
|
|||
use std::env;
|
||||
use std::fmt::Write;
|
||||
use std::ptr;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use std::sync::Mutex;
|
||||
use style::context::{QuirksMode, SharedStyleContext, StyleContext};
|
||||
use style::context::{ThreadLocalStyleContext, ThreadLocalStyleContextCreationInfo};
|
||||
use style::data::{ElementData, ElementStyles, RestyleData};
|
||||
|
@ -83,6 +83,7 @@ use style::sequential;
|
|||
use style::shared_lock::{SharedRwLock, SharedRwLockReadGuard, StylesheetGuards, ToCssWithGuard, Locked};
|
||||
use style::string_cache::Atom;
|
||||
use style::style_adjuster::StyleAdjuster;
|
||||
use style::stylearc::Arc;
|
||||
use style::stylesheets::{CssRule, CssRules, CssRuleType, CssRulesHelpers};
|
||||
use style::stylesheets::{ImportRule, MediaRule, NamespaceRule, Origin};
|
||||
use style::stylesheets::{PageRule, Stylesheet, StyleRule, SupportsRule};
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
use std::sync::Arc;
|
||||
use style::gecko_bindings::bindings::Gecko_LoadStyleSheet;
|
||||
use style::gecko_bindings::structs::{Loader, ServoStyleSheet};
|
||||
use style::gecko_bindings::sugar::ownership::{HasArcFFI, FFIArcHelpers};
|
||||
use style::media_queries::MediaList;
|
||||
use style::shared_lock::Locked;
|
||||
use style::stylearc::Arc;
|
||||
use style::stylesheets::{ImportRule, Stylesheet, StylesheetLoader as StyleStylesheetLoader};
|
||||
|
||||
pub struct StylesheetLoader(*mut Loader, *mut ServoStyleSheet);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue