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

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

Issue 16708002: Simplify Custom Element constructors to be functions, not wrappers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address morrita1's first round of feedback Created 7 years, 6 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 | Annotate | Revision Log
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 10 matching lines...) Expand all
21 * You should have received a copy of the GNU Library General Public License 21 * You should have received a copy of the GNU Library General Public License
22 * along with this library; see the file COPYING.LIB. If not, write to 22 * along with this library; see the file COPYING.LIB. If not, write to
23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 * Boston, MA 02110-1301, USA. 24 * Boston, MA 02110-1301, USA.
25 * 25 *
26 */ 26 */
27 27
28 #ifndef Document_h 28 #ifndef Document_h
29 #define Document_h 29 #define Document_h
30 30
31 #include "bindings/v8/ScriptValue.h"
31 #include "core/dom/ContainerNode.h" 32 #include "core/dom/ContainerNode.h"
32 #include "core/dom/DOMTimeStamp.h" 33 #include "core/dom/DOMTimeStamp.h"
33 #include "core/dom/DocumentEventQueue.h" 34 #include "core/dom/DocumentEventQueue.h"
34 #include "core/dom/DocumentTiming.h" 35 #include "core/dom/DocumentTiming.h"
35 #include "core/dom/IconURL.h" 36 #include "core/dom/IconURL.h"
36 #include "core/dom/MutationObserver.h" 37 #include "core/dom/MutationObserver.h"
37 #include "core/dom/QualifiedName.h" 38 #include "core/dom/QualifiedName.h"
38 #include "core/dom/ScriptExecutionContext.h" 39 #include "core/dom/ScriptExecutionContext.h"
39 #include "core/dom/TreeScope.h" 40 #include "core/dom/TreeScope.h"
40 #include "core/dom/UserActionElementSet.h" 41 #include "core/dom/UserActionElementSet.h"
(...skipping 24 matching lines...) Expand all
65 class CDATASection; 66 class CDATASection;
66 class CSSStyleDeclaration; 67 class CSSStyleDeclaration;
67 class CSSStyleSheet; 68 class CSSStyleSheet;
68 class CachedCSSStyleSheet; 69 class CachedCSSStyleSheet;
69 class CachedResourceLoader; 70 class CachedResourceLoader;
70 class CachedScript; 71 class CachedScript;
71 class CanvasRenderingContext; 72 class CanvasRenderingContext;
72 class CharacterData; 73 class CharacterData;
73 class Comment; 74 class Comment;
74 class ContextFeatures; 75 class ContextFeatures;
75 class CustomElementConstructor;
76 class CustomElementRegistry; 76 class CustomElementRegistry;
77 class DOMImplementation; 77 class DOMImplementation;
78 class DOMNamedFlowCollection; 78 class DOMNamedFlowCollection;
79 class DOMSecurityPolicy; 79 class DOMSecurityPolicy;
80 class DOMSelection; 80 class DOMSelection;
81 class DOMWindow; 81 class DOMWindow;
82 class Database; 82 class Database;
83 class DatabaseThread; 83 class DatabaseThread;
84 class DocumentFragment; 84 class DocumentFragment;
85 class DocumentLoader; 85 class DocumentLoader;
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
1043 #if ENABLE(CSS_DEVICE_ADAPTATION) 1043 #if ENABLE(CSS_DEVICE_ADAPTATION)
1044 IntSize initialViewportSize() const; 1044 IntSize initialViewportSize() const;
1045 #endif 1045 #endif
1046 1046
1047 Prerenderer* prerenderer() { return m_prerenderer.get(); } 1047 Prerenderer* prerenderer() { return m_prerenderer.get(); }
1048 1048
1049 TextAutosizer* textAutosizer() { return m_textAutosizer.get(); } 1049 TextAutosizer* textAutosizer() { return m_textAutosizer.get(); }
1050 1050
1051 PassRefPtr<Element> createElement(const AtomicString& localName, const Atomi cString& typeExtension, ExceptionCode&); 1051 PassRefPtr<Element> createElement(const AtomicString& localName, const Atomi cString& typeExtension, ExceptionCode&);
1052 PassRefPtr<Element> createElementNS(const AtomicString& namespaceURI, const String& qualifiedName, const AtomicString& typeExtension, ExceptionCode&); 1052 PassRefPtr<Element> createElementNS(const AtomicString& namespaceURI, const String& qualifiedName, const AtomicString& typeExtension, ExceptionCode&);
1053 PassRefPtr<CustomElementConstructor> registerElement(WebCore::ScriptState*, const AtomicString& name, ExceptionCode&); 1053 ScriptValue registerElement(WebCore::ScriptState*, const AtomicString& name, ExceptionCode&);
1054 PassRefPtr<CustomElementConstructor> registerElement(WebCore::ScriptState*, const AtomicString& name, const Dictionary& options, ExceptionCode&); 1054 ScriptValue registerElement(WebCore::ScriptState*, const AtomicString& name, const Dictionary& options, ExceptionCode&);
haraken 2013/06/10 09:11:03 Ditto. ScriptValue => LocalScriptValue or v8::Hand
1055 CustomElementRegistry* registry() const { return m_registry.get(); } 1055 CustomElementRegistry* registry() const { return m_registry.get(); }
1056 CustomElementRegistry* ensureCustomElementRegistry(); 1056 CustomElementRegistry* ensureCustomElementRegistry();
1057 1057
1058 HTMLImportsController* ensureImports(); 1058 HTMLImportsController* ensureImports();
1059 HTMLImportsController* imports() const { return m_imports.get(); } 1059 HTMLImportsController* imports() const { return m_imports.get(); }
1060 bool haveImportsLoaded() const; 1060 bool haveImportsLoaded() const;
1061 void didLoadAllImports(); 1061 void didLoadAllImports();
1062 1062
1063 void adjustFloatQuadsForScrollAndAbsoluteZoom(Vector<FloatQuad>&, RenderObje ct*); 1063 void adjustFloatQuadsForScrollAndAbsoluteZoom(Vector<FloatQuad>&, RenderObje ct*);
1064 void adjustFloatRectForScrollAndAbsoluteZoom(FloatRect&, RenderObject*); 1064 void adjustFloatRectForScrollAndAbsoluteZoom(FloatRect&, RenderObject*);
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1489 inline bool Node::isDocumentNode() const 1489 inline bool Node::isDocumentNode() const
1490 { 1490 {
1491 return this == documentInternal(); 1491 return this == documentInternal();
1492 } 1492 }
1493 1493
1494 Node* eventTargetNodeForDocument(Document*); 1494 Node* eventTargetNodeForDocument(Document*);
1495 1495
1496 } // namespace WebCore 1496 } // namespace WebCore
1497 1497
1498 #endif // Document_h 1498 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698