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

Unified Diff: Source/core/dom/DocumentEncodingData.h

Issue 74513003: Moved text decoding to the parser thread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@parserthread_step25
Patch Set: Review fixes Created 7 years, 1 month 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/DocumentEncodingData.h
diff --git a/Source/core/dom/DocumentEncodingData.h b/Source/core/dom/DocumentEncodingData.h
index d41c078dc87c107f0e597746ead83e9d891aea55..5e2cb36a5433a032c4a586333f7ad6066e288ee7 100644
--- a/Source/core/dom/DocumentEncodingData.h
+++ b/Source/core/dom/DocumentEncodingData.h
@@ -45,6 +45,13 @@ struct DocumentEncodingData {
bool sawDecodingError;
};
+inline bool operator!=(const DocumentEncodingData& a, const DocumentEncodingData& b)
+{
+ return a.encoding != b.encoding
+ || a.wasDetectedHeuristically != b.wasDetectedHeuristically
+ || a.sawDecodingError != b.sawDecodingError;
+}
+
} // namespace WebCore
#endif // DocumentEncodingData_h

Powered by Google App Engine
This is Rietveld 408576698