| Index: Source/core/html/HTMLBaseElement.cpp
|
| diff --git a/Source/core/html/HTMLBaseElement.cpp b/Source/core/html/HTMLBaseElement.cpp
|
| index b9868cd6c9f9005582fd85e15d695827e01587f1..05c4ad66455e020fbebaa9ec2a5709b7e808fa78 100644
|
| --- a/Source/core/html/HTMLBaseElement.cpp
|
| +++ b/Source/core/html/HTMLBaseElement.cpp
|
| @@ -48,7 +48,7 @@ PassRefPtr<HTMLBaseElement> HTMLBaseElement::create(const QualifiedName& tagName
|
| void HTMLBaseElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
|
| {
|
| if (name == hrefAttr || name == targetAttr)
|
| - document()->processBaseElement();
|
| + document().processBaseElement();
|
| else
|
| HTMLElement::parseAttribute(name, value);
|
| }
|
| @@ -57,7 +57,7 @@ Node::InsertionNotificationRequest HTMLBaseElement::insertedInto(ContainerNode*
|
| {
|
| HTMLElement::insertedInto(insertionPoint);
|
| if (insertionPoint->inDocument())
|
| - document()->processBaseElement();
|
| + document().processBaseElement();
|
| return InsertionDone;
|
| }
|
|
|
| @@ -65,7 +65,7 @@ void HTMLBaseElement::removedFrom(ContainerNode* insertionPoint)
|
| {
|
| HTMLElement::removedFrom(insertionPoint);
|
| if (insertionPoint->inDocument())
|
| - document()->processBaseElement();
|
| + document().processBaseElement();
|
| }
|
|
|
| bool HTMLBaseElement::isURLAttribute(const Attribute& attribute) const
|
| @@ -86,11 +86,11 @@ KURL HTMLBaseElement::href() const
|
|
|
| const AtomicString& attributeValue = fastGetAttribute(hrefAttr);
|
| if (attributeValue.isNull())
|
| - return document()->url();
|
| + return document().url();
|
|
|
| - KURL url = document()->encoding().isValid() ?
|
| - KURL(document()->url(), stripLeadingAndTrailingHTMLSpaces(attributeValue)) :
|
| - KURL(document()->url(), stripLeadingAndTrailingHTMLSpaces(attributeValue), document()->encoding());
|
| + KURL url = document().encoding().isValid() ?
|
| + KURL(document().url(), stripLeadingAndTrailingHTMLSpaces(attributeValue)) :
|
| + KURL(document().url(), stripLeadingAndTrailingHTMLSpaces(attributeValue), document().encoding());
|
|
|
| if (!url.isValid())
|
| return KURL();
|
|
|