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

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

Issue 1939303002: Enable accessible name of a control to include multiple <label> elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't modify visited set when computing aria-labelledby Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp b/third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp
index 5c7822bdec370e816a0b651ba83bc0b9553c927e..582f8f07ac53981caaf500373c7918d2ce4585c4 100644
--- a/third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentOrderedMap.cpp
@@ -80,11 +80,6 @@ inline bool keyMatchesLowercasedMapName(const AtomicString& key, const Element&
return isHTMLMapElement(element) && toHTMLMapElement(element).getName().lower() == key;
}
-inline bool keyMatchesLabelForAttribute(const AtomicString& key, const Element& element)
-{
- return isHTMLLabelElement(element) && element.getAttribute(forAttr) == key;
-}
-
void DocumentOrderedMap::add(const AtomicString& key, Element* element)
{
DCHECK(key);
@@ -200,11 +195,6 @@ Element* DocumentOrderedMap::getElementByLowercasedMapName(const AtomicString& k
return get<keyMatchesLowercasedMapName>(key, scope);
}
-Element* DocumentOrderedMap::getElementByLabelForAttribute(const AtomicString& key, const TreeScope* scope) const
-{
- return get<keyMatchesLabelForAttribute>(key, scope);
-}
-
DEFINE_TRACE(DocumentOrderedMap)
{
visitor->trace(m_map);
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentOrderedMap.h ('k') | third_party/WebKit/Source/core/dom/LiveNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698