| 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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 bool wasPrinting() const { return m_wasPrinting; } | 545 bool wasPrinting() const { return m_wasPrinting; } |
| 546 | 546 |
| 547 bool paginatedForScreen() const { return m_paginatedForScreen; } | 547 bool paginatedForScreen() const { return m_paginatedForScreen; } |
| 548 void setPaginatedForScreen(bool p) { m_paginatedForScreen = p; } | 548 void setPaginatedForScreen(bool p) { m_paginatedForScreen = p; } |
| 549 | 549 |
| 550 bool paginated() const { return printing() || paginatedForScreen(); } | 550 bool paginated() const { return printing() || paginatedForScreen(); } |
| 551 | 551 |
| 552 enum CompatibilityMode { QuirksMode, LimitedQuirksMode, NoQuirksMode }; | 552 enum CompatibilityMode { QuirksMode, LimitedQuirksMode, NoQuirksMode }; |
| 553 | 553 |
| 554 void setCompatibilityMode(CompatibilityMode); | 554 void setCompatibilityMode(CompatibilityMode); |
| 555 CompatibilityMode compatibilityMode() const { return m_compatibilityMode; } | 555 CompatibilityMode getCompatibilityMode() const { return m_compatibilityMode;
} |
| 556 | 556 |
| 557 String compatMode() const; | 557 String compatMode() const; |
| 558 | 558 |
| 559 bool inQuirksMode() const { return m_compatibilityMode == QuirksMode; } | 559 bool inQuirksMode() const { return m_compatibilityMode == QuirksMode; } |
| 560 bool inLimitedQuirksMode() const { return m_compatibilityMode == LimitedQuir
ksMode; } | 560 bool inLimitedQuirksMode() const { return m_compatibilityMode == LimitedQuir
ksMode; } |
| 561 bool inNoQuirksMode() const { return m_compatibilityMode == NoQuirksMode; } | 561 bool inNoQuirksMode() const { return m_compatibilityMode == NoQuirksMode; } |
| 562 | 562 |
| 563 enum ReadyState { | 563 enum ReadyState { |
| 564 Loading, | 564 Loading, |
| 565 Interactive, | 565 Interactive, |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 void clearXMLVersion() { m_xmlVersion = String(); } | 1073 void clearXMLVersion() { m_xmlVersion = String(); } |
| 1074 | 1074 |
| 1075 #if !ENABLE(OILPAN) | 1075 #if !ENABLE(OILPAN) |
| 1076 void dispose() override; | 1076 void dispose() override; |
| 1077 #endif | 1077 #endif |
| 1078 | 1078 |
| 1079 virtual PassRefPtrWillBeRawPtr<Document> cloneDocumentWithoutChildren(); | 1079 virtual PassRefPtrWillBeRawPtr<Document> cloneDocumentWithoutChildren(); |
| 1080 | 1080 |
| 1081 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr
WillBeRawPtr<ContainerNode> newContainerNode, ExceptionState&); | 1081 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr
WillBeRawPtr<ContainerNode> newContainerNode, ExceptionState&); |
| 1082 void lockCompatibilityMode() { m_compatibilityModeLocked = true; } | 1082 void lockCompatibilityMode() { m_compatibilityModeLocked = true; } |
| 1083 ParserSynchronizationPolicy parserSynchronizationPolicy() const { return m_p
arserSyncPolicy; } | 1083 ParserSynchronizationPolicy getParserSynchronizationPolicy() const { return
m_parserSyncPolicy; } |
| 1084 | 1084 |
| 1085 private: | 1085 private: |
| 1086 friend class IgnoreDestructiveWriteCountIncrementer; | 1086 friend class IgnoreDestructiveWriteCountIncrementer; |
| 1087 friend class NthIndexCache; | 1087 friend class NthIndexCache; |
| 1088 | 1088 |
| 1089 bool isDocumentFragment() const = delete; // This will catch anyone doing an
unnecessary check. | 1089 bool isDocumentFragment() const = delete; // This will catch anyone doing an
unnecessary check. |
| 1090 bool isDocumentNode() const = delete; // This will catch anyone doing an unn
ecessary check. | 1090 bool isDocumentNode() const = delete; // This will catch anyone doing an unn
ecessary check. |
| 1091 bool isElementNode() const = delete; // This will catch anyone doing an unne
cessary check. | 1091 bool isElementNode() const = delete; // This will catch anyone doing an unne
cessary check. |
| 1092 | 1092 |
| 1093 ScriptedAnimationController& ensureScriptedAnimationController(); | 1093 ScriptedAnimationController& ensureScriptedAnimationController(); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1113 void updateStyle(); | 1113 void updateStyle(); |
| 1114 void notifyLayoutTreeOfSubtreeChanges(); | 1114 void notifyLayoutTreeOfSubtreeChanges(); |
| 1115 | 1115 |
| 1116 void detachParser(); | 1116 void detachParser(); |
| 1117 | 1117 |
| 1118 bool isDocument() const final { return true; } | 1118 bool isDocument() const final { return true; } |
| 1119 | 1119 |
| 1120 void childrenChanged(const ChildrenChange&) override; | 1120 void childrenChanged(const ChildrenChange&) override; |
| 1121 | 1121 |
| 1122 String nodeName() const final; | 1122 String nodeName() const final; |
| 1123 NodeType nodeType() const final; | 1123 NodeType getNodeType() const final; |
| 1124 bool childTypeAllowed(NodeType) const final; | 1124 bool childTypeAllowed(NodeType) const final; |
| 1125 PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep) final; | 1125 PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep) final; |
| 1126 void cloneDataFromDocument(const Document&); | 1126 void cloneDataFromDocument(const Document&); |
| 1127 bool isSecureContextImpl(String* errorMessage, const SecureContextCheck priv
iligeContextCheck) const; | 1127 bool isSecureContextImpl(String* errorMessage, const SecureContextCheck priv
iligeContextCheck) const; |
| 1128 | 1128 |
| 1129 #if !ENABLE(OILPAN) | 1129 #if !ENABLE(OILPAN) |
| 1130 void refExecutionContext() final { ref(); } | 1130 void refExecutionContext() final { ref(); } |
| 1131 void derefExecutionContext() final { deref(); } | 1131 void derefExecutionContext() final { deref(); } |
| 1132 #endif | 1132 #endif |
| 1133 | 1133 |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1448 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1448 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
| 1449 | 1449 |
| 1450 } // namespace blink | 1450 } // namespace blink |
| 1451 | 1451 |
| 1452 #ifndef NDEBUG | 1452 #ifndef NDEBUG |
| 1453 // Outside the WebCore namespace for ease of invocation from gdb. | 1453 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1454 CORE_EXPORT void showLiveDocumentInstances(); | 1454 CORE_EXPORT void showLiveDocumentInstances(); |
| 1455 #endif | 1455 #endif |
| 1456 | 1456 |
| 1457 #endif // Document_h | 1457 #endif // Document_h |
| OLD | NEW |