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

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

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/DocumentOrderedMap.cpp ('k') | sky/engine/core/dom/TreeScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/TreeScope.h
diff --git a/sky/engine/core/dom/TreeScope.h b/sky/engine/core/dom/TreeScope.h
index 564c5f568c1dc06a3280d6bdd1e8e42101c74db7..de22ffb26515857af3d84e69269859b3c3401d0a 100644
--- a/sky/engine/core/dom/TreeScope.h
+++ b/sky/engine/core/dom/TreeScope.h
@@ -53,9 +53,6 @@ public:
Element* adjustedFocusedElement() const;
Element* getElementById(const AtomicString&) const;
- const Vector<RawPtr<Element> >& getAllElementsById(const AtomicString&) const;
- bool hasElementWithId(const AtomicString& id) const;
- bool containsMultipleElementsWithId(const AtomicString& id) const;
void addElementById(const AtomicString& elementId, Element*);
void removeElementById(const AtomicString& elementId, Element*);
@@ -174,17 +171,6 @@ private:
mutable RefPtr<DOMSelection> m_selection;
};
-inline bool TreeScope::hasElementWithId(const AtomicString& id) const
-{
- ASSERT(!id.isNull());
- return m_elementsById && m_elementsById->contains(id);
-}
-
-inline bool TreeScope::containsMultipleElementsWithId(const AtomicString& id) const
-{
- return m_elementsById && m_elementsById->containsMultiple(id);
-}
-
DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope)
HitTestResult hitTestInDocument(const Document*, int x, int y);
« no previous file with comments | « sky/engine/core/dom/DocumentOrderedMap.cpp ('k') | sky/engine/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698