Chromium Code Reviews

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

Issue 2334223005: 2nd arg of document.createElement should be an object (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 72 matching lines...)
83 class DOMWindow; 83 class DOMWindow;
84 class DocumentFragment; 84 class DocumentFragment;
85 class DocumentLoader; 85 class DocumentLoader;
86 class DocumentMarkerController; 86 class DocumentMarkerController;
87 class DocumentNameCollection; 87 class DocumentNameCollection;
88 class DocumentParser; 88 class DocumentParser;
89 class DocumentState; 89 class DocumentState;
90 class DocumentType; 90 class DocumentType;
91 class Element; 91 class Element;
92 class ElementDataCache; 92 class ElementDataCache;
93 class ElementCreationOptionsOrString;
93 class ElementRegistrationOptions; 94 class ElementRegistrationOptions;
94 class Event; 95 class Event;
95 class EventFactoryBase; 96 class EventFactoryBase;
96 class EventListener; 97 class EventListener;
97 template <typename EventType> 98 template <typename EventType>
98 class EventWithHitTestResults; 99 class EventWithHitTestResults;
99 class ExceptionState; 100 class ExceptionState;
100 class FloatQuad; 101 class FloatQuad;
101 class FloatRect; 102 class FloatRect;
102 class FormController; 103 class FormController;
(...skipping 867 matching lines...)
970 971
971 EventTarget* errorEventTarget() final; 972 EventTarget* errorEventTarget() final;
972 void exceptionThrown(ErrorEvent*) final; 973 void exceptionThrown(ErrorEvent*) final;
973 974
974 void initDNSPrefetch(); 975 void initDNSPrefetch();
975 976
976 bool isInDocumentWrite() const { return m_writeRecursionDepth > 0; } 977 bool isInDocumentWrite() const { return m_writeRecursionDepth > 0; }
977 978
978 TextAutosizer* textAutosizer(); 979 TextAutosizer* textAutosizer();
979 980
980 Element* createElement(const AtomicString& localName, const AtomicString& ty peExtension, ExceptionState&); 981 Element* createElement(const AtomicString& localName, const ElementCreationO ptionsOrString&, ExceptionState&);
981 Element* createElementNS(const AtomicString& namespaceURI, const AtomicStrin g& qualifiedName, const AtomicString& typeExtension, ExceptionState&); 982 Element* createElementNS(const AtomicString& namespaceURI, const AtomicStrin g& qualifiedName, const ElementCreationOptionsOrString&, ExceptionState&);
982 ScriptValue registerElement(ScriptState*, const AtomicString& name, const El ementRegistrationOptions&, ExceptionState&, V0CustomElement::NameSet validNames = V0CustomElement::StandardNames); 983 ScriptValue registerElement(ScriptState*, const AtomicString& name, const El ementRegistrationOptions&, ExceptionState&, V0CustomElement::NameSet validNames = V0CustomElement::StandardNames);
983 V0CustomElementRegistrationContext* registrationContext() { return m_registr ationContext.get(); } 984 V0CustomElementRegistrationContext* registrationContext() { return m_registr ationContext.get(); }
984 V0CustomElementMicrotaskRunQueue* customElementMicrotaskRunQueue(); 985 V0CustomElementMicrotaskRunQueue* customElementMicrotaskRunQueue();
985 986
986 void setImportsController(HTMLImportsController*); 987 void setImportsController(HTMLImportsController*);
987 HTMLImportsController* importsController() const { return m_importsControlle r; } 988 HTMLImportsController* importsController() const { return m_importsControlle r; }
988 HTMLImportLoader* importLoader() const; 989 HTMLImportLoader* importLoader() const;
989 990
990 bool haveImportsLoaded() const; 991 bool haveImportsLoaded() const;
991 void didLoadAllImports(); 992 void didLoadAllImports();
(...skipping 484 matching lines...)
1476 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true); 1477 DEFINE_TYPE_CASTS(TreeScope, Document, document, true, true);
1477 1478
1478 } // namespace blink 1479 } // namespace blink
1479 1480
1480 #ifndef NDEBUG 1481 #ifndef NDEBUG
1481 // Outside the WebCore namespace for ease of invocation from gdb. 1482 // Outside the WebCore namespace for ease of invocation from gdb.
1482 CORE_EXPORT void showLiveDocumentInstances(); 1483 CORE_EXPORT void showLiveDocumentInstances();
1483 #endif 1484 #endif
1484 1485
1485 #endif // Document_h 1486 #endif // Document_h
OLDNEW

Powered by Google App Engine