Chromium Code Reviews| Index: Source/core/fetch/XSLStyleSheetResource.cpp |
| diff --git a/Source/core/fetch/XSLStyleSheetResource.cpp b/Source/core/fetch/XSLStyleSheetResource.cpp |
| index 85fb16014571bf63accea80b570b84d97cabd84c..bb36fce2f0226e0d4c450e3b19dd2c4ca183140b 100644 |
| --- a/Source/core/fetch/XSLStyleSheetResource.cpp |
| +++ b/Source/core/fetch/XSLStyleSheetResource.cpp |
| @@ -27,6 +27,7 @@ |
| #include "config.h" |
| #include "core/fetch/XSLStyleSheetResource.h" |
| +#include "RuntimeEnabledFeatures.h" |
| #include "core/fetch/ResourceClientWalker.h" |
| #include "core/fetch/StyleSheetResourceClient.h" |
| #include "core/fetch/TextResourceDecoder.h" |
| @@ -39,6 +40,7 @@ XSLStyleSheetResource::XSLStyleSheetResource(const ResourceRequest& resourceRequ |
| : Resource(resourceRequest, XSLStyleSheet) |
| , m_decoder(TextResourceDecoder::create("text/xsl")) |
| { |
| + ASSERT(RuntimeEnabledFeatures::xsltEnabled()); |
|
abarth-chromium
2013/10/01 15:06:09
All these ASSERTs are super redundant. This is th
vivekg__
2013/10/02 14:18:23
Done. Also removed one ASSERT check before the new
|
| DEFINE_STATIC_LOCAL(const AtomicString, acceptXSLT, ("text/xml, application/xml, application/xhtml+xml, text/xsl, application/rss+xml, application/atom+xml", AtomicString::ConstructFromLiteral)); |
| // It's XML we want. |