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

Unified Diff: Source/core/dom/DecodedDataDocumentParser.cpp

Issue 27394002: Process decoded bytes when in stopped (but not detached) state (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add comment and test Created 7 years, 2 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/core/dom/DecodedDataDocumentParser.cpp
diff --git a/Source/core/dom/DecodedDataDocumentParser.cpp b/Source/core/dom/DecodedDataDocumentParser.cpp
index 7ac890e48e1c4993dd7b01576d1c927909a315b8..8d3f2736194d0e9fb0d6cec8c090510df24eee86 100644
--- a/Source/core/dom/DecodedDataDocumentParser.cpp
+++ b/Source/core/dom/DecodedDataDocumentParser.cpp
@@ -41,7 +41,7 @@ size_t DecodedDataDocumentParser::appendBytes(const char* data, size_t length)
if (!length)
return 0;
- if (isStopped())
+ if (isDetached())
return 0;
String decoded = document()->decoder()->decode(data, length);
@@ -58,7 +58,7 @@ size_t DecodedDataDocumentParser::appendBytes(const char* data, size_t length)
size_t DecodedDataDocumentParser::flush()
{
- if (isStopped())
+ if (isDetached())
eseidel 2013/10/16 19:35:09 I might add a comment explaining why this is only
return 0;
// null decoder indicates there is no data received.

Powered by Google App Engine
This is Rietveld 408576698