Index: third_party/WebKit/Source/core/dom/StyleElement.cpp |
diff --git a/third_party/WebKit/Source/core/dom/StyleElement.cpp b/third_party/WebKit/Source/core/dom/StyleElement.cpp |
index 269d5048f0d04d18b9afb8ec0efc4db4bf7d675f..8346091bdad678adb8b6d0fd9e9e3d1c0159a647 100644 |
--- a/third_party/WebKit/Source/core/dom/StyleElement.cpp |
+++ b/third_party/WebKit/Source/core/dom/StyleElement.cpp |
@@ -175,8 +175,7 @@ StyleElement::ProcessingResult StyleElement::createSheet(Element* e, const Strin |
const ContentSecurityPolicy* csp = document.contentSecurityPolicy(); |
bool passesContentSecurityPolicyChecks = shouldBypassMainWorldCSP(e) |
|| csp->allowStyleWithHash(text, ContentSecurityPolicy::InlineType::Block) |
- || csp->allowStyleWithNonce(e->fastGetAttribute(HTMLNames::nonceAttr)) |
- || csp->allowInlineStyle(e->document().url(), m_startPosition.m_line, text); |
+ || csp->allowInlineStyle(e->document().url(), e->fastGetAttribute(HTMLNames::nonceAttr), m_startPosition.m_line, text); |
// Clearing the current sheet may remove the cache entry so create the new sheet first |
CSSStyleSheet* newSheet = nullptr; |