diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-05-24 14:41:38 +0200 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-05-24 14:41:38 +0200 |
commit | a5139787deea92fab1c60c46c3abda4ef49a78e7 (patch) | |
tree | 77703ce0720a726bf894daf00cbffb4b15193b14 /components/script/dom/document.rs | |
parent | e18bf819059e4439d276b02083a60f6353aaa359 (diff) | |
download | servo-a5139787deea92fab1c60c46c3abda4ef49a78e7.tar.gz servo-a5139787deea92fab1c60c46c3abda4ef49a78e7.zip |
Stop storing CSS errors on the Document.
They are never read.
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index d204bd0d8c6..42708265325 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -2,7 +2,6 @@ * 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 devtools_traits::CSSError; use document_loader::{DocumentLoader, LoadType}; use dom::activation::{ActivationSource, synthetic_click_activation}; use dom::attr::{Attr, AttrValue}; @@ -232,8 +231,6 @@ pub struct Document { dom_complete: Cell<u64>, load_event_start: Cell<u64>, load_event_end: Cell<u64>, - /// Vector to store CSS errors - css_errors_store: DOMRefCell<Vec<CSSError>>, /// https://html.spec.whatwg.org/multipage/#concept-document-https-state https_state: Cell<HttpsState>, touchpad_pressure_phase: Cell<TouchpadPressurePhase>, @@ -332,10 +329,6 @@ impl Document { self.trigger_mozbrowser_event(MozBrowserEvent::SecurityChange(https_state)); } - pub fn report_css_error(&self, css_error: CSSError) { - self.css_errors_store.borrow_mut().push(css_error); - } - // https://html.spec.whatwg.org/multipage/#fully-active pub fn is_fully_active(&self) -> bool { let browsing_context = match self.browsing_context() { @@ -1705,7 +1698,6 @@ impl Document { dom_complete: Cell::new(Default::default()), load_event_start: Cell::new(Default::default()), load_event_end: Cell::new(Default::default()), - css_errors_store: DOMRefCell::new(vec![]), https_state: Cell::new(HttpsState::None), touchpad_pressure_phase: Cell::new(TouchpadPressurePhase::BeforeClick), origin: origin, |