| Index: Source/core/fetch/CSSStyleSheetResource.h
|
| diff --git a/Source/core/fetch/CSSStyleSheetResource.h b/Source/core/fetch/CSSStyleSheetResource.h
|
| index 2ce492d91b21c12b6e0d269016d8ff3ff027d153..ee898afb5b58ea1d17c8b381df699c938f43d2e4 100644
|
| --- a/Source/core/fetch/CSSStyleSheetResource.h
|
| +++ b/Source/core/fetch/CSSStyleSheetResource.h
|
| @@ -38,11 +38,13 @@ class StyleSheetContents;
|
|
|
| class CSSStyleSheetResource final : public StyleSheetResource {
|
| public:
|
| + enum class MIMETypeCheck { Strict, Lax };
|
| +
|
| CSSStyleSheetResource(const ResourceRequest&, const String& charset);
|
| virtual ~CSSStyleSheetResource();
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| - const String sheetText(bool* hasValidMIMEType = 0) const;
|
| + const String sheetText(MIMETypeCheck = MIMETypeCheck::Strict) const;
|
|
|
| const AtomicString mimeType() const;
|
|
|
| @@ -56,7 +58,7 @@ protected:
|
| virtual void destroyDecodedDataIfPossible() override;
|
|
|
| private:
|
| - bool canUseSheet(bool* hasValidMIMEType) const;
|
| + bool canUseSheet(MIMETypeCheck) const;
|
| virtual void dispose() override;
|
| virtual void checkNotify() override;
|
|
|
|
|