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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 AtomicString characterSet() const { return Document::encodingName(); } | 330 AtomicString characterSet() const { return Document::encodingName(); } |
331 | 331 |
332 AtomicString encodingName() const; | 332 AtomicString encodingName() const; |
333 | 333 |
334 void setCharset(const String&); | 334 void setCharset(const String&); |
335 | 335 |
336 void setContent(const String&); | 336 void setContent(const String&); |
337 | 337 |
338 String suggestedMIMEType() const; | 338 String suggestedMIMEType() const; |
339 | 339 |
340 String contentLanguage() const { return m_contentLanguage; } | 340 const AtomicString& contentLanguage() const { return m_contentLanguage; } |
341 void setContentLanguage(const String&); | 341 void setContentLanguage(const AtomicString&); |
342 | 342 |
343 String xmlEncoding() const { return m_xmlEncoding; } | 343 String xmlEncoding() const { return m_xmlEncoding; } |
344 String xmlVersion() const { return m_xmlVersion; } | 344 String xmlVersion() const { return m_xmlVersion; } |
345 enum StandaloneStatus { StandaloneUnspecified, Standalone, NotStandalone }; | 345 enum StandaloneStatus { StandaloneUnspecified, Standalone, NotStandalone }; |
346 bool xmlStandalone() const { return m_xmlStandalone == Standalone; } | 346 bool xmlStandalone() const { return m_xmlStandalone == Standalone; } |
347 StandaloneStatus xmlStandaloneStatus() const { return static_cast<Standalone
Status>(m_xmlStandalone); } | 347 StandaloneStatus xmlStandaloneStatus() const { return static_cast<Standalone
Status>(m_xmlStandalone); } |
348 bool hasXMLDeclaration() const { return m_hasXMLDeclaration; } | 348 bool hasXMLDeclaration() const { return m_hasXMLDeclaration; } |
349 | 349 |
350 void setXMLEncoding(const String& encoding) { m_xmlEncoding = encoding; } //
read-only property, only to be set from XMLDocumentParser | 350 void setXMLEncoding(const String& encoding) { m_xmlEncoding = encoding; } //
read-only property, only to be set from XMLDocumentParser |
351 void setXMLVersion(const String&, ExceptionState&); | 351 void setXMLVersion(const String&, ExceptionState&); |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 | 696 |
697 /** | 697 /** |
698 * Handles a HTTP header equivalent set by a meta tag using <meta http-equiv
="..." content="...">. This is called | 698 * Handles a HTTP header equivalent set by a meta tag using <meta http-equiv
="..." content="...">. This is called |
699 * when a meta tag is encountered during document parsing, and also when a s
cript dynamically changes or adds a meta | 699 * when a meta tag is encountered during document parsing, and also when a s
cript dynamically changes or adds a meta |
700 * tag. This enables scripts to use meta tags to perform refreshes and set e
xpiry dates in addition to them being | 700 * tag. This enables scripts to use meta tags to perform refreshes and set e
xpiry dates in addition to them being |
701 * specified in a HTML file. | 701 * specified in a HTML file. |
702 * | 702 * |
703 * @param equiv The http header name (value of the meta tag's "equiv" attrib
ute) | 703 * @param equiv The http header name (value of the meta tag's "equiv" attrib
ute) |
704 * @param content The header value (value of the meta tag's "content" attrib
ute) | 704 * @param content The header value (value of the meta tag's "content" attrib
ute) |
705 */ | 705 */ |
706 void processHttpEquiv(const String& equiv, const String& content); | 706 void processHttpEquiv(const AtomicString& equiv, const AtomicString& content
); |
707 void processViewport(const String& features, ViewportDescription::Type origi
n); | 707 void processViewport(const String& features, ViewportDescription::Type origi
n); |
708 void updateViewportDescription(); | 708 void updateViewportDescription(); |
709 void processReferrerPolicy(const String& policy); | 709 void processReferrerPolicy(const String& policy); |
710 | 710 |
711 // Returns the owning element in the parent document. | 711 // Returns the owning element in the parent document. |
712 // Returns 0 if this is the top level document. | 712 // Returns 0 if this is the top level document. |
713 HTMLFrameOwnerElement* ownerElement() const; | 713 HTMLFrameOwnerElement* ownerElement() const; |
714 | 714 |
715 HTMLIFrameElement* seamlessParentIFrame() const; | 715 HTMLIFrameElement* seamlessParentIFrame() const; |
716 bool shouldDisplaySeamlesslyWithParent() const; | 716 bool shouldDisplaySeamlesslyWithParent() const; |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 // the Frame, so callers should take a reference to the DOMWindow (which own
s us) to | 1080 // the Frame, so callers should take a reference to the DOMWindow (which own
s us) to |
1081 // prevent the Document from getting blown away from underneath them. | 1081 // prevent the Document from getting blown away from underneath them. |
1082 void dispatchWindowLoadEvent(); | 1082 void dispatchWindowLoadEvent(); |
1083 | 1083 |
1084 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene
rType; } | 1084 void addListenerType(ListenerType listenerType) { m_listenerTypes |= listene
rType; } |
1085 void addMutationEventListenerTypeIfEnabled(ListenerType); | 1085 void addMutationEventListenerTypeIfEnabled(ListenerType); |
1086 | 1086 |
1087 void didAssociateFormControlsTimerFired(Timer<Document>*); | 1087 void didAssociateFormControlsTimerFired(Timer<Document>*); |
1088 void styleResolverThrowawayTimerFired(Timer<Document>*); | 1088 void styleResolverThrowawayTimerFired(Timer<Document>*); |
1089 | 1089 |
1090 void processHttpEquivDefaultStyle(const String& content); | 1090 void processHttpEquivDefaultStyle(const AtomicString& content); |
1091 void processHttpEquivRefresh(const String& content); | 1091 void processHttpEquivRefresh(const AtomicString& content); |
1092 void processHttpEquivSetCookie(const String& content); | 1092 void processHttpEquivSetCookie(const AtomicString& content); |
1093 void processHttpEquivXFrameOptions(const String& content); | 1093 void processHttpEquivXFrameOptions(const AtomicString& content); |
1094 void processHttpEquivContentSecurityPolicy(const String& equiv, const String
& content); | 1094 void processHttpEquivContentSecurityPolicy(const AtomicString& equiv, const
AtomicString& content); |
1095 | 1095 |
1096 DocumentLifecycle m_lifecyle; | 1096 DocumentLifecycle m_lifecyle; |
1097 | 1097 |
1098 bool m_hasNodesWithPlaceholderStyle; | 1098 bool m_hasNodesWithPlaceholderStyle; |
1099 bool m_needsNotifyRemoveAllPendingStylesheet; | 1099 bool m_needsNotifyRemoveAllPendingStylesheet; |
1100 bool m_evaluateMediaQueriesOnStyleRecalc; | 1100 bool m_evaluateMediaQueriesOnStyleRecalc; |
1101 | 1101 |
1102 // If we do ignore the pending stylesheet count, then we need to add a boole
an | 1102 // If we do ignore the pending stylesheet count, then we need to add a boole
an |
1103 // to track that this happened so that we can do a full repaint when the sty
lesheets | 1103 // to track that this happened so that we can do a full repaint when the sty
lesheets |
1104 // do eventually load. | 1104 // do eventually load. |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1207 Vector<RefPtr<HTMLScriptElement> > m_currentScriptStack; | 1207 Vector<RefPtr<HTMLScriptElement> > m_currentScriptStack; |
1208 | 1208 |
1209 OwnPtr<TransformSource> m_transformSource; | 1209 OwnPtr<TransformSource> m_transformSource; |
1210 RefPtr<Document> m_transformSourceDocument; | 1210 RefPtr<Document> m_transformSourceDocument; |
1211 | 1211 |
1212 String m_xmlEncoding; | 1212 String m_xmlEncoding; |
1213 String m_xmlVersion; | 1213 String m_xmlVersion; |
1214 unsigned m_xmlStandalone : 2; | 1214 unsigned m_xmlStandalone : 2; |
1215 unsigned m_hasXMLDeclaration : 1; | 1215 unsigned m_hasXMLDeclaration : 1; |
1216 | 1216 |
1217 String m_contentLanguage; | 1217 AtomicString m_contentLanguage; |
1218 | 1218 |
1219 DocumentEncodingData m_encodingData; | 1219 DocumentEncodingData m_encodingData; |
1220 | 1220 |
1221 InheritedBool m_designMode; | 1221 InheritedBool m_designMode; |
1222 | 1222 |
1223 HashSet<LiveNodeListBase*> m_listsInvalidatedAtDocument; | 1223 HashSet<LiveNodeListBase*> m_listsInvalidatedAtDocument; |
1224 unsigned m_nodeListCounts[numNodeListInvalidationTypes]; | 1224 unsigned m_nodeListCounts[numNodeListInvalidationTypes]; |
1225 | 1225 |
1226 OwnPtr<SVGDocumentExtensions> m_svgExtensions; | 1226 OwnPtr<SVGDocumentExtensions> m_svgExtensions; |
1227 | 1227 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1363 inline bool Node::isDocumentNode() const | 1363 inline bool Node::isDocumentNode() const |
1364 { | 1364 { |
1365 return this == documentInternal(); | 1365 return this == documentInternal(); |
1366 } | 1366 } |
1367 | 1367 |
1368 Node* eventTargetNodeForDocument(Document*); | 1368 Node* eventTargetNodeForDocument(Document*); |
1369 | 1369 |
1370 } // namespace WebCore | 1370 } // namespace WebCore |
1371 | 1371 |
1372 #endif // Document_h | 1372 #endif // Document_h |
OLD | NEW |