| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 | 889 |
| 890 #if ENABLE(XSLT) | 890 #if ENABLE(XSLT) |
| 891 void applyXSLTransform(ProcessingInstruction* pi); | 891 void applyXSLTransform(ProcessingInstruction* pi); |
| 892 PassRefPtr<Document> transformSourceDocument() { return m_transformSourceDoc
ument; } | 892 PassRefPtr<Document> transformSourceDocument() { return m_transformSourceDoc
ument; } |
| 893 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument =
doc; } | 893 void setTransformSourceDocument(Document* doc) { m_transformSourceDocument =
doc; } |
| 894 | 894 |
| 895 void setTransformSource(PassOwnPtr<TransformSource>); | 895 void setTransformSource(PassOwnPtr<TransformSource>); |
| 896 TransformSource* transformSource() const { return m_transformSource.get(); } | 896 TransformSource* transformSource() const { return m_transformSource.get(); } |
| 897 #endif | 897 #endif |
| 898 | 898 |
| 899 void incDOMTreeVersion() { ++m_domTreeVersion; } | 899 void incDOMTreeVersion() { m_domTreeVersion = ++s_globalTreeVersion; } |
| 900 unsigned domTreeVersion() const { return m_domTreeVersion; } | 900 uint64_t domTreeVersion() const { return m_domTreeVersion; } |
| 901 | 901 |
| 902 void setDocType(PassRefPtr<DocumentType>); | 902 void setDocType(PassRefPtr<DocumentType>); |
| 903 | 903 |
| 904 #if ENABLE(XPATH) | 904 #if ENABLE(XPATH) |
| 905 // XPathEvaluator methods | 905 // XPathEvaluator methods |
| 906 PassRefPtr<XPathExpression> createExpression(const String& expression, | 906 PassRefPtr<XPathExpression> createExpression(const String& expression, |
| 907 XPathNSResolver* resolver, | 907 XPathNSResolver* resolver, |
| 908 ExceptionCode& ec); | 908 ExceptionCode& ec); |
| 909 PassRefPtr<XPathNSResolver> createNSResolver(Node *nodeResolver); | 909 PassRefPtr<XPathNSResolver> createNSResolver(Node *nodeResolver); |
| 910 PassRefPtr<XPathResult> evaluate(const String& expression, | 910 PassRefPtr<XPathResult> evaluate(const String& expression, |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1224 CompatibilityMode m_compatibilityMode; | 1224 CompatibilityMode m_compatibilityMode; |
| 1225 bool m_compatibilityModeLocked; // This is cheaper than making setCompatibil
ityMode virtual. | 1225 bool m_compatibilityModeLocked; // This is cheaper than making setCompatibil
ityMode virtual. |
| 1226 | 1226 |
| 1227 Color m_textColor; | 1227 Color m_textColor; |
| 1228 | 1228 |
| 1229 RefPtr<Node> m_focusedNode; | 1229 RefPtr<Node> m_focusedNode; |
| 1230 RefPtr<Node> m_hoverNode; | 1230 RefPtr<Node> m_hoverNode; |
| 1231 RefPtr<Node> m_activeNode; | 1231 RefPtr<Node> m_activeNode; |
| 1232 mutable RefPtr<Element> m_documentElement; | 1232 mutable RefPtr<Element> m_documentElement; |
| 1233 | 1233 |
| 1234 unsigned m_domTreeVersion; | 1234 uint64_t m_domTreeVersion; |
| 1235 static uint64_t s_globalTreeVersion; |
| 1235 | 1236 |
| 1236 HashSet<NodeIterator*> m_nodeIterators; | 1237 HashSet<NodeIterator*> m_nodeIterators; |
| 1237 HashSet<Range*> m_ranges; | 1238 HashSet<Range*> m_ranges; |
| 1238 | 1239 |
| 1239 unsigned short m_listenerTypes; | 1240 unsigned short m_listenerTypes; |
| 1240 | 1241 |
| 1241 RefPtr<StyleSheetList> m_styleSheets; // All of the stylesheets that are cur
rently in effect for our media type and stylesheet set. | 1242 RefPtr<StyleSheetList> m_styleSheets; // All of the stylesheets that are cur
rently in effect for our media type and stylesheet set. |
| 1242 | 1243 |
| 1243 typedef ListHashSet<Node*, 32> StyleSheetCandidateListHashSet; | 1244 typedef ListHashSet<Node*, 32> StyleSheetCandidateListHashSet; |
| 1244 StyleSheetCandidateListHashSet m_styleSheetCandidateNodes; // All of the nod
es that could potentially provide stylesheets to the document (<link>, <style>,
<?xml-stylesheet>) | 1245 StyleSheetCandidateListHashSet m_styleSheetCandidateNodes; // All of the nod
es that could potentially provide stylesheets to the document (<link>, <style>,
<?xml-stylesheet>) |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1458 if (m_document) | 1459 if (m_document) |
| 1459 m_document->selfOnlyRef(); | 1460 m_document->selfOnlyRef(); |
| 1460 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) | 1461 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) |
| 1461 trackForDebugging(); | 1462 trackForDebugging(); |
| 1462 #endif | 1463 #endif |
| 1463 } | 1464 } |
| 1464 | 1465 |
| 1465 } // namespace WebCore | 1466 } // namespace WebCore |
| 1466 | 1467 |
| 1467 #endif // Document_h | 1468 #endif // Document_h |
| OLD | NEW |