diff options
28 files changed, 20 insertions, 152 deletions
diff --git a/components/script/dom/abstractworker.rs b/components/script/dom/abstractworker.rs index ee8ee31abc0..8d92680fbed 100644 --- a/components/script/dom/abstractworker.rs +++ b/components/script/dom/abstractworker.rs @@ -31,7 +31,7 @@ impl<T: DomObject> SimpleWorkerErrorHandler<T> { #[derive(Copy, Clone)] pub struct SharedRt { - pub rt: *mut JSRuntime + rt: *mut JSRuntime } impl SharedRt { @@ -47,10 +47,6 @@ impl SharedRt { JS_RequestInterruptCallback(self.rt); } } - - pub fn rt(&self) -> *mut JSRuntime { - self.rt - } } #[allow(unsafe_code)] unsafe impl Send for SharedRt {} diff --git a/components/script/dom/beforeunloadevent.rs b/components/script/dom/beforeunloadevent.rs index c79ca70c28e..d9162002016 100644 --- a/components/script/dom/beforeunloadevent.rs +++ b/components/script/dom/beforeunloadevent.rs @@ -2,6 +2,8 @@ * 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/. */ +#![allow(dead_code)] + use dom::bindings::cell::DOMRefCell; use dom::bindings::codegen::Bindings::BeforeUnloadEventBinding; use dom::bindings::codegen::Bindings::BeforeUnloadEventBinding::BeforeUnloadEventMethods; diff --git a/components/script/dom/bindings/constant.rs b/components/script/dom/bindings/constant.rs index 7d453a1fd09..42f10055080 100644 --- a/components/script/dom/bindings/constant.rs +++ b/components/script/dom/bindings/constant.rs @@ -20,6 +20,7 @@ pub struct ConstantSpec { /// Representation of an IDL constant value. #[derive(Clone)] +#[allow(dead_code)] pub enum ConstantVal { /// `long` constant. IntVal(i32), diff --git a/components/script/dom/bindings/mod.rs b/components/script/dom/bindings/mod.rs index 8d92c507423..4e7920828dd 100644 --- a/components/script/dom/bindings/mod.rs +++ b/components/script/dom/bindings/mod.rs @@ -157,7 +157,7 @@ pub mod weakref; pub mod xmlname; /// Generated JS-Rust bindings. -#[allow(missing_docs, non_snake_case)] +#[allow(dead_code, missing_docs, non_snake_case)] pub mod codegen { #[allow(unrooted_must_root)] pub mod Bindings { diff --git a/components/script/dom/cssgroupingrule.rs b/components/script/dom/cssgroupingrule.rs index 64b47142892..b793b04b28c 100644 --- a/components/script/dom/cssgroupingrule.rs +++ b/components/script/dom/cssgroupingrule.rs @@ -2,17 +2,15 @@ * 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 dom::bindings::codegen::Bindings::CSSGroupingRuleBinding; use dom::bindings::codegen::Bindings::CSSGroupingRuleBinding::CSSGroupingRuleMethods; use dom::bindings::error::{ErrorResult, Fallible}; use dom::bindings::inheritance::Castable; use dom::bindings::js::{MutNullableJS, Root}; -use dom::bindings::reflector::{DomObject, reflect_dom_object}; +use dom::bindings::reflector::DomObject; use dom::bindings::str::DOMString; use dom::cssrule::CSSRule; use dom::cssrulelist::{CSSRuleList, RulesSource}; use dom::cssstylesheet::CSSStyleSheet; -use dom::window::Window; use parking_lot::RwLock; use std::sync::Arc; use style::stylesheets::CssRules as StyleCssRules; @@ -35,14 +33,6 @@ impl CSSGroupingRule { } } - #[allow(unrooted_must_root)] - pub fn new(window: &Window, parent_stylesheet: &CSSStyleSheet, - rules: Arc<RwLock<StyleCssRules>>) -> Root<CSSGroupingRule> { - reflect_dom_object(box CSSGroupingRule::new_inherited(parent_stylesheet, rules), - window, - CSSGroupingRuleBinding::Wrap) - } - fn rulelist(&self) -> Root<CSSRuleList> { let parent_stylesheet = self.upcast::<CSSRule>().parent_stylesheet(); self.rulelist.or_init(|| CSSRuleList::new(self.global().as_window(), diff --git a/components/script/dom/cssrule.rs b/components/script/dom/cssrule.rs index 27b439f9dc4..8323d7e22b0 100644 --- a/components/script/dom/cssrule.rs +++ b/components/script/dom/cssrule.rs @@ -2,11 +2,10 @@ * 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 dom::bindings::codegen::Bindings::CSSRuleBinding; use dom::bindings::codegen::Bindings::CSSRuleBinding::CSSRuleMethods; use dom::bindings::inheritance::Castable; use dom::bindings::js::{JS, Root}; -use dom::bindings::reflector::{Reflector, reflect_dom_object}; +use dom::bindings::reflector::Reflector; use dom::bindings::str::DOMString; use dom::cssfontfacerule::CSSFontFaceRule; use dom::cssimportrule::CSSImportRule; @@ -43,13 +42,6 @@ impl CSSRule { } } - #[allow(unrooted_must_root)] - pub fn new(window: &Window, parent_stylesheet: &CSSStyleSheet) -> Root<CSSRule> { - reflect_dom_object(box CSSRule::new_inherited(parent_stylesheet), - window, - CSSRuleBinding::Wrap) - } - pub fn as_specific(&self) -> &SpecificCSSRule { if let Some(rule) = self.downcast::<CSSStyleRule>() { rule as &SpecificCSSRule diff --git a/components/script/dom/cssstylerule.rs b/components/script/dom/cssstylerule.rs index dce38e69bbc..3e23864ae61 100644 --- a/components/script/dom/cssstylerule.rs +++ b/components/script/dom/cssstylerule.rs @@ -40,10 +40,6 @@ impl CSSStyleRule { window, CSSStyleRuleBinding::Wrap) } - - pub fn style_rule(&self) -> Arc<RwLock<StyleRule>> { - self.stylerule.clone() - } } impl SpecificCSSRule for CSSStyleRule { diff --git a/components/script/dom/domexception.rs b/components/script/dom/domexception.rs index 2a5946193b6..7428a986c48 100644 --- a/components/script/dom/domexception.rs +++ b/components/script/dom/domexception.rs @@ -29,13 +29,11 @@ pub enum DOMErrorName { SecurityError = DOMExceptionConstants::SECURITY_ERR, NetworkError = DOMExceptionConstants::NETWORK_ERR, AbortError = DOMExceptionConstants::ABORT_ERR, - URLMismatchError = DOMExceptionConstants::URL_MISMATCH_ERR, TypeMismatchError = DOMExceptionConstants::TYPE_MISMATCH_ERR, QuotaExceededError = DOMExceptionConstants::QUOTA_EXCEEDED_ERR, TimeoutError = DOMExceptionConstants::TIMEOUT_ERR, InvalidNodeTypeError = DOMExceptionConstants::INVALID_NODE_TYPE_ERR, DataCloneError = DOMExceptionConstants::DATA_CLONE_ERR, - EncodingError, } #[dom_struct] @@ -62,11 +60,7 @@ impl DOMException { impl DOMExceptionMethods for DOMException { // https://heycam.github.io/webidl/#dfn-DOMException fn Code(&self) -> u16 { - match self.code { - // https://heycam.github.io/webidl/#dfn-throw - DOMErrorName::EncodingError => 0, - code => code as u16, - } + self.code as u16 } // https://heycam.github.io/webidl/#idl-DOMException-error-names @@ -93,14 +87,12 @@ impl DOMExceptionMethods for DOMException { DOMErrorName::SecurityError => "The operation is insecure.", DOMErrorName::NetworkError => "A network error occurred.", DOMErrorName::AbortError => "The operation was aborted.", - DOMErrorName::URLMismatchError => "The given URL does not match another URL.", DOMErrorName::TypeMismatchError => "The given type does not match any expected type.", DOMErrorName::QuotaExceededError => "The quota has been exceeded.", DOMErrorName::TimeoutError => "The operation timed out.", DOMErrorName::InvalidNodeTypeError => "The supplied node is incorrect or has an incorrect ancestor for this operation.", DOMErrorName::DataCloneError => "The object can not be cloned.", - DOMErrorName::EncodingError => "The encoding operation (either encoded or decoding) failed." }; DOMString::from(message) diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs index eabcbc41e6e..a0a34b081c8 100755 --- a/components/script/dom/htmlformelement.rs +++ b/components/script/dom/htmlformelement.rs @@ -85,10 +85,6 @@ impl HTMLFormElement { document, HTMLFormElementBinding::Wrap) } - - pub fn generation_id(&self) -> GenerationId { - self.generation_id.get() - } } impl HTMLFormElementMethods for HTMLFormElement { @@ -662,6 +658,7 @@ impl HTMLFormElement { #[derive(JSTraceable, HeapSizeOf, Clone)] pub enum FormDatumValue { + #[allow(dead_code)] File(Root<File>), String(DOMString) } @@ -701,6 +698,7 @@ pub enum FormMethod { } #[derive(HeapSizeOf)] +#[allow(dead_code)] pub enum FormSubmittableElement { ButtonElement(Root<HTMLButtonElement>), InputElement(Root<HTMLInputElement>), diff --git a/components/script/dom/htmllinkelement.rs b/components/script/dom/htmllinkelement.rs index cc66a822d92..ee4ee4718cf 100644 --- a/components/script/dom/htmllinkelement.rs +++ b/components/script/dom/htmllinkelement.rs @@ -77,10 +77,6 @@ impl HTMLLinkElement { HTMLLinkElementBinding::Wrap) } - pub fn parser_inserted(&self) -> bool { - self.parser_inserted.get() - } - pub fn set_stylesheet(&self, s: Arc<Stylesheet>) { assert!(self.stylesheet.borrow().is_none()); *self.stylesheet.borrow_mut() = Some(s); diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs index ad899de4c9d..fd327404b4d 100644 --- a/components/script/dom/htmlmediaelement.rs +++ b/components/script/dom/htmlmediaelement.rs @@ -243,11 +243,6 @@ impl HTMLMediaElement { } } - #[inline] - pub fn htmlelement(&self) -> &HTMLElement { - &self.htmlelement - } - // https://html.spec.whatwg.org/multipage/#internal-pause-steps fn internal_pause_steps(&self) { // Step 1 diff --git a/components/script/dom/htmltablecellelement.rs b/components/script/dom/htmltablecellelement.rs index 1ec389d9977..6790c2a4ea0 100644 --- a/components/script/dom/htmltablecellelement.rs +++ b/components/script/dom/htmltablecellelement.rs @@ -33,11 +33,6 @@ impl HTMLTableCellElement { htmlelement: HTMLElement::new_inherited(tag_name, prefix, document), } } - - #[inline] - pub fn htmlelement(&self) -> &HTMLElement { - &self.htmlelement - } } impl HTMLTableCellElementMethods for HTMLTableCellElement { diff --git a/components/script/dom/htmltextareaelement.rs b/components/script/dom/htmltextareaelement.rs index 87e9fb532d3..fd5b42fa25c 100755 --- a/components/script/dom/htmltextareaelement.rs +++ b/components/script/dom/htmltextareaelement.rs @@ -285,11 +285,6 @@ impl HTMLTextAreaElementMethods for HTMLTextAreaElement { impl HTMLTextAreaElement { - // https://html.spec.whatwg.org/multipage/#concept-fe-mutable - pub fn mutable(&self) -> bool { - // https://html.spec.whatwg.org/multipage/#the-textarea-element:concept-fe-mutable - !(self.Disabled() || self.ReadOnly()) - } pub fn reset(&self) { // https://html.spec.whatwg.org/multipage/#the-textarea-element:concept-form-reset-control self.SetValue(self.DefaultValue()); diff --git a/components/script/dom/mediaquerylistevent.rs b/components/script/dom/mediaquerylistevent.rs index 8965ba43f79..8edd2fa3ab2 100644 --- a/components/script/dom/mediaquerylistevent.rs +++ b/components/script/dom/mediaquerylistevent.rs @@ -26,12 +26,6 @@ pub struct MediaQueryListEvent { } impl MediaQueryListEvent { - pub fn new_uninitialized(global: &GlobalScope) -> Root<MediaQueryListEvent> { - MediaQueryListEvent::new_initialized(global, - DOMString::new(), - false) - } - pub fn new_initialized(global: &GlobalScope, media: DOMString, matches: bool) -> Root<MediaQueryListEvent> { diff --git a/components/script/dom/nodeiterator.rs b/components/script/dom/nodeiterator.rs index 5a87a9b4c41..920d94d635c 100644 --- a/components/script/dom/nodeiterator.rs +++ b/components/script/dom/nodeiterator.rs @@ -79,7 +79,6 @@ impl NodeIteratorMethods for NodeIterator { match self.filter { Filter::None => None, Filter::Callback(ref nf) => Some((*nf).clone()), - Filter::Native(_) => panic!("Cannot convert native node filter to DOM NodeFilter") } } @@ -200,7 +199,6 @@ impl NodeIterator { // Step 3-5. match self.filter { Filter::None => Ok(NodeFilterConstants::FILTER_ACCEPT), - Filter::Native(f) => Ok((f)(node)), Filter::Callback(ref callback) => callback.AcceptNode_(self, node, Rethrow) } } @@ -210,6 +208,5 @@ impl NodeIterator { #[derive(JSTraceable)] pub enum Filter { None, - Native(fn (node: &Node) -> u16), Callback(Rc<NodeFilter>) } diff --git a/components/script/dom/radionodelist.rs b/components/script/dom/radionodelist.rs index 5cf05cb872a..b8078aa6670 100644 --- a/components/script/dom/radionodelist.rs +++ b/components/script/dom/radionodelist.rs @@ -40,10 +40,6 @@ impl RadioNodeList { RadioNodeList::new(window, NodeListType::Simple(iter.map(|r| JS::from_ref(&*r)).collect())) } - pub fn empty(window: &Window) -> Root<RadioNodeList> { - RadioNodeList::new(window, NodeListType::Simple(vec![])) - } - // FIXME: This shouldn't need to be implemented here since NodeList (the parent of // RadioNodeList) implements Length // https://github.com/servo/servo/issues/5875 diff --git a/components/script/dom/svgelement.rs b/components/script/dom/svgelement.rs index c89bab166ee..3a18f965ecc 100644 --- a/components/script/dom/svgelement.rs +++ b/components/script/dom/svgelement.rs @@ -2,13 +2,10 @@ * 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 dom::bindings::codegen::Bindings::SVGElementBinding; use dom::bindings::inheritance::Castable; -use dom::bindings::js::Root; use dom::bindings::str::DOMString; use dom::document::Document; use dom::element::Element; -use dom::node::Node; use dom::virtualmethods::VirtualMethods; use html5ever_atoms::LocalName; use style::element_state::ElementState; @@ -19,11 +16,6 @@ pub struct SVGElement { } impl SVGElement { - pub fn new_inherited(tag_name: LocalName, prefix: Option<DOMString>, - document: &Document) -> SVGElement { - SVGElement::new_inherited_with_state(ElementState::empty(), tag_name, prefix, document) - } - pub fn new_inherited_with_state(state: ElementState, tag_name: LocalName, prefix: Option<DOMString>, document: &Document) -> SVGElement { @@ -32,13 +24,6 @@ impl SVGElement { Element::new_inherited_with_state(state, tag_name, ns!(svg), prefix, document), } } - - #[allow(unrooted_must_root)] - pub fn new(local_name: LocalName, prefix: Option<DOMString>, document: &Document) -> Root<SVGElement> { - Node::reflect_node(box SVGElement::new_inherited(local_name, prefix, document), - document, - SVGElementBinding::Wrap) - } } impl VirtualMethods for SVGElement { diff --git a/components/script/dom/svggraphicselement.rs b/components/script/dom/svggraphicselement.rs index 9435cc6d6b7..b8e8aced371 100644 --- a/components/script/dom/svggraphicselement.rs +++ b/components/script/dom/svggraphicselement.rs @@ -2,12 +2,9 @@ * 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 dom::bindings::codegen::Bindings::SVGGraphicsElementBinding; use dom::bindings::inheritance::Castable; -use dom::bindings::js::Root; use dom::bindings::str::DOMString; use dom::document::Document; -use dom::node::Node; use dom::svgelement::SVGElement; use dom::virtualmethods::VirtualMethods; use html5ever_atoms::LocalName; @@ -32,13 +29,6 @@ impl SVGGraphicsElement { SVGElement::new_inherited_with_state(state, tag_name, prefix, document), } } - - #[allow(unrooted_must_root)] - pub fn new(local_name: LocalName, prefix: Option<DOMString>, document: &Document) -> Root<SVGGraphicsElement> { - Node::reflect_node(box SVGGraphicsElement::new_inherited(local_name, prefix, document), - document, - SVGGraphicsElementBinding::Wrap) - } } impl VirtualMethods for SVGGraphicsElement { diff --git a/components/script/dom/validitystate.rs b/components/script/dom/validitystate.rs index 10801120871..f5b6501a82d 100755 --- a/components/script/dom/validitystate.rs +++ b/components/script/dom/validitystate.rs @@ -10,8 +10,8 @@ use dom::element::Element; use dom::window::Window; // https://html.spec.whatwg.org/multipage/#validity-states -#[derive(JSTraceable)] -#[derive(HeapSizeOf)] +#[derive(JSTraceable, HeapSizeOf)] +#[allow(dead_code)] pub enum ValidityStatus { ValueMissing, TypeMismatch, diff --git a/components/script/dom/webglobject.rs b/components/script/dom/webglobject.rs index 9c7382ce5b5..3ebbf8fb017 100644 --- a/components/script/dom/webglobject.rs +++ b/components/script/dom/webglobject.rs @@ -3,10 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // https://www.khronos.org/registry/webgl/specs/latest/1.0/webgl.idl -use dom::bindings::codegen::Bindings::WebGLObjectBinding; -use dom::bindings::js::Root; -use dom::bindings::reflector::{Reflector, reflect_dom_object}; -use dom::window::Window; +use dom::bindings::reflector::Reflector; #[dom_struct] pub struct WebGLObject { @@ -19,8 +16,4 @@ impl WebGLObject { reflector_: Reflector::new(), } } - - pub fn new(window: &Window) -> Root<WebGLObject> { - reflect_dom_object(box WebGLObject::new_inherited(), window, WebGLObjectBinding::Wrap) - } } diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs index 828ebd256f8..81dfe804278 100644 --- a/components/script/dom/webglrenderingcontext.rs +++ b/components/script/dom/webglrenderingcontext.rs @@ -2829,39 +2829,4 @@ impl UniformSetterType { UniformSetterType::FloatMat4 => 16, } } - - pub fn is_compatible_with(&self, gl_type: u32) -> bool { - gl_type == self.as_gl_constant() || match *self { - // Sampler uniform variables have an index value (the index of the - // texture), and as such they have to be set as ints - UniformSetterType::Int => gl_type == constants::SAMPLER_2D || - gl_type == constants::SAMPLER_CUBE, - // Don't ask me why, but it seems we must allow setting bool - // uniforms with uniform1f. - // - // See the WebGL conformance test - // conformance/uniforms/gl-uniform-bool.html - UniformSetterType::Float => gl_type == constants::BOOL, - UniformSetterType::FloatVec2 => gl_type == constants::BOOL_VEC2, - UniformSetterType::FloatVec3 => gl_type == constants::BOOL_VEC3, - UniformSetterType::FloatVec4 => gl_type == constants::BOOL_VEC4, - _ => false, - } - } - - fn as_gl_constant(&self) -> u32 { - match *self { - UniformSetterType::Int => constants::INT, - UniformSetterType::IntVec2 => constants::INT_VEC2, - UniformSetterType::IntVec3 => constants::INT_VEC3, - UniformSetterType::IntVec4 => constants::INT_VEC4, - UniformSetterType::Float => constants::FLOAT, - UniformSetterType::FloatVec2 => constants::FLOAT_VEC2, - UniformSetterType::FloatVec3 => constants::FLOAT_VEC3, - UniformSetterType::FloatVec4 => constants::FLOAT_VEC4, - UniformSetterType::FloatMat2 => constants::FLOAT_MAT2, - UniformSetterType::FloatMat3 => constants::FLOAT_MAT3, - UniformSetterType::FloatMat4 => constants::FLOAT_MAT4, - } - } } diff --git a/components/script/dom/webglshaderprecisionformat.rs b/components/script/dom/webglshaderprecisionformat.rs index c0f954c8d4d..87ab7490e3a 100644 --- a/components/script/dom/webglshaderprecisionformat.rs +++ b/components/script/dom/webglshaderprecisionformat.rs @@ -2,6 +2,8 @@ * 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/. */ +#![allow(dead_code)] + // https://www.khronos.org/registry/webgl/specs/latest/1.0/webgl.idl use dom::bindings::codegen::Bindings::WebGLShaderPrecisionFormatBinding; use dom::bindings::codegen::Bindings::WebGLShaderPrecisionFormatBinding::WebGLShaderPrecisionFormatMethods; diff --git a/components/script/dom/webidls/CSSGroupingRule.webidl b/components/script/dom/webidls/CSSGroupingRule.webidl index 9f8347a17d5..41ac5e8dd57 100644 --- a/components/script/dom/webidls/CSSGroupingRule.webidl +++ b/components/script/dom/webidls/CSSGroupingRule.webidl @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // https://drafts.csswg.org/cssom/#the-cssgroupingrule-interface -[Exposed=Window] +[Abstract, Exposed=Window] interface CSSGroupingRule : CSSRule { [SameObject] readonly attribute CSSRuleList cssRules; [Throws] unsigned long insertRule(DOMString rule, unsigned long index); diff --git a/components/script/dom/webidls/CSSRule.webidl b/components/script/dom/webidls/CSSRule.webidl index 462943430e6..cda06ab1254 100644 --- a/components/script/dom/webidls/CSSRule.webidl +++ b/components/script/dom/webidls/CSSRule.webidl @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // https://drafts.csswg.org/cssom/#the-cssrule-interface -[Exposed=Window] +[Abstract, Exposed=Window] interface CSSRule { const unsigned short STYLE_RULE = 1; const unsigned short CHARSET_RULE = 2; // historical diff --git a/components/script/dom/webidls/SVGElement.webidl b/components/script/dom/webidls/SVGElement.webidl index 02f673a420e..529e9e67f06 100644 --- a/components/script/dom/webidls/SVGElement.webidl +++ b/components/script/dom/webidls/SVGElement.webidl @@ -3,7 +3,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // https://svgwg.org/svg2-draft/types.html#InterfaceSVGElement -[Pref="dom.svg.enabled"] +[Abstract, Pref="dom.svg.enabled"] interface SVGElement : Element { //[SameObject] readonly attribute SVGAnimatedString className; diff --git a/components/script/dom/webidls/SVGGraphicsElement.webidl b/components/script/dom/webidls/SVGGraphicsElement.webidl index d8f90e639ea..cf6c315d917 100644 --- a/components/script/dom/webidls/SVGGraphicsElement.webidl +++ b/components/script/dom/webidls/SVGGraphicsElement.webidl @@ -3,7 +3,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // https://svgwg.org/svg2-draft/types.html#InterfaceSVGGraphicsElement -[Pref="dom.svg.enabled"] //dictionary SVGBoundingBoxOptions { // boolean fill = true; // boolean stroke = false; @@ -11,6 +10,7 @@ // boolean clipped = false; //}; +[Abstract, Pref="dom.svg.enabled"] interface SVGGraphicsElement : SVGElement { //[SameObject] readonly attribute SVGAnimatedTransformList transform; diff --git a/components/script/dom/webidls/WebGLObject.webidl b/components/script/dom/webidls/WebGLObject.webidl index 3ac7514830a..3e8f1f54cca 100644 --- a/components/script/dom/webidls/WebGLObject.webidl +++ b/components/script/dom/webidls/WebGLObject.webidl @@ -6,6 +6,6 @@ // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.3 // -[Exposed=Window] +[Abstract, Exposed=Window] interface WebGLObject { }; diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index 8380a002c53..7dd8d71e9c8 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -142,8 +142,6 @@ pub enum ReflowReason { ElementStateChanged, } -pub type ScrollPoint = Point2D<Au>; - #[dom_struct] pub struct Window { globalscope: GlobalScope, |