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 29 matching lines...) Expand all Loading... |
40 #include "core/dom/DocumentTiming.h" | 40 #include "core/dom/DocumentTiming.h" |
41 #include "core/dom/ExecutionContext.h" | 41 #include "core/dom/ExecutionContext.h" |
42 #include "core/dom/MutationObserver.h" | 42 #include "core/dom/MutationObserver.h" |
43 #include "core/dom/TextLinkColors.h" | 43 #include "core/dom/TextLinkColors.h" |
44 #include "core/dom/TreeScope.h" | 44 #include "core/dom/TreeScope.h" |
45 #include "core/dom/UserActionElementSet.h" | 45 #include "core/dom/UserActionElementSet.h" |
46 #include "core/dom/ViewportDescription.h" | 46 #include "core/dom/ViewportDescription.h" |
47 #include "core/dom/custom/CustomElement.h" | 47 #include "core/dom/custom/CustomElement.h" |
48 #include "core/frame/LocalDOMWindow.h" | 48 #include "core/frame/LocalDOMWindow.h" |
49 #include "core/html/CollectionType.h" | 49 #include "core/html/CollectionType.h" |
| 50 #include "core/html/parser/ParserSynchronizationPolicy.h" |
50 #include "core/page/FocusType.h" | 51 #include "core/page/FocusType.h" |
51 #include "core/page/PageVisibilityState.h" | 52 #include "core/page/PageVisibilityState.h" |
52 #include "platform/Length.h" | 53 #include "platform/Length.h" |
53 #include "platform/Timer.h" | 54 #include "platform/Timer.h" |
54 #include "platform/heap/Handle.h" | 55 #include "platform/heap/Handle.h" |
55 #include "platform/weborigin/KURL.h" | 56 #include "platform/weborigin/KURL.h" |
56 #include "platform/weborigin/ReferrerPolicy.h" | 57 #include "platform/weborigin/ReferrerPolicy.h" |
57 #include "wtf/HashSet.h" | 58 #include "wtf/HashSet.h" |
58 #include "wtf/OwnPtr.h" | 59 #include "wtf/OwnPtr.h" |
59 #include "wtf/PassOwnPtr.h" | 60 #include "wtf/PassOwnPtr.h" |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 AXObjectCache* existingAXObjectCache() const; | 503 AXObjectCache* existingAXObjectCache() const; |
503 AXObjectCache* axObjectCache() const; | 504 AXObjectCache* axObjectCache() const; |
504 void clearAXObjectCache(); | 505 void clearAXObjectCache(); |
505 | 506 |
506 // to get visually ordered hebrew and arabic pages right | 507 // to get visually ordered hebrew and arabic pages right |
507 bool visuallyOrdered() const { return m_visuallyOrdered; } | 508 bool visuallyOrdered() const { return m_visuallyOrdered; } |
508 | 509 |
509 DocumentLoader* loader() const; | 510 DocumentLoader* loader() const; |
510 | 511 |
511 void open(Document* ownerDocument = nullptr, ExceptionState& = ASSERT_NO_EXC
EPTION); | 512 void open(Document* ownerDocument = nullptr, ExceptionState& = ASSERT_NO_EXC
EPTION); |
512 PassRefPtrWillBeRawPtr<DocumentParser> implicitOpen(); | 513 PassRefPtrWillBeRawPtr<DocumentParser> implicitOpen(ParserSynchronizationPol
icy); |
513 | 514 |
514 // close() is the DOM API document.close() | 515 // close() is the DOM API document.close() |
515 void close(ExceptionState& = ASSERT_NO_EXCEPTION); | 516 void close(ExceptionState& = ASSERT_NO_EXCEPTION); |
516 // In some situations (see the code), we ignore document.close(). | 517 // In some situations (see the code), we ignore document.close(). |
517 // explicitClose() bypass these checks and actually tries to close the | 518 // explicitClose() bypass these checks and actually tries to close the |
518 // input stream. | 519 // input stream. |
519 void explicitClose(); | 520 void explicitClose(); |
520 // implicitClose() actually does the work of closing the input stream. | 521 // implicitClose() actually does the work of closing the input stream. |
521 void implicitClose(); | 522 void implicitClose(); |
522 | 523 |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1064 void clearXMLVersion() { m_xmlVersion = String(); } | 1065 void clearXMLVersion() { m_xmlVersion = String(); } |
1065 | 1066 |
1066 #if !ENABLE(OILPAN) | 1067 #if !ENABLE(OILPAN) |
1067 virtual void dispose() override; | 1068 virtual void dispose() override; |
1068 #endif | 1069 #endif |
1069 | 1070 |
1070 virtual PassRefPtrWillBeRawPtr<Document> cloneDocumentWithoutChildren(); | 1071 virtual PassRefPtrWillBeRawPtr<Document> cloneDocumentWithoutChildren(); |
1071 | 1072 |
1072 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr
WillBeRawPtr<ContainerNode> newContainerNode, ExceptionState&); | 1073 bool importContainerNodeChildren(ContainerNode* oldContainerNode, PassRefPtr
WillBeRawPtr<ContainerNode> newContainerNode, ExceptionState&); |
1073 void lockCompatibilityMode() { m_compatibilityModeLocked = true; } | 1074 void lockCompatibilityMode() { m_compatibilityModeLocked = true; } |
| 1075 ParserSynchronizationPolicy parserSynchronizationPolicy() const { return m_p
arserSyncPolicy; } |
1074 | 1076 |
1075 private: | 1077 private: |
1076 friend class Node; | 1078 friend class Node; |
1077 friend class IgnoreDestructiveWriteCountIncrementer; | 1079 friend class IgnoreDestructiveWriteCountIncrementer; |
1078 | 1080 |
1079 bool isDocumentFragment() const = delete; // This will catch anyone doing an
unnecessary check. | 1081 bool isDocumentFragment() const = delete; // This will catch anyone doing an
unnecessary check. |
1080 bool isDocumentNode() const = delete; // This will catch anyone doing an unn
ecessary check. | 1082 bool isDocumentNode() const = delete; // This will catch anyone doing an unn
ecessary check. |
1081 bool isElementNode() const = delete; // This will catch anyone doing an unne
cessary check. | 1083 bool isElementNode() const = delete; // This will catch anyone doing an unne
cessary check. |
1082 | 1084 |
1083 ScriptedAnimationController& ensureScriptedAnimationController(); | 1085 ScriptedAnimationController& ensureScriptedAnimationController(); |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1378 | 1380 |
1379 WillBeHeapHashSet<RawPtrWillBeMember<SVGUseElement>> m_useElementsNeedingUpd
ate; | 1381 WillBeHeapHashSet<RawPtrWillBeMember<SVGUseElement>> m_useElementsNeedingUpd
ate; |
1380 WillBeHeapHashSet<RawPtrWillBeMember<Element>> m_layerUpdateSVGFilterElement
s; | 1382 WillBeHeapHashSet<RawPtrWillBeMember<Element>> m_layerUpdateSVGFilterElement
s; |
1381 | 1383 |
1382 bool m_hasViewportUnits; | 1384 bool m_hasViewportUnits; |
1383 | 1385 |
1384 using DocumentVisibilityObserverSet = WillBeHeapHashSet<RawPtrWillBeWeakMemb
er<DocumentVisibilityObserver>>; | 1386 using DocumentVisibilityObserverSet = WillBeHeapHashSet<RawPtrWillBeWeakMemb
er<DocumentVisibilityObserver>>; |
1385 DocumentVisibilityObserverSet m_visibilityObservers; | 1387 DocumentVisibilityObserverSet m_visibilityObservers; |
1386 | 1388 |
1387 int m_styleRecalcElementCounter; | 1389 int m_styleRecalcElementCounter; |
| 1390 |
| 1391 ParserSynchronizationPolicy m_parserSyncPolicy; |
1388 }; | 1392 }; |
1389 | 1393 |
1390 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type
origin) | 1394 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type
origin) |
1391 { | 1395 { |
1392 // The different (legacy) meta tags have different priorities based on the t
ype | 1396 // The different (legacy) meta tags have different priorities based on the t
ype |
1393 // regardless of which order they appear in the DOM. The priority is given b
y the | 1397 // regardless of which order they appear in the DOM. The priority is given b
y the |
1394 // ViewportDescription::Type enum. | 1398 // ViewportDescription::Type enum. |
1395 return origin >= m_legacyViewportDescription.type; | 1399 return origin >= m_legacyViewportDescription.type; |
1396 } | 1400 } |
1397 | 1401 |
(...skipping 27 matching lines...) Expand all Loading... |
1425 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1429 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1426 | 1430 |
1427 } // namespace blink | 1431 } // namespace blink |
1428 | 1432 |
1429 #ifndef NDEBUG | 1433 #ifndef NDEBUG |
1430 // Outside the WebCore namespace for ease of invocation from gdb. | 1434 // Outside the WebCore namespace for ease of invocation from gdb. |
1431 void showLiveDocumentInstances(); | 1435 void showLiveDocumentInstances(); |
1432 #endif | 1436 #endif |
1433 | 1437 |
1434 #endif // Document_h | 1438 #endif // Document_h |
OLD | NEW |