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

Unified Diff: sky/engine/core/dom/TreeScope.cpp

Issue 705473004: Remove most of DocumentOrderedMap. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/dom/TreeScope.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/TreeScope.cpp
diff --git a/sky/engine/core/dom/TreeScope.cpp b/sky/engine/core/dom/TreeScope.cpp
index fe04e5a0e2184d6778a3865ef188f8b78a8ddf2e..1093c2756f7f22d39daf0822744d6e390ce6d8ca 100644
--- a/sky/engine/core/dom/TreeScope.cpp
+++ b/sky/engine/core/dom/TreeScope.cpp
@@ -160,16 +160,6 @@ Element* TreeScope::getElementById(const AtomicString& elementId) const
return m_elementsById->getElementById(elementId, this);
}
-const Vector<RawPtr<Element> >& TreeScope::getAllElementsById(const AtomicString& elementId) const
-{
- DEFINE_STATIC_LOCAL(OwnPtr<Vector<RawPtr<Element> > >, emptyVector, (adoptPtr(new Vector<RawPtr<Element> >())));
- if (elementId.isEmpty())
- return *emptyVector;
- if (!m_elementsById)
- return *emptyVector;
- return m_elementsById->getAllElementsById(elementId, this);
-}
-
void TreeScope::addElementById(const AtomicString& elementId, Element* element)
{
if (!m_elementsById)
« no previous file with comments | « sky/engine/core/dom/TreeScope.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698