summaryrefslogtreecommitdiff
path: root/Source/WebCore/page/OriginAccessEntry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/page/OriginAccessEntry.cpp')
-rw-r--r--Source/WebCore/page/OriginAccessEntry.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebCore/page/OriginAccessEntry.cpp b/Source/WebCore/page/OriginAccessEntry.cpp
index 8c123ae26..7ff67cc46 100644
--- a/Source/WebCore/page/OriginAccessEntry.cpp
+++ b/Source/WebCore/page/OriginAccessEntry.cpp
@@ -36,8 +36,8 @@
namespace WebCore {
OriginAccessEntry::OriginAccessEntry(const String& protocol, const String& host, SubdomainSetting subdomainSetting)
- : m_protocol(protocol.convertToASCIILowercase())
- , m_host(host.convertToASCIILowercase())
+ : m_protocol(protocol.lower())
+ , m_host(host.lower())
, m_subdomainSettings(subdomainSetting)
{
ASSERT(subdomainSetting == AllowSubdomains || subdomainSetting == DisallowSubdomains);
@@ -48,8 +48,8 @@ OriginAccessEntry::OriginAccessEntry(const String& protocol, const String& host,
bool OriginAccessEntry::matchesOrigin(const SecurityOrigin& origin) const
{
- ASSERT(origin.host() == origin.host().convertToASCIILowercase());
- ASSERT(origin.protocol() == origin.protocol().convertToASCIILowercase());
+ ASSERT(origin.host() == origin.host().lower());
+ ASSERT(origin.protocol() == origin.protocol().lower());
if (m_protocol != origin.protocol())
return false;