diff options
author | Feng Qian <fqian@google.com> | 2009-06-18 18:20:56 -0700 |
---|---|---|
committer | Feng Qian <fqian@google.com> | 2009-06-18 18:20:56 -0700 |
commit | 1edef79f87f9c52c21d69c87c19f8e2b140a9119 (patch) | |
tree | cad337ef493b0d9710bf3ae478cb87cb534f598d /WebCore/xml/XPathResult.h | |
parent | b83fc086000e27bc227580bd0e35b9d7bee1179a (diff) | |
parent | c9c4d65c1547996ed3748026904d6e7f09aec2b4 (diff) | |
download | external_webkit-1edef79f87f9c52c21d69c87c19f8e2b140a9119.zip external_webkit-1edef79f87f9c52c21d69c87c19f8e2b140a9119.tar.gz external_webkit-1edef79f87f9c52c21d69c87c19f8e2b140a9119.tar.bz2 |
Merge commit 'goog/master-webkit-merge' into webkit-merge-44544
Diffstat (limited to 'WebCore/xml/XPathResult.h')
-rw-r--r-- | WebCore/xml/XPathResult.h | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/WebCore/xml/XPathResult.h b/WebCore/xml/XPathResult.h index 03accc6..3b91d66 100644 --- a/WebCore/xml/XPathResult.h +++ b/WebCore/xml/XPathResult.h @@ -1,6 +1,6 @@ /* - * Copyright 2005 Frerich Raabe <raabe@kde.org> - * Copyright (C) 2006 Apple Computer, Inc. + * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> + * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -29,15 +29,14 @@ #if ENABLE(XPATH) -#include <wtf/RefCounted.h> #include "XPathValue.h" +#include <wtf/RefCounted.h> namespace WebCore { typedef int ExceptionCode; - class EventListener; - class Node; + class Document; class Node; class String; @@ -56,7 +55,7 @@ namespace WebCore { FIRST_ORDERED_NODE_TYPE = 9 }; - static PassRefPtr<XPathResult> create(Node* eventTarget, const XPath::Value& value) { return adoptRef(new XPathResult(eventTarget, value)); } + static PassRefPtr<XPathResult> create(Document* document, const XPath::Value& value) { return adoptRef(new XPathResult(document, value)); } ~XPathResult(); void convertTo(unsigned short type, ExceptionCode&); @@ -73,21 +72,18 @@ namespace WebCore { Node* iterateNext(ExceptionCode&); Node* snapshotItem(unsigned long index, ExceptionCode&); - void invalidateIteratorState(); - private: - XPathResult(Node*, const XPath::Value&); + XPathResult(Document*, const XPath::Value&); XPath::Value m_value; unsigned m_nodeSetPosition; XPath::NodeSet m_nodeSet; // FIXME: why duplicate the node set stored in m_value? unsigned short m_resultType; - bool m_invalidIteratorState; - RefPtr<Node> m_eventTarget; - RefPtr<EventListener> m_eventListener; + RefPtr<Document> m_document; + unsigned m_domTreeVersion; }; -} +} // namespace WebCore #endif // ENABLE(XPATH) |