summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/objc/DOMCustomXPathNSResolver.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/objc/DOMCustomXPathNSResolver.h')
-rw-r--r--WebCore/bindings/objc/DOMCustomXPathNSResolver.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/WebCore/bindings/objc/DOMCustomXPathNSResolver.h b/WebCore/bindings/objc/DOMCustomXPathNSResolver.h
index 47cd939..2609e90 100644
--- a/WebCore/bindings/objc/DOMCustomXPathNSResolver.h
+++ b/WebCore/bindings/objc/DOMCustomXPathNSResolver.h
@@ -31,6 +31,7 @@
#include "XPathNSResolver.h"
#include "DOMXPathNSResolver.h"
+#include <wtf/PassRefPtr.h>
namespace WebCore {
@@ -38,13 +39,14 @@ namespace WebCore {
class DOMCustomXPathNSResolver : public XPathNSResolver {
public:
- DOMCustomXPathNSResolver(id <DOMXPathNSResolver>);
+ static PassRefPtr<DOMCustomXPathNSResolver> create(id <DOMXPathNSResolver> customResolver) { return adoptRef(new DOMCustomXPathNSResolver(customResolver)); }
virtual ~DOMCustomXPathNSResolver();
virtual String lookupNamespaceURI(const String& prefix);
private:
- id <DOMXPathNSResolver> m_customResolver; // DOMCustomXPathNSResolvers are always temporary, thus no need to GC protect the object.
+ DOMCustomXPathNSResolver(id <DOMXPathNSResolver>);
+ id <DOMXPathNSResolver> m_customResolver; // DOMCustomXPathNSResolvers are always temporary, thus no need to GC protect the object.
};
} // namespace WebCore