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

Unified Diff: Source/core/platform/chromium/support/WebURL.cpp

Issue 20135002: Optimize WebURL -> GURL conversions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 years, 5 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 | Source/weborigin/KURL.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/chromium/support/WebURL.cpp
diff --git a/Source/core/platform/chromium/support/WebURL.cpp b/Source/core/platform/chromium/support/WebURL.cpp
index 0242ca8354fa55252e3fe8bb91a35adb52cfa796..5af208edda416f26de5452beab8a1f4f1f7318c1 100644
--- a/Source/core/platform/chromium/support/WebURL.cpp
+++ b/Source/core/platform/chromium/support/WebURL.cpp
@@ -36,7 +36,7 @@
namespace WebKit {
WebURL::WebURL(const WebCore::KURL& url)
- : m_spec(url.string().utf8())
+ : m_string(url.string())
, m_parsed(url.parsed())
, m_isValid(url.isValid())
{
@@ -44,7 +44,7 @@ WebURL::WebURL(const WebCore::KURL& url)
WebURL& WebURL::operator=(const WebCore::KURL& url)
{
- m_spec = url.string().utf8();
+ m_string = url.string();
m_parsed = url.parsed();
m_isValid = url.isValid();
return *this;
@@ -52,7 +52,7 @@ WebURL& WebURL::operator=(const WebCore::KURL& url)
WebURL::operator WebCore::KURL() const
{
- return WebCore::KURL(m_spec, m_parsed, m_isValid);
+ return WebCore::KURL(m_string, m_parsed, m_isValid);
}
} // namespace WebKit
« no previous file with comments | « no previous file | Source/weborigin/KURL.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698