mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Defined new trait ParseErrorReporter and added error_reporter member to ParserContext
This commit is contained in:
parent
8efc954531
commit
996e9e06b2
24 changed files with 194 additions and 69 deletions
|
@ -27,6 +27,7 @@ use std::rc::Rc;
|
|||
use std::sync::mpsc::{Sender, channel};
|
||||
use std::sync::{Arc, Mutex, RwLock};
|
||||
use style::selector_matching::Stylist;
|
||||
use style_traits::ParseErrorReporter;
|
||||
use url::Url;
|
||||
use util::mem::HeapSizeOf;
|
||||
use util::opts;
|
||||
|
@ -127,6 +128,9 @@ pub struct SharedLayoutContext {
|
|||
|
||||
/// Why is this reflow occurring
|
||||
pub goal: ReflowGoal,
|
||||
|
||||
///The CSS error reporter for all CSS loaded in this layout thread
|
||||
pub error_reporter: Box<ParseErrorReporter + Sync>
|
||||
}
|
||||
|
||||
pub struct LayoutContext<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue