Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 1685003002: Plumb the correct owner document through DocumentInit::m_owner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 bool hasAnnotatedRegions () const { return m_hasAnnotatedRegions; } 854 bool hasAnnotatedRegions () const { return m_hasAnnotatedRegions; }
855 void setHasAnnotatedRegions(bool f) { m_hasAnnotatedRegions = f; } 855 void setHasAnnotatedRegions(bool f) { m_hasAnnotatedRegions = f; }
856 const Vector<AnnotatedRegionValue>& annotatedRegions() const; 856 const Vector<AnnotatedRegionValue>& annotatedRegions() const;
857 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&); 857 void setAnnotatedRegions(const Vector<AnnotatedRegionValue>&);
858 858
859 void removeAllEventListeners() final; 859 void removeAllEventListeners() final;
860 860
861 const SVGDocumentExtensions* svgExtensions(); 861 const SVGDocumentExtensions* svgExtensions();
862 SVGDocumentExtensions& accessSVGExtensions(); 862 SVGDocumentExtensions& accessSVGExtensions();
863 863
864 void initSecurityContext();
865 void initSecurityContext(const DocumentInit&);
866 void initContentSecurityPolicy(PassRefPtrWillBeRawPtr<ContentSecurityPolicy> = nullptr); 864 void initContentSecurityPolicy(PassRefPtrWillBeRawPtr<ContentSecurityPolicy> = nullptr);
867 865
866 bool isSecureTransitionTo(const KURL&) const;
867
868 bool allowInlineEventHandlers(Node*, EventListener*, const String& contextUR L, const WTF::OrdinalNumber& contextLine); 868 bool allowInlineEventHandlers(Node*, EventListener*, const String& contextUR L, const WTF::OrdinalNumber& contextLine);
869 bool allowExecutingScripts(Node*); 869 bool allowExecutingScripts(Node*);
870 870
871 void statePopped(PassRefPtr<SerializedScriptValue>); 871 void statePopped(PassRefPtr<SerializedScriptValue>);
872 872
873 enum LoadEventProgress { 873 enum LoadEventProgress {
874 LoadEventNotRun, 874 LoadEventNotRun,
875 LoadEventInProgress, 875 LoadEventInProgress,
876 LoadEventCompleted, 876 LoadEventCompleted,
877 BeforeUnloadEventInProgress, 877 BeforeUnloadEventInProgress,
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
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();
1094 ScriptedIdleTaskController& ensureScriptedIdleTaskController(); 1094 ScriptedIdleTaskController& ensureScriptedIdleTaskController();
1095 void initSecurityContext(const DocumentInit&);
1095 SecurityContext& securityContext() final { return *this; } 1096 SecurityContext& securityContext() final { return *this; }
1096 EventQueue* eventQueue() const final; 1097 EventQueue* eventQueue() const final;
1097 1098
1098 // FIXME: Rename the StyleRecalc state to LayoutTreeUpdate. 1099 // FIXME: Rename the StyleRecalc state to LayoutTreeUpdate.
1099 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL ifecycle::VisualUpdatePending; } 1100 bool hasPendingStyleRecalc() const { return m_lifecycle.state() == DocumentL ifecycle::VisualUpdatePending; }
1100 1101
1101 bool shouldScheduleLayoutTreeUpdate() const; 1102 bool shouldScheduleLayoutTreeUpdate() const;
1102 void scheduleLayoutTreeUpdate(); 1103 void scheduleLayoutTreeUpdate();
1103 1104
1104 bool needsFullLayoutTreeUpdate() const; 1105 bool needsFullLayoutTreeUpdate() const;
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1449 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1449 1450
1450 } // namespace blink 1451 } // namespace blink
1451 1452
1452 #ifndef NDEBUG 1453 #ifndef NDEBUG
1453 // Outside the WebCore namespace for ease of invocation from gdb. 1454 // Outside the WebCore namespace for ease of invocation from gdb.
1454 CORE_EXPORT void showLiveDocumentInstances(); 1455 CORE_EXPORT void showLiveDocumentInstances();
1455 #endif 1456 #endif
1456 1457
1457 #endif // Document_h 1458 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698