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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentOrderedMap.h

Issue 2905043002: Make DocumentOrderedMap take a const reference for scope (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/DocumentOrderedMap.h
diff --git a/third_party/WebKit/Source/core/dom/DocumentOrderedMap.h b/third_party/WebKit/Source/core/dom/DocumentOrderedMap.h
index 53a4e4c9c2ebb47a456732f7edc3fa03596f7845..ca8d1ebf27bf65aa5fd745c776e7c21efa6dd4c3 100644
--- a/third_party/WebKit/Source/core/dom/DocumentOrderedMap.h
+++ b/third_party/WebKit/Source/core/dom/DocumentOrderedMap.h
@@ -56,11 +56,11 @@ class DocumentOrderedMap : public GarbageCollected<DocumentOrderedMap> {
bool Contains(const AtomicString&) const;
bool ContainsMultiple(const AtomicString&) const;
// concrete instantiations of the get<>() method template
- Element* GetElementById(const AtomicString&, const TreeScope*) const;
+ Element* GetElementById(const AtomicString&, const TreeScope&) const;
const HeapVector<Member<Element>>& GetAllElementsById(const AtomicString&,
- const TreeScope*) const;
- Element* GetElementByMapName(const AtomicString&, const TreeScope*) const;
- HTMLSlotElement* GetSlotByName(const AtomicString&, const TreeScope*) const;
+ const TreeScope&) const;
+ Element* GetElementByMapName(const AtomicString&, const TreeScope&) const;
+ HTMLSlotElement* GetSlotByName(const AtomicString&, const TreeScope&) const;
DECLARE_TRACE();
@@ -91,7 +91,7 @@ class DocumentOrderedMap : public GarbageCollected<DocumentOrderedMap> {
DocumentOrderedMap();
template <bool keyMatches(const AtomicString&, const Element&)>
- Element* Get(const AtomicString&, const TreeScope*) const;
+ Element* Get(const AtomicString&, const TreeScope&) const;
class MapEntry : public GarbageCollected<MapEntry> {
public:
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698