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

Unified Diff: Source/modules/encoding/TextDecoder.cpp

Issue 156453002: Move encoding module to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
Index: Source/modules/encoding/TextDecoder.cpp
diff --git a/Source/modules/encoding/TextDecoder.cpp b/Source/modules/encoding/TextDecoder.cpp
index 06bf788e0f7aacde318748d8c796432d20bd9c67..3e587473b1984dcf8f263eb9e8e2411462c02a60 100644
--- a/Source/modules/encoding/TextDecoder.cpp
+++ b/Source/modules/encoding/TextDecoder.cpp
@@ -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));
}

Powered by Google App Engine
This is Rietveld 408576698