From 5f1ab04193ad0130ca8204aadaceae083aca9881 Mon Sep 17 00:00:00 2001 From: Feng Qian Date: Wed, 17 Jun 2009 12:12:20 -0700 Subject: Get WebKit r44544. --- WebCore/xml/XPathResult.h | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'WebCore/xml/XPathResult.h') 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 - * Copyright (C) 2006 Apple Computer, Inc. + * Copyright (C) 2005 Frerich Raabe + * 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 #include "XPathValue.h" +#include 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 create(Node* eventTarget, const XPath::Value& value) { return adoptRef(new XPathResult(eventTarget, value)); } + static PassRefPtr 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 m_eventTarget; - RefPtr m_eventListener; + RefPtr m_document; + unsigned m_domTreeVersion; }; -} +} // namespace WebCore #endif // ENABLE(XPATH) -- cgit v1.1