Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(728)

Unified Diff: Source/core/dom/Element.cpp

Issue 1137753004: Remove xml:base support (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm tests Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index ddee2df92be60fbc5fc8bbdf42b2c34de427e6f0..dbc0e659592b75c9688265df5fb185d0d836d5ca 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -1354,27 +1354,6 @@ const AtomicString& Element::locateNamespacePrefix(const AtomicString& namespace
return nullAtom;
}
-KURL Element::baseURI() const
-{
- const AtomicString& baseAttribute = fastGetAttribute(baseAttr);
- if (!baseAttribute.isEmpty())
- UseCounter::count(document(), UseCounter::ElementBaseURIFromXMLBase);
-
- KURL base(KURL(), baseAttribute);
- if (!base.protocol().isEmpty())
- return base;
-
- ContainerNode* parent = parentNode();
- if (!parent)
- return base;
-
- const KURL& parentBase = parent->baseURI();
- if (parentBase.isNull())
- return base;
-
- return KURL(parentBase, baseAttribute);
-}
-
const AtomicString Element::imageSourceURL() const
{
return getAttribute(srcAttr);
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698