| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 void clearXMLVersion() { m_xmlVersion = String(); } | 1056 void clearXMLVersion() { m_xmlVersion = String(); } |
| 1056 | 1057 |
| 1057 virtual void dispose() OVERRIDE; | 1058 virtual void dispose() OVERRIDE; |
| 1058 | 1059 |
| 1059 private: | 1060 private: |
| 1060 friend class Node; | 1061 friend class Node; |
| 1061 friend class IgnoreDestructiveWriteCountIncrementer; | 1062 friend class IgnoreDestructiveWriteCountIncrementer; |
| 1062 | 1063 |
| 1063 void detachParser(); | 1064 void detachParser(); |
| 1064 | 1065 |
| 1065 typedef void (*ArgumentsCallback)(const String& keyString, const String& val
ueString, Document*, void* data); | |
| 1066 void processArguments(const String& features, void* data, ArgumentsCallback)
; | |
| 1067 | |
| 1068 virtual bool isDocument() const OVERRIDE { return true; } | 1066 virtual bool isDocument() const OVERRIDE { return true; } |
| 1069 | 1067 |
| 1070 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); | 1068 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang
e = 0, Node* afterChange = 0, int childCountDelta = 0); |
| 1071 | 1069 |
| 1072 virtual String nodeName() const; | 1070 virtual String nodeName() const; |
| 1073 virtual NodeType nodeType() const; | 1071 virtual NodeType nodeType() const; |
| 1074 virtual bool childTypeAllowed(NodeType) const; | 1072 virtual bool childTypeAllowed(NodeType) const; |
| 1075 virtual PassRefPtr<Node> cloneNode(bool deep = true); | 1073 virtual PassRefPtr<Node> cloneNode(bool deep = true); |
| 1076 | 1074 |
| 1077 virtual void refScriptExecutionContext() { ref(); } | 1075 virtual void refScriptExecutionContext() { ref(); } |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1411 inline bool Node::isDocumentNode() const | 1409 inline bool Node::isDocumentNode() const |
| 1412 { | 1410 { |
| 1413 return this == documentInternal(); | 1411 return this == documentInternal(); |
| 1414 } | 1412 } |
| 1415 | 1413 |
| 1416 Node* eventTargetNodeForDocument(Document*); | 1414 Node* eventTargetNodeForDocument(Document*); |
| 1417 | 1415 |
| 1418 } // namespace WebCore | 1416 } // namespace WebCore |
| 1419 | 1417 |
| 1420 #endif // Document_h | 1418 #endif // Document_h |
| OLD | NEW |