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

Side by Side Diff: third_party/WebKit/Source/core/dom/DocumentOrderedMap.h

Issue 2648163002: Remove case-insensitive matching of usemap attribute. (Closed)
Patch Set: _ Created 3 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void remove(const AtomicString&, Element*); 54 void remove(const AtomicString&, Element*);
55 55
56 bool contains(const AtomicString&) const; 56 bool contains(const AtomicString&) const;
57 bool containsMultiple(const AtomicString&) const; 57 bool containsMultiple(const AtomicString&) const;
58 // concrete instantiations of the get<>() method template 58 // concrete instantiations of the get<>() method template
59 Element* getElementById(const AtomicString&, const TreeScope*) const; 59 Element* getElementById(const AtomicString&, const TreeScope*) const;
60 const HeapVector<Member<Element>>& getAllElementsById(const AtomicString&, 60 const HeapVector<Member<Element>>& getAllElementsById(const AtomicString&,
61 const TreeScope*) const; 61 const TreeScope*) const;
62 Element* getElementByMapName(const AtomicString&, const TreeScope*) const; 62 Element* getElementByMapName(const AtomicString&, const TreeScope*) const;
63 HTMLSlotElement* getSlotByName(const AtomicString&, const TreeScope*) const; 63 HTMLSlotElement* getSlotByName(const AtomicString&, const TreeScope*) const;
64 Element* getElementByLowercasedMapName(const AtomicString&,
65 const TreeScope*) const;
66 64
67 DECLARE_TRACE(); 65 DECLARE_TRACE();
68 66
69 #if DCHECK_IS_ON() 67 #if DCHECK_IS_ON()
70 // While removing a ContainerNode, ID lookups won't be precise should the tree 68 // While removing a ContainerNode, ID lookups won't be precise should the tree
71 // have elements with duplicate IDs contained in the element being removed. 69 // have elements with duplicate IDs contained in the element being removed.
72 // Rare trees, but ID lookups may legitimately fail across such removals; 70 // Rare trees, but ID lookups may legitimately fail across such removals;
73 // this scope object informs DocumentOrderedMaps about the transitory 71 // this scope object informs DocumentOrderedMaps about the transitory
74 // state of the underlying tree. 72 // state of the underlying tree.
75 class RemoveScope { 73 class RemoveScope {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 115 }
118 116
119 inline bool DocumentOrderedMap::containsMultiple(const AtomicString& id) const { 117 inline bool DocumentOrderedMap::containsMultiple(const AtomicString& id) const {
120 Map::const_iterator it = m_map.find(id); 118 Map::const_iterator it = m_map.find(id);
121 return it != m_map.end() && it->value->count > 1; 119 return it != m_map.end() && it->value->count > 1;
122 } 120 }
123 121
124 } // namespace blink 122 } // namespace blink
125 123
126 #endif // DocumentOrderedMap_h 124 #endif // DocumentOrderedMap_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698