| Index: third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.cpp b/third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.cpp
|
| index 9e17ff28c30c1461742161060958e1d9dbeab044..afa20981713cc8098273be3eefaacd297453f550 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/ScriptSourceCode.cpp
|
| @@ -13,6 +13,11 @@ ScriptSourceCode::ScriptSourceCode()
|
| }
|
|
|
| ScriptSourceCode::ScriptSourceCode(const String& source, const KURL& url, const TextPosition& startPosition)
|
| + : ScriptSourceCode(CompressibleString(source.impl()), url, startPosition)
|
| +{
|
| +}
|
| +
|
| +ScriptSourceCode::ScriptSourceCode(const CompressibleString& source, const KURL& url, const TextPosition& startPosition)
|
| : m_source(source)
|
| , m_resource(0)
|
| , m_url(url)
|
| @@ -82,7 +87,7 @@ void ScriptSourceCode::treatNullSourceAsEmpty()
|
| // the empty script. Consequently, we need to disambiguate between such null string occurrences.
|
| // Do that by converting the latter case's null strings into empty ones.
|
| if (m_source.isNull())
|
| - m_source = "";
|
| + m_source = CompressibleString(StringImpl::empty());
|
| }
|
|
|
| } // namespace blink
|
|
|