| Index: Source/core/dom/DocumentEncodingData.h
|
| diff --git a/Source/core/dom/DocumentEncodingData.h b/Source/core/dom/DocumentEncodingData.h
|
| index 2016aa531ae3fa5f8a856381cca6509e7b1e5269..5a696afdd1757e42b42e6313b8919e6193f333b8 100644
|
| --- a/Source/core/dom/DocumentEncodingData.h
|
| +++ b/Source/core/dom/DocumentEncodingData.h
|
| @@ -34,31 +34,19 @@
|
| #include "wtf/text/TextEncoding.h"
|
|
|
| namespace WebCore {
|
| -class TextResourceDecoder;
|
|
|
| -class DocumentEncodingData {
|
| -public:
|
| - DocumentEncodingData();
|
| - explicit DocumentEncodingData(const TextResourceDecoder&);
|
| +struct DocumentEncodingData {
|
| + DocumentEncodingData()
|
| + : wasDetectedHeuristically(false)
|
| + , sawDecodingError(false)
|
| + {
|
| + }
|
|
|
| - const WTF::TextEncoding& encoding() const { return m_encoding; }
|
| - void setEncoding(const WTF::TextEncoding&);
|
| - bool wasDetectedHeuristically() const { return m_wasDetectedHeuristically; }
|
| - bool sawDecodingError() const { return m_sawDecodingError; }
|
| -
|
| -private:
|
| - WTF::TextEncoding m_encoding;
|
| - bool m_wasDetectedHeuristically;
|
| - bool m_sawDecodingError;
|
| + WTF::TextEncoding encoding;
|
| + bool wasDetectedHeuristically;
|
| + 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
|
|
|