Commit 04fdf4f1 authored by levin@chromium.org's avatar levin@chromium.org

2010-02-02 David Levin <levin@chromium.org>

        No review, rolling out r54245.
        http://trac.webkit.org/changeset/54245
        https://bugs.webkit.org/show_bug.cgi?id=34492

        This patch seems to have broken thousands of chromium tests on
        Windows (and since it was for chromium, I'm rolling it out).

        * dom/Element.cpp:
        (WebCore::Element::baseURI):

git-svn-id: svn://svn.chromium.org/blink/trunk@54264 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 3a432829
2010-02-02 David Levin <levin@chromium.org>
No review, rolling out r54245.
http://trac.webkit.org/changeset/54245
https://bugs.webkit.org/show_bug.cgi?id=34492
This patch seems to have broken thousands of chromium tests on
Windows (and since it was for chromium, I'm rolling it out).
* dom/Element.cpp:
(WebCore::Element::baseURI):
2010-02-02 Steve Falkenburg <sfalken@apple.com> 2010-02-02 Steve Falkenburg <sfalken@apple.com>
Reviewed by Darin Adler. Reviewed by Darin Adler.
......
...@@ -702,8 +702,7 @@ void Element::setPrefix(const AtomicString& prefix, ExceptionCode& ec) ...@@ -702,8 +702,7 @@ void Element::setPrefix(const AtomicString& prefix, ExceptionCode& ec)
KURL Element::baseURI() const KURL Element::baseURI() const
{ {
const AtomicString& baseAttribute = getAttribute(baseAttr); KURL base(KURL(), getAttribute(baseAttr));
KURL base(KURL(), baseAttribute);
if (!base.protocol().isEmpty()) if (!base.protocol().isEmpty())
return base; return base;
...@@ -715,7 +714,7 @@ KURL Element::baseURI() const ...@@ -715,7 +714,7 @@ KURL Element::baseURI() const
if (parentBase.isNull()) if (parentBase.isNull())
return base; return base;
return KURL(parentBase, baseAttribute); return KURL(parentBase, base.string());
} }
void Element::createAttributeMap() const void Element::createAttributeMap() const
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment