| 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 PassRefPtr<HTMLCollection> windowNamedItems(const AtomicString& name); | 402 PassRefPtr<HTMLCollection> windowNamedItems(const AtomicString& name); |
| 403 PassRefPtr<HTMLCollection> documentNamedItems(const AtomicString& name); | 403 PassRefPtr<HTMLCollection> documentNamedItems(const AtomicString& name); |
| 404 | 404 |
| 405 bool isHTMLDocument() const { return m_documentClasses & HTMLDocumentClass;
} | 405 bool isHTMLDocument() const { return m_documentClasses & HTMLDocumentClass;
} |
| 406 bool isXHTMLDocument() const { return m_documentClasses & XHTMLDocumentClass
; } | 406 bool isXHTMLDocument() const { return m_documentClasses & XHTMLDocumentClass
; } |
| 407 bool isImageDocument() const { return m_documentClasses & ImageDocumentClass
; } | 407 bool isImageDocument() const { return m_documentClasses & ImageDocumentClass
; } |
| 408 bool isSVGDocument() const { return m_documentClasses & SVGDocumentClass; } | 408 bool isSVGDocument() const { return m_documentClasses & SVGDocumentClass; } |
| 409 bool isPluginDocument() const { return m_documentClasses & PluginDocumentCla
ss; } | 409 bool isPluginDocument() const { return m_documentClasses & PluginDocumentCla
ss; } |
| 410 bool isMediaDocument() const { return m_documentClasses & MediaDocumentClass
; } | 410 bool isMediaDocument() const { return m_documentClasses & MediaDocumentClass
; } |
| 411 | 411 |
| 412 bool isXHTMLMobileProfile() const; |
| 413 |
| 412 bool hasSVGRootNode() const; | 414 bool hasSVGRootNode() const; |
| 413 | 415 |
| 414 bool isFrameSet() const; | 416 bool isFrameSet() const; |
| 415 | 417 |
| 416 bool isSrcdocDocument() const { return m_isSrcdocDocument; } | 418 bool isSrcdocDocument() const { return m_isSrcdocDocument; } |
| 417 | 419 |
| 418 StyleResolver* styleResolverIfExists() const { return m_styleResolver.get();
} | 420 StyleResolver* styleResolverIfExists() const { return m_styleResolver.get();
} |
| 419 | 421 |
| 420 bool isViewSource() const { return m_isViewSource; } | 422 bool isViewSource() const { return m_isViewSource; } |
| 421 void setIsViewSource(bool); | 423 void setIsViewSource(bool); |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 /** | 734 /** |
| 733 * Handles a HTTP header equivalent set by a meta tag using <meta http-equiv
="..." content="...">. This is called | 735 * Handles a HTTP header equivalent set by a meta tag using <meta http-equiv
="..." content="...">. This is called |
| 734 * when a meta tag is encountered during document parsing, and also when a s
cript dynamically changes or adds a meta | 736 * when a meta tag is encountered during document parsing, and also when a s
cript dynamically changes or adds a meta |
| 735 * tag. This enables scripts to use meta tags to perform refreshes and set e
xpiry dates in addition to them being | 737 * tag. This enables scripts to use meta tags to perform refreshes and set e
xpiry dates in addition to them being |
| 736 * specified in a HTML file. | 738 * specified in a HTML file. |
| 737 * | 739 * |
| 738 * @param equiv The http header name (value of the meta tag's "equiv" attrib
ute) | 740 * @param equiv The http header name (value of the meta tag's "equiv" attrib
ute) |
| 739 * @param content The header value (value of the meta tag's "content" attrib
ute) | 741 * @param content The header value (value of the meta tag's "content" attrib
ute) |
| 740 */ | 742 */ |
| 741 void processHttpEquiv(const String& equiv, const String& content); | 743 void processHttpEquiv(const String& equiv, const String& content); |
| 742 void processViewport(const String& features, ViewportArguments::Type origin)
; | |
| 743 void updateViewportArguments(); | 744 void updateViewportArguments(); |
| 744 void processReferrerPolicy(const String& policy); | 745 void processReferrerPolicy(const String& policy); |
| 745 | 746 |
| 746 // Returns the owning element in the parent document. | 747 // Returns the owning element in the parent document. |
| 747 // Returns 0 if this is the top level document. | 748 // Returns 0 if this is the top level document. |
| 748 HTMLFrameOwnerElement* ownerElement() const; | 749 HTMLFrameOwnerElement* ownerElement() const; |
| 749 | 750 |
| 750 HTMLIFrameElement* seamlessParentIFrame() const; | 751 HTMLIFrameElement* seamlessParentIFrame() const; |
| 751 bool shouldDisplaySeamlesslyWithParent() const; | 752 bool shouldDisplaySeamlesslyWithParent() const; |
| 752 | 753 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1042 void clearXMLVersion() { m_xmlVersion = String(); } | 1043 void clearXMLVersion() { m_xmlVersion = String(); } |
| 1043 | 1044 |
| 1044 virtual void dispose() OVERRIDE; | 1045 virtual void dispose() OVERRIDE; |
| 1045 | 1046 |
| 1046 private: | 1047 private: |
| 1047 friend class Node; | 1048 friend class Node; |
| 1048 friend class IgnoreDestructiveWriteCountIncrementer; | 1049 friend class IgnoreDestructiveWriteCountIncrementer; |
| 1049 | 1050 |
| 1050 void detachParser(); | 1051 void detachParser(); |
| 1051 | 1052 |
| 1052 typedef void (*ArgumentsCallback)(const String& keyString, const String& val
ueString, Document*, void* data); | |
| 1053 void processArguments(const String& features, void* data, ArgumentsCallback)
; | |
| 1054 | |
| 1055 virtual bool isDocument() const OVERRIDE { return true; } | 1053 virtual bool isDocument() const OVERRIDE { return true; } |
| 1056 | 1054 |
| 1057 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 1055 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
| 1058 | 1056 |
| 1059 virtual String nodeName() const; | 1057 virtual String nodeName() const; |
| 1060 virtual NodeType nodeType() const; | 1058 virtual NodeType nodeType() const; |
| 1061 virtual bool childTypeAllowed(NodeType) const; | 1059 virtual bool childTypeAllowed(NodeType) const; |
| 1062 virtual PassRefPtr<Node> cloneNode(bool deep = true); | 1060 virtual PassRefPtr<Node> cloneNode(bool deep = true); |
| 1063 | 1061 |
| 1064 virtual void refScriptExecutionContext() { ref(); } | 1062 virtual void refScriptExecutionContext() { ref(); } |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1397 inline bool Node::isDocumentNode() const | 1395 inline bool Node::isDocumentNode() const |
| 1398 { | 1396 { |
| 1399 return this == documentInternal(); | 1397 return this == documentInternal(); |
| 1400 } | 1398 } |
| 1401 | 1399 |
| 1402 Node* eventTargetNodeForDocument(Document*); | 1400 Node* eventTargetNodeForDocument(Document*); |
| 1403 | 1401 |
| 1404 } // namespace WebCore | 1402 } // namespace WebCore |
| 1405 | 1403 |
| 1406 #endif // Document_h | 1404 #endif // Document_h |
| OLD | NEW |