X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fmodules%2Fencoding%2FTextDecoder.cpp;h=84df22cad1c6f5b8fa545d123d5e612747d6da51;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=541540e6674acd489317f1660689209f67eec0a7;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/modules/encoding/TextDecoder.cpp b/src/third_party/WebKit/Source/modules/encoding/TextDecoder.cpp index 541540e..84df22c 100644 --- a/src/third_party/WebKit/Source/modules/encoding/TextDecoder.cpp +++ b/src/third_party/WebKit/Source/modules/encoding/TextDecoder.cpp @@ -38,20 +38,20 @@ namespace WebCore { -PassRefPtrWillBeRawPtr TextDecoder::create(const String& label, const Dictionary& options, ExceptionState& exceptionState) +TextDecoder* TextDecoder::create(const String& label, const Dictionary& options, ExceptionState& exceptionState) { const String& encodingLabel = label.isNull() ? String("utf-8") : label; WTF::TextEncoding encoding(encodingLabel); if (!encoding.isValid()) { exceptionState.throwTypeError("The encoding label provided ('" + encodingLabel + "') is invalid."); - return nullptr; + return 0; } bool fatal = false; options.get("fatal", fatal); - return adoptRefWillBeNoop(new TextDecoder(encoding.name(), fatal)); + return new TextDecoder(encoding.name(), fatal); }