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

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

Powered by Google App Engine
This is Rietveld 408576698