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 78a431c0445a327553379a36dff3474271b9d3cd..dce5fbc14471401327678ce9f296d2ac2fce8623 100644 |
--- a/third_party/WebKit/Source/core/dom/StyleElement.cpp |
+++ b/third_party/WebKit/Source/core/dom/StyleElement.cpp |
@@ -141,8 +141,7 @@ StyleElement::ProcessingResult StyleElement::CreateSheet(Element& element, |
ShouldBypassMainWorldCSP(element) || |
csp->AllowStyleWithHash(text, |
ContentSecurityPolicy::InlineType::kBlock) || |
- csp->AllowInlineStyle(&element, document.Url(), |
- element.FastGetAttribute(HTMLNames::nonceAttr), |
+ csp->AllowInlineStyle(&element, document.Url(), element.nonce(), |
start_position_.line_, text); |
// Clearing the current sheet may remove the cache entry so create the new |