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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "core/dom/DocumentTiming.h" | 42 #include "core/dom/DocumentTiming.h" |
43 #include "core/dom/ExecutionContext.h" | 43 #include "core/dom/ExecutionContext.h" |
44 #include "core/dom/MutationObserver.h" | 44 #include "core/dom/MutationObserver.h" |
45 #include "core/dom/TextLinkColors.h" | 45 #include "core/dom/TextLinkColors.h" |
46 #include "core/dom/TreeScope.h" | 46 #include "core/dom/TreeScope.h" |
47 #include "core/dom/UserActionElementSet.h" | 47 #include "core/dom/UserActionElementSet.h" |
48 #include "core/dom/ViewportDescription.h" | 48 #include "core/dom/ViewportDescription.h" |
49 #include "core/dom/custom/CustomElement.h" | 49 #include "core/dom/custom/CustomElement.h" |
50 #include "core/frame/DOMTimerCoordinator.h" | 50 #include "core/frame/DOMTimerCoordinator.h" |
51 #include "core/frame/LocalDOMWindow.h" | 51 #include "core/frame/LocalDOMWindow.h" |
| 52 #include "core/frame/OriginsUsingFeatures.h" |
52 #include "core/html/CollectionType.h" | 53 #include "core/html/CollectionType.h" |
53 #include "core/html/parser/ParserSynchronizationPolicy.h" | 54 #include "core/html/parser/ParserSynchronizationPolicy.h" |
54 #include "core/page/PageVisibilityState.h" | 55 #include "core/page/PageVisibilityState.h" |
55 #include "platform/Length.h" | 56 #include "platform/Length.h" |
56 #include "platform/Timer.h" | 57 #include "platform/Timer.h" |
57 #include "platform/heap/Handle.h" | 58 #include "platform/heap/Handle.h" |
58 #include "platform/weborigin/KURL.h" | 59 #include "platform/weborigin/KURL.h" |
59 #include "platform/weborigin/ReferrerPolicy.h" | 60 #include "platform/weborigin/ReferrerPolicy.h" |
60 #include "public/platform/WebFocusType.h" | 61 #include "public/platform/WebFocusType.h" |
61 #include "wtf/HashSet.h" | 62 #include "wtf/HashSet.h" |
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1054 | 1055 |
1055 AtomicString convertLocalName(const AtomicString&); | 1056 AtomicString convertLocalName(const AtomicString&); |
1056 | 1057 |
1057 void platformColorsChanged(); | 1058 void platformColorsChanged(); |
1058 | 1059 |
1059 virtual DOMTimerCoordinator* timers() override final; | 1060 virtual DOMTimerCoordinator* timers() override final; |
1060 | 1061 |
1061 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) override; | 1062 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate*) override; |
1062 virtual v8::Handle<v8::Object> associateWithWrapper(v8::Isolate*, const Wrap
perTypeInfo*, v8::Handle<v8::Object> wrapper) override; | 1063 virtual v8::Handle<v8::Object> associateWithWrapper(v8::Isolate*, const Wrap
perTypeInfo*, v8::Handle<v8::Object> wrapper) override; |
1063 | 1064 |
| 1065 OriginsUsingFeatures::Value& originsUsingFeaturesValue() { return m_originsU
singFeaturesValue; } |
| 1066 |
1064 protected: | 1067 protected: |
1065 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); | 1068 Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass); |
1066 | 1069 |
1067 virtual void didUpdateSecurityOrigin() override final; | 1070 virtual void didUpdateSecurityOrigin() override final; |
1068 | 1071 |
1069 void clearXMLVersion() { m_xmlVersion = String(); } | 1072 void clearXMLVersion() { m_xmlVersion = String(); } |
1070 | 1073 |
1071 #if !ENABLE(OILPAN) | 1074 #if !ENABLE(OILPAN) |
1072 virtual void dispose() override; | 1075 virtual void dispose() override; |
1073 #endif | 1076 #endif |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1388 DOMTimerCoordinator m_timers; | 1391 DOMTimerCoordinator m_timers; |
1389 | 1392 |
1390 bool m_hasViewportUnits; | 1393 bool m_hasViewportUnits; |
1391 | 1394 |
1392 using DocumentVisibilityObserverSet = WillBeHeapHashSet<RawPtrWillBeWeakMemb
er<DocumentVisibilityObserver>>; | 1395 using DocumentVisibilityObserverSet = WillBeHeapHashSet<RawPtrWillBeWeakMemb
er<DocumentVisibilityObserver>>; |
1393 DocumentVisibilityObserverSet m_visibilityObservers; | 1396 DocumentVisibilityObserverSet m_visibilityObservers; |
1394 | 1397 |
1395 int m_styleRecalcElementCounter; | 1398 int m_styleRecalcElementCounter; |
1396 | 1399 |
1397 ParserSynchronizationPolicy m_parserSyncPolicy; | 1400 ParserSynchronizationPolicy m_parserSyncPolicy; |
| 1401 |
| 1402 OriginsUsingFeatures::Value m_originsUsingFeaturesValue; |
1398 }; | 1403 }; |
1399 | 1404 |
1400 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type
origin) | 1405 inline bool Document::shouldOverrideLegacyDescription(ViewportDescription::Type
origin) |
1401 { | 1406 { |
1402 // The different (legacy) meta tags have different priorities based on the t
ype | 1407 // The different (legacy) meta tags have different priorities based on the t
ype |
1403 // regardless of which order they appear in the DOM. The priority is given b
y the | 1408 // regardless of which order they appear in the DOM. The priority is given b
y the |
1404 // ViewportDescription::Type enum. | 1409 // ViewportDescription::Type enum. |
1405 return origin >= m_legacyViewportDescription.type; | 1410 return origin >= m_legacyViewportDescription.type; |
1406 } | 1411 } |
1407 | 1412 |
(...skipping 27 matching lines...) Expand all Loading... |
1435 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1440 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1436 | 1441 |
1437 } // namespace blink | 1442 } // namespace blink |
1438 | 1443 |
1439 #ifndef NDEBUG | 1444 #ifndef NDEBUG |
1440 // Outside the WebCore namespace for ease of invocation from gdb. | 1445 // Outside the WebCore namespace for ease of invocation from gdb. |
1441 void showLiveDocumentInstances(); | 1446 void showLiveDocumentInstances(); |
1442 #endif | 1447 #endif |
1443 | 1448 |
1444 #endif // Document_h | 1449 #endif // Document_h |
OLD | NEW |