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

Unified Diff: Source/core/loader/ImageLoader.cpp

Issue 1141323002: Drop ImageLoader::sourceURI (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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/loader/ImageLoader.h ('k') | Source/core/svg/SVGImageLoader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/ImageLoader.cpp
diff --git a/Source/core/loader/ImageLoader.cpp b/Source/core/loader/ImageLoader.cpp
index 651424b28c0aea704753ab949ae2b31ebb22eaf0..8e1adb8b22220c11f5fdf34f0fcf5e54bd36932e 100644
--- a/Source/core/loader/ImageLoader.cpp
+++ b/Source/core/loader/ImageLoader.cpp
@@ -390,8 +390,11 @@ KURL ImageLoader::imageSourceToKURL(AtomicString imageSourceURL) const
// Do not load any image if the 'src' attribute is missing or if it is
// an empty string.
- if (!imageSourceURL.isNull() && !stripLeadingAndTrailingHTMLSpaces(imageSourceURL).isEmpty())
- url = document.completeURL(sourceURI(imageSourceURL));
+ if (!imageSourceURL.isNull()) {
+ String strippedImageSourceURL = stripLeadingAndTrailingHTMLSpaces(imageSourceURL);
+ if (!strippedImageSourceURL.isEmpty())
+ url = document.completeURL(strippedImageSourceURL);
+ }
return url;
}
« no previous file with comments | « Source/core/loader/ImageLoader.h ('k') | Source/core/svg/SVGImageLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698