mirror of
https://github.com/servo/servo.git
synced 2025-06-20 23:28:59 +01:00
Remove DocumentTypeId.
This commit is contained in:
parent
5ede84fa46
commit
870ccd95d2
8 changed files with 46 additions and 44 deletions
|
@ -16,12 +16,12 @@ use dom::bindings::utils::{QName, Name, InvalidXMLName, xml_name_type};
|
|||
use dom::htmlcollection::HTMLCollection;
|
||||
use dom::clientrect::ClientRect;
|
||||
use dom::clientrectlist::ClientRectList;
|
||||
use dom::document::{Document, HTMLDocumentTypeId};
|
||||
use dom::document::Document;
|
||||
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
|
||||
use dom::htmlimageelement::HTMLImageElement;
|
||||
use dom::htmliframeelement::HTMLIFrameElement;
|
||||
use dom::htmlobjectelement::HTMLObjectElement;
|
||||
use dom::node::{DocumentNodeTypeId, ElementNodeTypeId, Node, NodeHelpers, NodeIterator};
|
||||
use dom::node::{ElementNodeTypeId, Node, NodeHelpers, NodeIterator};
|
||||
use dom::htmlserializer::serialize;
|
||||
use layout_interface::{ContentBoxQuery, ContentBoxResponse, ContentBoxesQuery};
|
||||
use layout_interface::{ContentBoxesResponse, ContentChangedDocumentDamage};
|
||||
|
@ -152,10 +152,8 @@ impl Element {
|
|||
}
|
||||
|
||||
pub fn html_element_in_html_document(&self) -> bool {
|
||||
let owner = self.node.owner_doc();
|
||||
self.namespace == namespace::HTML &&
|
||||
// FIXME: check that this matches what the spec calls "is in an HTML document"
|
||||
owner.get().node.type_id == DocumentNodeTypeId(HTMLDocumentTypeId)
|
||||
self.node.owner_doc().get().is_html_document
|
||||
}
|
||||
|
||||
pub fn get_attribute(&self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue