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

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

Issue 315473002: Stop having HTMLNameCollection override HTMLCollection::virtualItemAfter() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 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) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 #include "core/events/ScopedEventQueue.h" 109 #include "core/events/ScopedEventQueue.h"
110 #include "core/fetch/ResourceFetcher.h" 110 #include "core/fetch/ResourceFetcher.h"
111 #include "core/frame/DOMWindow.h" 111 #include "core/frame/DOMWindow.h"
112 #include "core/frame/FrameConsole.h" 112 #include "core/frame/FrameConsole.h"
113 #include "core/frame/FrameHost.h" 113 #include "core/frame/FrameHost.h"
114 #include "core/frame/FrameView.h" 114 #include "core/frame/FrameView.h"
115 #include "core/frame/History.h" 115 #include "core/frame/History.h"
116 #include "core/frame/LocalFrame.h" 116 #include "core/frame/LocalFrame.h"
117 #include "core/frame/Settings.h" 117 #include "core/frame/Settings.h"
118 #include "core/frame/csp/ContentSecurityPolicy.h" 118 #include "core/frame/csp/ContentSecurityPolicy.h"
119 #include "core/html/DocumentNameCollection.h"
119 #include "core/html/HTMLAllCollection.h" 120 #include "core/html/HTMLAllCollection.h"
120 #include "core/html/HTMLAnchorElement.h" 121 #include "core/html/HTMLAnchorElement.h"
121 #include "core/html/HTMLBaseElement.h" 122 #include "core/html/HTMLBaseElement.h"
122 #include "core/html/HTMLCanvasElement.h" 123 #include "core/html/HTMLCanvasElement.h"
123 #include "core/html/HTMLCollection.h" 124 #include "core/html/HTMLCollection.h"
124 #include "core/html/HTMLDialogElement.h" 125 #include "core/html/HTMLDialogElement.h"
125 #include "core/html/HTMLDocument.h" 126 #include "core/html/HTMLDocument.h"
126 #include "core/html/HTMLFrameOwnerElement.h" 127 #include "core/html/HTMLFrameOwnerElement.h"
127 #include "core/html/HTMLHeadElement.h" 128 #include "core/html/HTMLHeadElement.h"
128 #include "core/html/HTMLHtmlElement.h" 129 #include "core/html/HTMLHtmlElement.h"
129 #include "core/html/HTMLIFrameElement.h" 130 #include "core/html/HTMLIFrameElement.h"
130 #include "core/html/HTMLInputElement.h" 131 #include "core/html/HTMLInputElement.h"
131 #include "core/html/HTMLLinkElement.h" 132 #include "core/html/HTMLLinkElement.h"
132 #include "core/html/HTMLMetaElement.h" 133 #include "core/html/HTMLMetaElement.h"
133 #include "core/html/HTMLNameCollection.h"
134 #include "core/html/HTMLScriptElement.h" 134 #include "core/html/HTMLScriptElement.h"
135 #include "core/html/HTMLStyleElement.h" 135 #include "core/html/HTMLStyleElement.h"
136 #include "core/html/HTMLTemplateElement.h" 136 #include "core/html/HTMLTemplateElement.h"
137 #include "core/html/HTMLTitleElement.h" 137 #include "core/html/HTMLTitleElement.h"
138 #include "core/html/PluginDocument.h" 138 #include "core/html/PluginDocument.h"
139 #include "core/html/WindowNameCollection.h"
139 #include "core/html/canvas/CanvasRenderingContext.h" 140 #include "core/html/canvas/CanvasRenderingContext.h"
140 #include "core/html/canvas/CanvasRenderingContext2D.h" 141 #include "core/html/canvas/CanvasRenderingContext2D.h"
141 #include "core/html/canvas/WebGLRenderingContext.h" 142 #include "core/html/canvas/WebGLRenderingContext.h"
142 #include "core/html/forms/FormController.h" 143 #include "core/html/forms/FormController.h"
143 #include "core/html/imports/HTMLImportLoader.h" 144 #include "core/html/imports/HTMLImportLoader.h"
144 #include "core/html/imports/HTMLImportsController.h" 145 #include "core/html/imports/HTMLImportsController.h"
145 #include "core/html/parser/HTMLDocumentParser.h" 146 #include "core/html/parser/HTMLDocumentParser.h"
146 #include "core/html/parser/HTMLParserIdioms.h" 147 #include "core/html/parser/HTMLParserIdioms.h"
147 #include "core/html/parser/NestingLevelIncrementer.h" 148 #include "core/html/parser/NestingLevelIncrementer.h"
148 #include "core/html/parser/TextResourceDecoder.h" 149 #include "core/html/parser/TextResourceDecoder.h"
(...skipping 4463 matching lines...) Expand 10 before | Expand all | Expand 10 after
4612 return all(); 4613 return all();
4613 } 4614 }
4614 4615
4615 PassRefPtrWillBeRawPtr<HTMLAllCollection> Document::all() 4616 PassRefPtrWillBeRawPtr<HTMLAllCollection> Document::all()
4616 { 4617 {
4617 return ensureRareData().ensureNodeLists().addCache<HTMLAllCollection>(*this, DocAll); 4618 return ensureRareData().ensureNodeLists().addCache<HTMLAllCollection>(*this, DocAll);
4618 } 4619 }
4619 4620
4620 PassRefPtrWillBeRawPtr<HTMLCollection> Document::windowNamedItems(const AtomicSt ring& name) 4621 PassRefPtrWillBeRawPtr<HTMLCollection> Document::windowNamedItems(const AtomicSt ring& name)
4621 { 4622 {
4622 return ensureRareData().ensureNodeLists().addCache<HTMLNameCollection>(*this , WindowNamedItems, name); 4623 return ensureRareData().ensureNodeLists().addCache<WindowNameCollection>(*th is, WindowNamedItems, name);
4623 } 4624 }
4624 4625
4625 PassRefPtrWillBeRawPtr<HTMLCollection> Document::documentNamedItems(const Atomic String& name) 4626 PassRefPtrWillBeRawPtr<HTMLCollection> Document::documentNamedItems(const Atomic String& name)
4626 { 4627 {
4627 return ensureRareData().ensureNodeLists().addCache<HTMLNameCollection>(*this , DocumentNamedItems, name); 4628 return ensureRareData().ensureNodeLists().addCache<DocumentNameCollection>(* this, DocumentNamedItems, name);
4628 } 4629 }
4629 4630
4630 void Document::finishedParsing() 4631 void Document::finishedParsing()
4631 { 4632 {
4632 ASSERT(!scriptableDocumentParser() || !m_parser->isParsing()); 4633 ASSERT(!scriptableDocumentParser() || !m_parser->isParsing());
4633 ASSERT(!scriptableDocumentParser() || m_readyState != Loading); 4634 ASSERT(!scriptableDocumentParser() || m_readyState != Loading);
4634 setParsing(false); 4635 setParsing(false);
4635 if (!m_documentTiming.domContentLoadedEventStart) 4636 if (!m_documentTiming.domContentLoadedEventStart)
4636 m_documentTiming.domContentLoadedEventStart = monotonicallyIncreasingTim e(); 4637 m_documentTiming.domContentLoadedEventStart = monotonicallyIncreasingTim e();
4637 dispatchEvent(Event::createBubble(EventTypeNames::DOMContentLoaded)); 4638 dispatchEvent(Event::createBubble(EventTypeNames::DOMContentLoaded));
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
5819 visitor->trace(m_compositorPendingAnimations); 5820 visitor->trace(m_compositorPendingAnimations);
5820 visitor->trace(m_contextDocument); 5821 visitor->trace(m_contextDocument);
5821 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); 5822 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
5822 DocumentSupplementable::trace(visitor); 5823 DocumentSupplementable::trace(visitor);
5823 TreeScope::trace(visitor); 5824 TreeScope::trace(visitor);
5824 ContainerNode::trace(visitor); 5825 ContainerNode::trace(visitor);
5825 ExecutionContext::trace(visitor); 5826 ExecutionContext::trace(visitor);
5826 } 5827 }
5827 5828
5828 } // namespace WebCore 5829 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698