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

Side by Side Diff: third_party/WebKit/WebCore/dom/Document.h

Issue 20076: WebKit merge 40500:40539 [WebKit side] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | Annotate | Revision Log
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 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 class CachedCSSStyleSheet; 57 class CachedCSSStyleSheet;
58 class CanvasRenderingContext2D; 58 class CanvasRenderingContext2D;
59 class CharacterData; 59 class CharacterData;
60 class CSSStyleDeclaration; 60 class CSSStyleDeclaration;
61 class CSSStyleSelector; 61 class CSSStyleSelector;
62 class CSSStyleSheet; 62 class CSSStyleSheet;
63 class Comment; 63 class Comment;
64 class Database; 64 class Database;
65 class DOMImplementation; 65 class DOMImplementation;
66 class DOMSelection; 66 class DOMSelection;
67 class DOMTimer;
68 class DOMWindow; 67 class DOMWindow;
69 class DatabaseThread; 68 class DatabaseThread;
70 class DocLoader; 69 class DocLoader;
71 class DocumentFragment; 70 class DocumentFragment;
72 class DocumentType; 71 class DocumentType;
73 class EditingText; 72 class EditingText;
74 class Element; 73 class Element;
75 class EntityReference; 74 class EntityReference;
76 class Event; 75 class Event;
77 class EventListener; 76 class EventListener;
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 793
795 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; } 794 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; }
796 void initDNSPrefetch(); 795 void initDNSPrefetch();
797 void parseDNSPrefetchControlHeader(const String&); 796 void parseDNSPrefetchControlHeader(const String&);
798 797
799 virtual void reportException(const String& errorMessage, int lineNumber, con st String& sourceURL); 798 virtual void reportException(const String& errorMessage, int lineNumber, con st String& sourceURL);
800 virtual void addMessage(MessageDestination, MessageSource, MessageLevel, con st String& message, unsigned lineNumber, const String& sourceURL); 799 virtual void addMessage(MessageDestination, MessageSource, MessageLevel, con st String& message, unsigned lineNumber, const String& sourceURL);
801 virtual void resourceRetrievedByXMLHttpRequest(unsigned long identifier, con st ScriptString& sourceString); 800 virtual void resourceRetrievedByXMLHttpRequest(unsigned long identifier, con st ScriptString& sourceString);
802 virtual void postTask(PassRefPtr<Task>); // Executes the task on context's t hread asynchronously. 801 virtual void postTask(PassRefPtr<Task>); // Executes the task on context's t hread asynchronously.
803 802
804 void addTimeout(int timeoutId, DOMTimer*);
805 void removeTimeout(int timeoutId);
806 DOMTimer* findTimeout(int timeoutId);
807
808 protected: 803 protected:
809 Document(Frame*, bool isXHTML); 804 Document(Frame*, bool isXHTML);
810 805
811 private: 806 private:
812 virtual void refScriptExecutionContext() { ref(); } 807 virtual void refScriptExecutionContext() { ref(); }
813 virtual void derefScriptExecutionContext() { deref(); } 808 virtual void derefScriptExecutionContext() { deref(); }
814 809
815 virtual const KURL& virtualURL() const; // Same as url(), but needed for Scr iptExecutionContext to implement it without a performance loss for direct calls. 810 virtual const KURL& virtualURL() const; // Same as url(), but needed for Scr iptExecutionContext to implement it without a performance loss for direct calls.
816 virtual KURL virtualCompleteURL(const String&) const; // Same as completeURL () for the same reason as above. 811 virtual KURL virtualCompleteURL(const String&) const; // Same as completeURL () for the same reason as above.
817 812
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 typedef HashSet<Database*> DatabaseSet; 1137 typedef HashSet<Database*> DatabaseSet;
1143 OwnPtr<DatabaseSet> m_openDatabaseSet; 1138 OwnPtr<DatabaseSet> m_openDatabaseSet;
1144 #endif 1139 #endif
1145 1140
1146 bool m_usingGeolocation; 1141 bool m_usingGeolocation;
1147 1142
1148 #if USE(LOW_BANDWIDTH_DISPLAY) 1143 #if USE(LOW_BANDWIDTH_DISPLAY)
1149 bool m_inLowBandwidthDisplay; 1144 bool m_inLowBandwidthDisplay;
1150 #endif 1145 #endif
1151 1146
1152 typedef HashMap<int, DOMTimer*> TimeoutsMap;
1153 TimeoutsMap m_timeouts;
1154 }; 1147 };
1155 1148
1156 inline bool Document::hasElementWithId(AtomicStringImpl* id) const 1149 inline bool Document::hasElementWithId(AtomicStringImpl* id) const
1157 { 1150 {
1158 ASSERT(id); 1151 ASSERT(id);
1159 return m_elementsById.contains(id) || m_duplicateIds.contains(id); 1152 return m_elementsById.contains(id) || m_duplicateIds.contains(id);
1160 } 1153 }
1161 1154
1162 inline bool Node::isDocumentNode() const 1155 inline bool Node::isDocumentNode() const
1163 { 1156 {
1164 return this == m_document.get(); 1157 return this == m_document.get();
1165 } 1158 }
1166 1159
1167 } // namespace WebCore 1160 } // namespace WebCore
1168 1161
1169 #endif // Document_h 1162 #endif // Document_h
1170 1163
1171 1164
1172 1165
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/dom/CrossThreadCopier.cpp ('k') | third_party/WebKit/WebCore/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698