Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / modules / encoding / TextDecoder.cpp
index 06bf788..3e58747 100644 (file)
@@ -38,7 +38,9 @@
 
 namespace WebCore {
 
-PassRefPtr<TextDecoder> TextDecoder::create(const String& label, const Dictionary& options, ExceptionState& exceptionState)
+DEFINE_GC_INFO(TextDecoder);
+
+PassRefPtrWillBeRawPtr<TextDecoder> TextDecoder::create(const String& label, const Dictionary& options, ExceptionState& exceptionState)
 {
     const String& encodingLabel = label.isNull() ? String("utf-8") : label;
 
@@ -51,7 +53,7 @@ PassRefPtr<TextDecoder> TextDecoder::create(const String& label, const Dictionar
     bool fatal = false;
     options.get("fatal", fatal);
 
-    return adoptRef(new TextDecoder(encoding.name(), fatal));
+    return adoptRefWillBeNoop(new TextDecoder(encoding.name(), fatal));
 }