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

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

Issue 492453002: Make it clear a DocumentNameCollection can only contain HTMLElements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Clean up Created 6 years, 4 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
« no previous file with comments | « Source/bindings/core/v8/WindowProxy.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 class ConsoleMessage; 73 class ConsoleMessage;
74 class ContentSecurityPolicyResponseHeaders; 74 class ContentSecurityPolicyResponseHeaders;
75 class ContextFeatures; 75 class ContextFeatures;
76 class CustomElementMicrotaskRunQueue; 76 class CustomElementMicrotaskRunQueue;
77 class CustomElementRegistrationContext; 77 class CustomElementRegistrationContext;
78 class DOMImplementation; 78 class DOMImplementation;
79 class DocumentFragment; 79 class DocumentFragment;
80 class DocumentLifecycleNotifier; 80 class DocumentLifecycleNotifier;
81 class DocumentLoader; 81 class DocumentLoader;
82 class DocumentMarkerController; 82 class DocumentMarkerController;
83 class DocumentNameCollection;
83 class DocumentParser; 84 class DocumentParser;
84 class DocumentState; 85 class DocumentState;
85 class DocumentType; 86 class DocumentType;
86 class Element; 87 class Element;
87 class ElementDataCache; 88 class ElementDataCache;
88 class Event; 89 class Event;
89 class EventFactoryBase; 90 class EventFactoryBase;
90 class EventListener; 91 class EventListener;
91 template <typename EventType> 92 template <typename EventType>
92 class EventWithHitTestResults; 93 class EventWithHitTestResults;
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 PassRefPtrWillBeRawPtr<HTMLCollection> embeds(); 357 PassRefPtrWillBeRawPtr<HTMLCollection> embeds();
357 PassRefPtrWillBeRawPtr<HTMLCollection> applets(); 358 PassRefPtrWillBeRawPtr<HTMLCollection> applets();
358 PassRefPtrWillBeRawPtr<HTMLCollection> links(); 359 PassRefPtrWillBeRawPtr<HTMLCollection> links();
359 PassRefPtrWillBeRawPtr<HTMLCollection> forms(); 360 PassRefPtrWillBeRawPtr<HTMLCollection> forms();
360 PassRefPtrWillBeRawPtr<HTMLCollection> anchors(); 361 PassRefPtrWillBeRawPtr<HTMLCollection> anchors();
361 PassRefPtrWillBeRawPtr<HTMLCollection> scripts(); 362 PassRefPtrWillBeRawPtr<HTMLCollection> scripts();
362 PassRefPtrWillBeRawPtr<HTMLAllCollection> allForBinding(); 363 PassRefPtrWillBeRawPtr<HTMLAllCollection> allForBinding();
363 PassRefPtrWillBeRawPtr<HTMLAllCollection> all(); 364 PassRefPtrWillBeRawPtr<HTMLAllCollection> all();
364 365
365 PassRefPtrWillBeRawPtr<HTMLCollection> windowNamedItems(const AtomicString& name); 366 PassRefPtrWillBeRawPtr<HTMLCollection> windowNamedItems(const AtomicString& name);
366 PassRefPtrWillBeRawPtr<HTMLCollection> documentNamedItems(const AtomicString & name); 367 PassRefPtrWillBeRawPtr<DocumentNameCollection> documentNamedItems(const Atom icString& name);
367 368
368 bool isHTMLDocument() const { return m_documentClasses & HTMLDocumentClass; } 369 bool isHTMLDocument() const { return m_documentClasses & HTMLDocumentClass; }
369 bool isXHTMLDocument() const { return m_documentClasses & XHTMLDocumentClass ; } 370 bool isXHTMLDocument() const { return m_documentClasses & XHTMLDocumentClass ; }
370 bool isXMLDocument() const { return m_documentClasses & XMLDocumentClass; } 371 bool isXMLDocument() const { return m_documentClasses & XMLDocumentClass; }
371 bool isImageDocument() const { return m_documentClasses & ImageDocumentClass ; } 372 bool isImageDocument() const { return m_documentClasses & ImageDocumentClass ; }
372 bool isSVGDocument() const { return m_documentClasses & SVGDocumentClass; } 373 bool isSVGDocument() const { return m_documentClasses & SVGDocumentClass; }
373 bool isPluginDocument() const { return m_documentClasses & PluginDocumentCla ss; } 374 bool isPluginDocument() const { return m_documentClasses & PluginDocumentCla ss; }
374 bool isMediaDocument() const { return m_documentClasses & MediaDocumentClass ; } 375 bool isMediaDocument() const { return m_documentClasses & MediaDocumentClass ; }
375 376
376 bool hasSVGRootNode() const; 377 bool hasSVGRootNode() const;
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 Node* eventTargetNodeForDocument(Document*); 1403 Node* eventTargetNodeForDocument(Document*);
1403 1404
1404 } // namespace blink 1405 } // namespace blink
1405 1406
1406 #ifndef NDEBUG 1407 #ifndef NDEBUG
1407 // Outside the WebCore namespace for ease of invocation from gdb. 1408 // Outside the WebCore namespace for ease of invocation from gdb.
1408 void showLiveDocumentInstances(); 1409 void showLiveDocumentInstances();
1409 #endif 1410 #endif
1410 1411
1411 #endif // Document_h 1412 #endif // Document_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/WindowProxy.cpp ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698