mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Parse sheets on the thread pool.
Note that we also drop the dead optional aReusableSheets argument from the async parsing path, since it was always null. Bug: 1346988 Reviewed-by: bz,emilio MozReview-Commit-ID: KddpGFdaqEe
This commit is contained in:
parent
c06e3dcd58
commit
dfa019c884
5 changed files with 152 additions and 21 deletions
|
@ -312,3 +312,9 @@ impl_threadsafe_refcount!(
|
|||
Gecko_AddRefSharedFontListArbitraryThread,
|
||||
Gecko_ReleaseSharedFontListArbitraryThread
|
||||
);
|
||||
|
||||
impl_threadsafe_refcount!(
|
||||
::gecko_bindings::structs::SheetLoadDataHolder,
|
||||
Gecko_AddRefSheetLoadDataHolderArbitraryThread,
|
||||
Gecko_ReleaseSheetLoadDataHolderArbitraryThread
|
||||
);
|
||||
|
|
|
@ -171,10 +171,9 @@ pub struct ImportRule {
|
|||
/// The `<url>` this `@import` rule is loading.
|
||||
pub url: CssUrl,
|
||||
|
||||
/// The stylesheet is always present.
|
||||
///
|
||||
/// It contains an empty list of rules and namespace set that is updated
|
||||
/// when it loads.
|
||||
/// The stylesheet is always present. However, in the case of gecko async
|
||||
/// parsing, we don't actually have a Gecko sheet at first, and so the
|
||||
/// ImportSheet just has stub behavior until it appears.
|
||||
pub stylesheet: ImportSheet,
|
||||
|
||||
/// The line and column of the rule's source code.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue