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

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

Issue 1624383002: Match <area shape> ASCII case-insensitively (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | third_party/WebKit/Source/wtf/text/AtomicString.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLAreaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp b/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp
index d1e4275093816fc12ab0a3364dbbeea799af76ff..b75a244d4d8ea741a997760fd778271de344e6a8 100644
--- a/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp
@@ -67,13 +67,13 @@ DEFINE_NODE_FACTORY(HTMLAreaElement)
void HTMLAreaElement::parseAttribute(const QualifiedName& name, const AtomicString& oldValue, const AtomicString& value)
{
if (name == shapeAttr) {
- if (equalIgnoringCase(value, "default"))
+ if (equalIgnoringASCIICase(value, "default"))
m_shape = Default;
- else if (equalIgnoringCase(value, "circle"))
+ else if (equalIgnoringASCIICase(value, "circle"))
m_shape = Circle;
- else if (equalIgnoringCase(value, "poly"))
+ else if (equalIgnoringASCIICase(value, "poly"))
m_shape = Poly;
- else if (equalIgnoringCase(value, "rect"))
+ else if (equalIgnoringASCIICase(value, "rect"))
m_shape = Rect;
invalidateCachedRegion();
} else if (name == coordsAttr) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/text/AtomicString.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698