Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / svg / SVGURIReference.h
index c31946d..07c726f 100644 (file)
@@ -24,9 +24,8 @@
 #include "core/dom/Document.h"
 #include "core/svg/SVGAnimatedString.h"
 
-namespace WebCore {
+namespace blink {
 
-class Attribute;
 class Element;
 
 class SVGURIReference {
@@ -36,8 +35,8 @@ public:
     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)
     {
@@ -50,13 +49,10 @@ public:
         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*);
@@ -65,6 +61,6 @@ private:
     RefPtr<SVGAnimatedString> m_href;
 };
 
-} // namespace WebCore
+} // namespace blink
 
 #endif // SVGURIReference_h