Chromium Code Reviews| 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. |