mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Don’t report CSS parsing errors from user-agent stylesheets.
This used to make `RUST_LOG=style` basically useless.
This commit is contained in:
parent
7fe57ecaea
commit
512944c32c
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ use style::context::{QuirksMode, ReflowGoal, SharedStyleContext};
|
||||||
use style::context::{StyleSystemOptions, ThreadLocalStyleContextCreationInfo};
|
use style::context::{StyleSystemOptions, ThreadLocalStyleContextCreationInfo};
|
||||||
use style::data::StoredRestyleHint;
|
use style::data::StoredRestyleHint;
|
||||||
use style::dom::{ShowSubtree, ShowSubtreeDataAndPrimaryValues, TElement, TNode};
|
use style::dom::{ShowSubtree, ShowSubtreeDataAndPrimaryValues, TElement, TNode};
|
||||||
use style::error_reporting::RustLogReporter;
|
use style::error_reporting::{NullReporter, RustLogReporter};
|
||||||
use style::logical_geometry::LogicalPoint;
|
use style::logical_geometry::LogicalPoint;
|
||||||
use style::media_queries::{Device, MediaList, MediaType};
|
use style::media_queries::{Device, MediaList, MediaType};
|
||||||
use style::servo::restyle_damage::{REFLOW, REFLOW_OUT_OF_FLOW, REPAINT, REPOSITION, STORE_OVERFLOW};
|
use style::servo::restyle_damage::{REFLOW, REFLOW_OUT_OF_FLOW, REPAINT, REPOSITION, STORE_OVERFLOW};
|
||||||
|
@ -1587,7 +1587,7 @@ fn get_ua_stylesheets() -> Result<UserAgentStylesheets, &'static str> {
|
||||||
MediaList::empty(),
|
MediaList::empty(),
|
||||||
shared_lock.clone(),
|
shared_lock.clone(),
|
||||||
None,
|
None,
|
||||||
&RustLogReporter))
|
&NullReporter))
|
||||||
}
|
}
|
||||||
|
|
||||||
let shared_lock = SharedRwLock::new();
|
let shared_lock = SharedRwLock::new();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue