Chromium Code Reviews| 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, 2012 Apple Inc. All r ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights 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 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
| 25 * | 25 * |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef Document_h | 28 #ifndef Document_h |
| 29 #define Document_h | 29 #define Document_h |
| 30 | 30 |
| 31 #include "bindings/v8/ScriptValue.h" | 31 #include "bindings/v8/ScriptValue.h" |
| 32 #include "core/dom/ContainerNode.h" | 32 #include "core/dom/ContainerNode.h" |
| 33 #include "core/dom/DOMTimeStamp.h" | 33 #include "core/dom/DOMTimeStamp.h" |
| 34 #include "core/dom/DocumentEncodingData.h" | |
| 34 #include "core/dom/DocumentInit.h" | 35 #include "core/dom/DocumentInit.h" |
| 35 #include "core/dom/DocumentLifecycle.h" | 36 #include "core/dom/DocumentLifecycle.h" |
| 36 #include "core/dom/DocumentSupplementable.h" | 37 #include "core/dom/DocumentSupplementable.h" |
| 37 #include "core/dom/DocumentTiming.h" | 38 #include "core/dom/DocumentTiming.h" |
| 38 #include "core/dom/ExecutionContext.h" | 39 #include "core/dom/ExecutionContext.h" |
| 39 #include "core/dom/IconURL.h" | 40 #include "core/dom/IconURL.h" |
| 40 #include "core/dom/MutationObserver.h" | 41 #include "core/dom/MutationObserver.h" |
| 41 #include "core/dom/QualifiedName.h" | 42 #include "core/dom/QualifiedName.h" |
| 42 #include "core/dom/TextLinkColors.h" | 43 #include "core/dom/TextLinkColors.h" |
| 43 #include "core/dom/TreeScope.h" | 44 #include "core/dom/TreeScope.h" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 145 class SelectorQueryCache; | 146 class SelectorQueryCache; |
| 146 class SerializedScriptValue; | 147 class SerializedScriptValue; |
| 147 class Settings; | 148 class Settings; |
| 148 class StyleEngine; | 149 class StyleEngine; |
| 149 class StyleResolver; | 150 class StyleResolver; |
| 150 class StyleSheet; | 151 class StyleSheet; |
| 151 class StyleSheetContents; | 152 class StyleSheetContents; |
| 152 class StyleSheetList; | 153 class StyleSheetList; |
| 153 class Text; | 154 class Text; |
| 154 class TextAutosizer; | 155 class TextAutosizer; |
| 155 class TextResourceDecoder; | |
| 156 class Touch; | 156 class Touch; |
| 157 class TouchList; | 157 class TouchList; |
| 158 class TransformSource; | 158 class TransformSource; |
| 159 class TreeWalker; | 159 class TreeWalker; |
| 160 class VisitedLinkState; | 160 class VisitedLinkState; |
| 161 class XMLHttpRequest; | 161 class XMLHttpRequest; |
| 162 | 162 |
| 163 struct AnnotatedRegionValue; | 163 struct AnnotatedRegionValue; |
| 164 | 164 |
| 165 class FontFaceSet; | 165 class FontFaceSet; |
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 834 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; } | 834 bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; } |
| 835 void parseDNSPrefetchControlHeader(const String&); | 835 void parseDNSPrefetchControlHeader(const String&); |
| 836 | 836 |
| 837 virtual void postTask(PassOwnPtr<ExecutionContextTask>); // Executes the tas k on context's thread asynchronously. | 837 virtual void postTask(PassOwnPtr<ExecutionContextTask>); // Executes the tas k on context's thread asynchronously. |
| 838 | 838 |
| 839 void suspendScriptedAnimationControllerCallbacks(); | 839 void suspendScriptedAnimationControllerCallbacks(); |
| 840 void resumeScriptedAnimationControllerCallbacks(); | 840 void resumeScriptedAnimationControllerCallbacks(); |
| 841 | 841 |
| 842 void finishedParsing(); | 842 void finishedParsing(); |
| 843 | 843 |
| 844 void setDecoder(PassRefPtr<TextResourceDecoder>); | 844 void setEncodingData(const DocumentEncodingData& newData); |
| 845 TextResourceDecoder* decoder() const { return m_decoder.get(); } | 845 const DocumentEncodingData& encodingData() const { return m_encodingData; } |
|
abarth-chromium
2013/11/14 07:04:33
I didn't see any callers for this function. Can w
oystein (OOO til 10th of July)
2013/11/14 19:02:29
Done.
| |
| 846 const WTF::TextEncoding& encoding() const { return m_encodingData.encoding; } | |
| 846 | 847 |
| 847 void setEncoding(const WTF::TextEncoding&); | 848 bool encodingWasDetectedHeuristically() const { return m_encodingData.wasDet ectedHeuristically; } |
| 848 const WTF::TextEncoding& encoding() const { return m_encoding; } | 849 bool sawDecodingError() const { return m_encodingData.sawDecodingError; } |
| 849 | 850 |
| 850 void setAnnotatedRegionsDirty(bool f) { m_annotatedRegionsDirty = f; } | 851 void setAnnotatedRegionsDirty(bool f) { m_annotatedRegionsDirty = f; } |
| 851 bool annotatedRegionsDirty() const { return m_annotatedRegionsDirty; } | 852 bool annotatedRegionsDirty() const { return m_annotatedRegionsDirty; } |
| 852 bool hasAnnotatedRegions () const { return m_hasAnnotatedRegions; } | 853 bool hasAnnotatedRegions () const { return m_hasAnnotatedRegions; } |
| 853 void setHasAnnotatedRegions(bool f) { m_hasAnnotatedRegions = f; } | 854 void setHasAnnotatedRegions(bool f) { m_hasAnnotatedRegions = f; } |
| 854 const Vector<AnnotatedRegionValue>& annotatedRegions() const; | 855 const Vector<AnnotatedRegionValue>& annotatedRegions() const; |
| 855 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&); | 856 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&); |
| 856 | 857 |
| 857 virtual void removeAllEventListeners(); | 858 virtual void removeAllEventListeners(); |
| 858 | 859 |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1224 OwnPtr<TransformSource> m_transformSource; | 1225 OwnPtr<TransformSource> m_transformSource; |
| 1225 RefPtr<Document> m_transformSourceDocument; | 1226 RefPtr<Document> m_transformSourceDocument; |
| 1226 | 1227 |
| 1227 String m_xmlEncoding; | 1228 String m_xmlEncoding; |
| 1228 String m_xmlVersion; | 1229 String m_xmlVersion; |
| 1229 unsigned m_xmlStandalone : 2; | 1230 unsigned m_xmlStandalone : 2; |
| 1230 unsigned m_hasXMLDeclaration : 1; | 1231 unsigned m_hasXMLDeclaration : 1; |
| 1231 | 1232 |
| 1232 String m_contentLanguage; | 1233 String m_contentLanguage; |
| 1233 | 1234 |
| 1234 RefPtr<TextResourceDecoder> m_decoder; | 1235 DocumentEncodingData m_encodingData; |
| 1235 WTF::TextEncoding m_encoding; | |
| 1236 | 1236 |
| 1237 InheritedBool m_designMode; | 1237 InheritedBool m_designMode; |
| 1238 | 1238 |
| 1239 HashSet<LiveNodeListBase*> m_listsInvalidatedAtDocument; | 1239 HashSet<LiveNodeListBase*> m_listsInvalidatedAtDocument; |
| 1240 unsigned m_nodeListCounts[numNodeListInvalidationTypes]; | 1240 unsigned m_nodeListCounts[numNodeListInvalidationTypes]; |
| 1241 | 1241 |
| 1242 OwnPtr<SVGDocumentExtensions> m_svgExtensions; | 1242 OwnPtr<SVGDocumentExtensions> m_svgExtensions; |
| 1243 | 1243 |
| 1244 Vector<AnnotatedRegionValue> m_annotatedRegions; | 1244 Vector<AnnotatedRegionValue> m_annotatedRegions; |
| 1245 bool m_hasAnnotatedRegions; | 1245 bool m_hasAnnotatedRegions; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1381 inline bool Node::isDocumentNode() const | 1381 inline bool Node::isDocumentNode() const |
| 1382 { | 1382 { |
| 1383 return this == documentInternal(); | 1383 return this == documentInternal(); |
| 1384 } | 1384 } |
| 1385 | 1385 |
| 1386 Node* eventTargetNodeForDocument(Document*); | 1386 Node* eventTargetNodeForDocument(Document*); |
| 1387 | 1387 |
| 1388 } // namespace WebCore | 1388 } // namespace WebCore |
| 1389 | 1389 |
| 1390 #endif // Document_h | 1390 #endif // Document_h |
| OLD | NEW |