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

Unified Diff: Source/core/html/HTMLImageElement.cpp

Issue 560273004: Use AtomicString API directly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add more Created 6 years, 3 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 | « Source/core/html/HTMLEmbedElement.cpp ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLImageElement.cpp
diff --git a/Source/core/html/HTMLImageElement.cpp b/Source/core/html/HTMLImageElement.cpp
index 25424dce0dae09425f02d3efe82930e195676ee8..6590e64a2d5c2d6e847a498c7e15da308d06366e 100644
--- a/Source/core/html/HTMLImageElement.cpp
+++ b/Source/core/html/HTMLImageElement.cpp
@@ -463,7 +463,7 @@ bool HTMLImageElement::isURLAttribute(const Attribute& attribute) const
return attribute.name() == srcAttr
|| attribute.name() == lowsrcAttr
|| attribute.name() == longdescAttr
- || (attribute.name() == usemapAttr && attribute.value().string()[0] != '#')
+ || (attribute.name() == usemapAttr && attribute.value()[0] != '#')
|| HTMLElement::isURLAttribute(attribute);
}
@@ -546,7 +546,7 @@ bool HTMLImageElement::isServerMap() const
const AtomicString& usemap = fastGetAttribute(usemapAttr);
// If the usemap attribute starts with '#', it refers to a map element in the document.
- if (usemap.string()[0] == '#')
+ if (usemap[0] == '#')
return false;
return document().completeURL(stripLeadingAndTrailingHTMLSpaces(usemap)).isEmpty();
« no previous file with comments | « Source/core/html/HTMLEmbedElement.cpp ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698