Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(433)

Side by Side Diff: Source/WebCore/dom/Document.h

Issue 6709024: Merge 80797 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/collection-nameditem-move-between-documents-expected.txt ('k') | Source/WebCore/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698