Index: Source/core/css/CSSStyleSheet.cpp |
diff --git a/Source/core/css/CSSStyleSheet.cpp b/Source/core/css/CSSStyleSheet.cpp |
index 13adbc477c89d256a70605428a90df9d609981b0..a34cd37a9934b661864f80a598b3d63ae6fa788d 100644 |
--- a/Source/core/css/CSSStyleSheet.cpp |
+++ b/Source/core/css/CSSStyleSheet.cpp |
@@ -35,7 +35,6 @@ |
#include "core/dom/Document.h" |
#include "core/dom/ExceptionCode.h" |
#include "core/dom/Node.h" |
-#include "core/frame/ContentSecurityPolicy.h" |
#include "core/frame/UseCounter.h" |
#include "core/inspector/InspectorInstrumentation.h" |
#include "platform/weborigin/SecurityOrigin.h" |
@@ -271,13 +270,6 @@ unsigned CSSStyleSheet::insertRule(const String& ruleString, unsigned index, Exc |
{ |
ASSERT(m_childRuleCSSOMWrappers.isEmpty() || m_childRuleCSSOMWrappers.size() == m_contents->ruleCount()); |
- if (Document* document = ownerDocument()) { |
- if (!document->contentSecurityPolicy()->allowStyleEval()) { |
- exceptionState.throwSecurityError(document->contentSecurityPolicy()->styleEvalDisabledErrorMessage()); |
- return 0; |
- } |
- } |
- |
if (index > length()) { |
exceptionState.throwDOMException(IndexSizeError, "The index provided (" + String::number(index) + ") is larger than the maximum index (" + String::number(length()) + ")."); |
return 0; |