#include "core/dom/Document.h"
#include "core/svg/SVGAnimatedString.h"
-namespace WebCore {
+namespace blink {
-class Attribute;
class Element;
class SVGURIReference {
bool isKnownAttribute(const QualifiedName&);
void addSupportedAttributes(HashSet<QualifiedName>&);
- static AtomicString fragmentIdentifierFromIRIString(const String&, const Document&);
- static Element* targetElementFromIRIString(const String&, const Document&, AtomicString* = 0, Document* = 0);
+ static AtomicString fragmentIdentifierFromIRIString(const String&, const TreeScope&);
+ static Element* targetElementFromIRIString(const String&, const TreeScope&, AtomicString* = 0, Document* = 0);
static inline bool isExternalURIReference(const String& uri, const Document& document)
{
return !equalIgnoringFragmentIdentifier(url, document.url());
}
- // SVGURIReference JS API.
- static SVGAnimatedString* href(SVGURIReference& object) { return object.href(); }
-
- SVGAnimatedString* href() const { return m_href.get(); }
const String& hrefString() const { return m_href->currentValue()->value(); }
- bool parseAttribute(const QualifiedName&, const AtomicString& value, SVGParsingError&);
+ // JS API
+ SVGAnimatedString* href() const { return m_href.get(); }
protected:
explicit SVGURIReference(SVGElement*);
RefPtr<SVGAnimatedString> m_href;
};
-} // namespace WebCore
+} // namespace blink
#endif // SVGURIReference_h