mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
style: Forward webrender error log to gfxCriticalNote.
Bug: 1456350 Reviewed-by: bholley
This commit is contained in:
parent
29d5c47023
commit
146be22ada
4 changed files with 0 additions and 13 deletions
|
@ -17,7 +17,6 @@ gecko_debug = ["style/gecko_debug"]
|
||||||
atomic_refcell = "0.1"
|
atomic_refcell = "0.1"
|
||||||
cssparser = "0.23.0"
|
cssparser = "0.23.0"
|
||||||
cstr = "0.1.2"
|
cstr = "0.1.2"
|
||||||
env_logger = {version = "0.5", default-features = false} # disable `regex` to reduce code size
|
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
log = {version = "0.4", features = ["release_max_level_info"]}
|
log = {version = "0.4", features = ["release_max_level_info"]}
|
||||||
malloc_size_of = {path = "../../components/malloc_size_of"}
|
malloc_size_of = {path = "../../components/malloc_size_of"}
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
use cssparser::{ParseErrorKind, Parser, ParserInput, SourceLocation};
|
use cssparser::{ParseErrorKind, Parser, ParserInput, SourceLocation};
|
||||||
use cssparser::ToCss as ParserToCss;
|
use cssparser::ToCss as ParserToCss;
|
||||||
use env_logger::Builder;
|
|
||||||
use malloc_size_of::MallocSizeOfOps;
|
use malloc_size_of::MallocSizeOfOps;
|
||||||
use nsstring::nsCString;
|
use nsstring::nsCString;
|
||||||
use selectors::{NthIndexCache, SelectorList};
|
use selectors::{NthIndexCache, SelectorList};
|
||||||
|
@ -12,7 +11,6 @@ use selectors::matching::{MatchingContext, MatchingMode, matches_selector};
|
||||||
use servo_arc::{Arc, ArcBorrow, RawOffsetArc};
|
use servo_arc::{Arc, ArcBorrow, RawOffsetArc};
|
||||||
use smallvec::SmallVec;
|
use smallvec::SmallVec;
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
use std::env;
|
|
||||||
use std::fmt::Write;
|
use std::fmt::Write;
|
||||||
use std::iter;
|
use std::iter;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
@ -184,14 +182,6 @@ static mut DUMMY_URL_DATA: *mut URLExtraData = 0 as *mut URLExtraData;
|
||||||
pub extern "C" fn Servo_Initialize(dummy_url_data: *mut URLExtraData) {
|
pub extern "C" fn Servo_Initialize(dummy_url_data: *mut URLExtraData) {
|
||||||
use style::gecko_bindings::sugar::origin_flags;
|
use style::gecko_bindings::sugar::origin_flags;
|
||||||
|
|
||||||
// Initialize logging.
|
|
||||||
let mut builder = Builder::new();
|
|
||||||
let default_level = if cfg!(debug_assertions) { "warn" } else { "error" };
|
|
||||||
match env::var("RUST_LOG") {
|
|
||||||
Ok(v) => builder.parse(&v).init(),
|
|
||||||
_ => builder.parse(default_level).init(),
|
|
||||||
};
|
|
||||||
|
|
||||||
// Pretend that we're a Servo Layout thread, to make some assertions happy.
|
// Pretend that we're a Servo Layout thread, to make some assertions happy.
|
||||||
thread_state::initialize(thread_state::ThreadState::LAYOUT);
|
thread_state::initialize(thread_state::ThreadState::LAYOUT);
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
extern crate cssparser;
|
extern crate cssparser;
|
||||||
#[macro_use] extern crate cstr;
|
#[macro_use] extern crate cstr;
|
||||||
extern crate env_logger;
|
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
extern crate malloc_size_of;
|
extern crate malloc_size_of;
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
extern crate atomic_refcell;
|
extern crate atomic_refcell;
|
||||||
extern crate cssparser;
|
extern crate cssparser;
|
||||||
#[macro_use] extern crate cstr;
|
#[macro_use] extern crate cstr;
|
||||||
extern crate env_logger;
|
|
||||||
extern crate geckoservo;
|
extern crate geckoservo;
|
||||||
#[macro_use] extern crate log;
|
#[macro_use] extern crate log;
|
||||||
extern crate malloc_size_of;
|
extern crate malloc_size_of;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue