summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLBaseElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/HTMLBaseElement.cpp')
-rw-r--r--Source/WebCore/html/HTMLBaseElement.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/WebCore/html/HTMLBaseElement.cpp b/Source/WebCore/html/HTMLBaseElement.cpp
index 7e8d2764a..fcfd67b4d 100644
--- a/Source/WebCore/html/HTMLBaseElement.cpp
+++ b/Source/WebCore/html/HTMLBaseElement.cpp
@@ -23,7 +23,6 @@
#include "config.h"
#include "HTMLBaseElement.h"
-#include "Attribute.h"
#include "Document.h"
#include "HTMLNames.h"
#include "HTMLParserIdioms.h"
@@ -39,9 +38,9 @@ inline HTMLBaseElement::HTMLBaseElement(const QualifiedName& tagName, Document&
ASSERT(hasTagName(baseTag));
}
-PassRefPtr<HTMLBaseElement> HTMLBaseElement::create(const QualifiedName& tagName, Document& document)
+Ref<HTMLBaseElement> HTMLBaseElement::create(const QualifiedName& tagName, Document& document)
{
- return adoptRef(new HTMLBaseElement(tagName, document));
+ return adoptRef(*new HTMLBaseElement(tagName, document));
}
void HTMLBaseElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
@@ -55,7 +54,7 @@ void HTMLBaseElement::parseAttribute(const QualifiedName& name, const AtomicStri
Node::InsertionNotificationRequest HTMLBaseElement::insertedInto(ContainerNode& insertionPoint)
{
HTMLElement::insertedInto(insertionPoint);
- if (insertionPoint.inDocument())
+ if (insertionPoint.isConnected())
document().processBaseElement();
return InsertionDone;
}
@@ -63,7 +62,7 @@ Node::InsertionNotificationRequest HTMLBaseElement::insertedInto(ContainerNode&
void HTMLBaseElement::removedFrom(ContainerNode& insertionPoint)
{
HTMLElement::removedFrom(insertionPoint);
- if (insertionPoint.inDocument())
+ if (insertionPoint.isConnected())
document().processBaseElement();
}
@@ -74,7 +73,7 @@ bool HTMLBaseElement::isURLAttribute(const Attribute& attribute) const
String HTMLBaseElement::target() const
{
- return fastGetAttribute(targetAttr);
+ return attributeWithoutSynchronization(targetAttr);
}
URL HTMLBaseElement::href() const
@@ -83,7 +82,7 @@ URL HTMLBaseElement::href() const
// base elements like this one can be used to set that base URL. Thus we need to resolve relative to the document's
// URL and ignore the base URL.
- const AtomicString& attributeValue = fastGetAttribute(hrefAttr);
+ const AtomicString& attributeValue = attributeWithoutSynchronization(hrefAttr);
if (attributeValue.isNull())
return document().url();
@@ -99,7 +98,7 @@ URL HTMLBaseElement::href() const
void HTMLBaseElement::setHref(const AtomicString& value)
{
- setAttribute(hrefAttr, value);
+ setAttributeWithoutSynchronization(hrefAttr, value);
}
}