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

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

Issue 1868413002: Add about:flags support for doc.write script blocking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 8 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 915 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 void serviceScriptedAnimations(double monotonicAnimationStartTime); 926 void serviceScriptedAnimations(double monotonicAnimationStartTime);
927 927
928 int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&); 928 int requestIdleCallback(IdleRequestCallback*, const IdleRequestOptions&);
929 void cancelIdleCallback(int id); 929 void cancelIdleCallback(int id);
930 930
931 EventTarget* errorEventTarget() final; 931 EventTarget* errorEventTarget() final;
932 void logExceptionToConsole(const String& errorMessage, int scriptId, const S tring& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>) final; 932 void logExceptionToConsole(const String& errorMessage, int scriptId, const S tring& sourceURL, int lineNumber, int columnNumber, PassRefPtr<ScriptCallStack>) final;
933 933
934 void initDNSPrefetch(); 934 void initDNSPrefetch();
935 935
936 bool isInDocumentWrite() { return m_writeRecursionDepth > 0; } 936 bool isInDocumentWrite() const { return m_writeRecursionDepth > 0; }
937 937
938 TextAutosizer* textAutosizer(); 938 TextAutosizer* textAutosizer();
939 939
940 RawPtr<Element> createElement(const AtomicString& localName, const AtomicStr ing& typeExtension, ExceptionState&); 940 RawPtr<Element> createElement(const AtomicString& localName, const AtomicStr ing& typeExtension, ExceptionState&);
941 RawPtr<Element> createElementNS(const AtomicString& namespaceURI, const Atom icString& qualifiedName, const AtomicString& typeExtension, ExceptionState&); 941 RawPtr<Element> createElementNS(const AtomicString& namespaceURI, const Atom icString& qualifiedName, const AtomicString& typeExtension, ExceptionState&);
942 ScriptValue registerElement(ScriptState*, const AtomicString& name, const El ementRegistrationOptions&, ExceptionState&, CustomElement::NameSet validNames = CustomElement::StandardNames); 942 ScriptValue registerElement(ScriptState*, const AtomicString& name, const El ementRegistrationOptions&, ExceptionState&, CustomElement::NameSet validNames = CustomElement::StandardNames);
943 CustomElementRegistrationContext* registrationContext() { return m_registrat ionContext.get(); } 943 CustomElementRegistrationContext* registrationContext() { return m_registrat ionContext.get(); }
944 CustomElementMicrotaskRunQueue* customElementMicrotaskRunQueue(); 944 CustomElementMicrotaskRunQueue* customElementMicrotaskRunQueue();
945 945
946 void setImportsController(HTMLImportsController*); 946 void setImportsController(HTMLImportsController*);
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1437 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1438 1438
1439 } // namespace blink 1439 } // namespace blink
1440 1440
1441 #ifndef NDEBUG 1441 #ifndef NDEBUG
1442 // Outside the WebCore namespace for ease of invocation from gdb. 1442 // Outside the WebCore namespace for ease of invocation from gdb.
1443 CORE_EXPORT void showLiveDocumentInstances(); 1443 CORE_EXPORT void showLiveDocumentInstances();
1444 #endif 1444 #endif
1445 1445
1446 #endif // Document_h 1446 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698