summaryrefslogtreecommitdiffstats
path: root/WebCore/html/HTMLMapElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/html/HTMLMapElement.cpp')
-rw-r--r--WebCore/html/HTMLMapElement.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/WebCore/html/HTMLMapElement.cpp b/WebCore/html/HTMLMapElement.cpp
index 2fce481..891f560 100644
--- a/WebCore/html/HTMLMapElement.cpp
+++ b/WebCore/html/HTMLMapElement.cpp
@@ -80,14 +80,14 @@ void HTMLMapElement::parseMappedAttribute(MappedAttribute* attr)
if (attrName == idAttr) {
// Call base class so that hasID bit gets set.
HTMLElement::parseMappedAttribute(attr);
- if (doc->htmlMode() != Document::XHtml)
+ if (doc->isHTMLDocument())
return;
}
doc->removeImageMap(this);
String mapName = attr->value();
if (mapName[0] == '#')
mapName = mapName.substring(1);
- m_name = doc->htmlMode() == Document::XHtml ? mapName : mapName.lower();
+ m_name = doc->isHTMLDocument() ? mapName.lower() : mapName;
doc->addImageMap(this);
} else
HTMLElement::parseMappedAttribute(attr);
@@ -95,7 +95,7 @@ void HTMLMapElement::parseMappedAttribute(MappedAttribute* attr)
PassRefPtr<HTMLCollection> HTMLMapElement::areas()
{
- return new HTMLCollection(this, HTMLCollection::MapAreas);
+ return HTMLCollection::create(this, HTMLCollection::MapAreas);
}
String HTMLMapElement::name() const