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

Unified Diff: third_party/WebKit/Source/core/html/HTMLMapElement.cpp

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLMapElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMapElement.cpp b/third_party/WebKit/Source/core/html/HTMLMapElement.cpp
index 361d8a161dc8b8fc2abe2e08c7a573825d549be9..1761d9f9beb583e9bfcdcd978ddf06f51ab5c7b6 100644
--- a/third_party/WebKit/Source/core/html/HTMLMapElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMapElement.cpp
@@ -69,7 +69,7 @@ HTMLImageElement* HTMLMapElement::imageElement() {
HTMLImageElement& imageElement = toHTMLImageElement(*curr);
String useMapName =
imageElement.getAttribute(usemapAttr).getString().substring(1);
- if (equalIgnoringCase(useMapName, m_name))
+ if (useMapName == m_name)
return &imageElement;
}
@@ -93,8 +93,7 @@ void HTMLMapElement::parseAttribute(const AttributeModificationParams& params) {
String mapName = params.newValue;
if (mapName[0] == '#')
mapName = mapName.substring(1);
- m_name =
- AtomicString(document().isHTMLDocument() ? mapName.lower() : mapName);
+ m_name = AtomicString(mapName);
if (isConnected())
treeScope().addImageMap(this);
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698