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 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 bool hasAnnotatedRegions () const { return m_hasAnnotatedRegions; } | 853 bool hasAnnotatedRegions () const { return m_hasAnnotatedRegions; } |
854 void setHasAnnotatedRegions(bool f) { m_hasAnnotatedRegions = f; } | 854 void setHasAnnotatedRegions(bool f) { m_hasAnnotatedRegions = f; } |
855 const Vector<AnnotatedRegionValue>& annotatedRegions() const; | 855 const Vector<AnnotatedRegionValue>& annotatedRegions() const; |
856 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&); | 856 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&); |
857 | 857 |
858 void removeAllEventListeners() final; | 858 void removeAllEventListeners() final; |
859 | 859 |
860 const SVGDocumentExtensions* svgExtensions(); | 860 const SVGDocumentExtensions* svgExtensions(); |
861 SVGDocumentExtensions& accessSVGExtensions(); | 861 SVGDocumentExtensions& accessSVGExtensions(); |
862 | 862 |
863 void initSecurityContext(); | |
864 void initSecurityContext(const DocumentInit&); | |
865 void initContentSecurityPolicy(PassRefPtrWillBeRawPtr<ContentSecurityPolicy>
= nullptr); | 863 void initContentSecurityPolicy(PassRefPtrWillBeRawPtr<ContentSecurityPolicy>
= nullptr); |
866 | 864 |
| 865 bool isSecureTransitionTo(const KURL&) const; |
| 866 |
867 bool allowInlineEventHandlers(Node*, EventListener*, const String& contextUR
L, const WTF::OrdinalNumber& contextLine); | 867 bool allowInlineEventHandlers(Node*, EventListener*, const String& contextUR
L, const WTF::OrdinalNumber& contextLine); |
868 bool allowExecutingScripts(Node*); | 868 bool allowExecutingScripts(Node*); |
869 | 869 |
870 void statePopped(PassRefPtr<SerializedScriptValue>); | 870 void statePopped(PassRefPtr<SerializedScriptValue>); |
871 | 871 |
872 enum LoadEventProgress { | 872 enum LoadEventProgress { |
873 LoadEventNotRun, | 873 LoadEventNotRun, |
874 LoadEventInProgress, | 874 LoadEventInProgress, |
875 LoadEventCompleted, | 875 LoadEventCompleted, |
876 BeforeUnloadEventInProgress, | 876 BeforeUnloadEventInProgress, |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1084 private: | 1084 private: |
1085 friend class IgnoreDestructiveWriteCountIncrementer; | 1085 friend class IgnoreDestructiveWriteCountIncrementer; |
1086 friend class NthIndexCache; | 1086 friend class NthIndexCache; |
1087 | 1087 |
1088 bool isDocumentFragment() const = delete; // This will catch anyone doing an
unnecessary check. | 1088 bool isDocumentFragment() const = delete; // This will catch anyone doing an
unnecessary check. |
1089 bool isDocumentNode() const = delete; // This will catch anyone doing an unn
ecessary check. | 1089 bool isDocumentNode() const = delete; // This will catch anyone doing an unn
ecessary check. |
1090 bool isElementNode() const = delete; // This will catch anyone doing an unne
cessary check. | 1090 bool isElementNode() const = delete; // This will catch anyone doing an unne
cessary check. |
1091 | 1091 |
1092 ScriptedAnimationController& ensureScriptedAnimationController(); | 1092 ScriptedAnimationController& ensureScriptedAnimationController(); |
1093 ScriptedIdleTaskController& ensureScriptedIdleTaskController(); | 1093 ScriptedIdleTaskController& ensureScriptedIdleTaskController(); |
| 1094 void initSecurityContext(const DocumentInit&); |
1094 SecurityContext& securityContext() final { return *this; } | 1095 SecurityContext& securityContext() final { return *this; } |
1095 EventQueue* eventQueue() const final; | 1096 EventQueue* eventQueue() const final; |
1096 | 1097 |
1097 // FIXME: Rename the StyleRecalc state to LayoutTreeUpdate. | 1098 // FIXME: Rename the StyleRecalc state to LayoutTreeUpdate. |
1098 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL
ifecycle::VisualUpdatePending; } | 1099 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL
ifecycle::VisualUpdatePending; } |
1099 | 1100 |
1100 bool shouldScheduleLayoutTreeUpdate() const; | 1101 bool shouldScheduleLayoutTreeUpdate() const; |
1101 void scheduleLayoutTreeUpdate(); | 1102 void scheduleLayoutTreeUpdate(); |
1102 | 1103 |
1103 bool needsFullLayoutTreeUpdate() const; | 1104 bool needsFullLayoutTreeUpdate() const; |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1447 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); | 1448 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); |
1448 | 1449 |
1449 } // namespace blink | 1450 } // namespace blink |
1450 | 1451 |
1451 #ifndef NDEBUG | 1452 #ifndef NDEBUG |
1452 // Outside the WebCore namespace for ease of invocation from gdb. | 1453 // Outside the WebCore namespace for ease of invocation from gdb. |
1453 CORE_EXPORT void showLiveDocumentInstances(); | 1454 CORE_EXPORT void showLiveDocumentInstances(); |
1454 #endif | 1455 #endif |
1455 | 1456 |
1456 #endif // Document_h | 1457 #endif // Document_h |
OLD | NEW |