| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights |
| 6 * reserved. | 6 * reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 void HTMLScriptElement::parseAttribute( | 83 void HTMLScriptElement::parseAttribute( |
| 84 const AttributeModificationParams& params) { | 84 const AttributeModificationParams& params) { |
| 85 if (params.name == srcAttr) { | 85 if (params.name == srcAttr) { |
| 86 m_loader->handleSourceAttribute(params.newValue); | 86 m_loader->handleSourceAttribute(params.newValue); |
| 87 logUpdateAttributeIfIsolatedWorldAndInDocument("script", params); | 87 logUpdateAttributeIfIsolatedWorldAndInDocument("script", params); |
| 88 } else if (params.name == asyncAttr) { | 88 } else if (params.name == asyncAttr) { |
| 89 m_loader->handleAsyncAttribute(); | 89 m_loader->handleAsyncAttribute(); |
| 90 } else if (params.name == nonceAttr) { | 90 } else if (params.name == nonceAttr) { |
| 91 if (params.newValue == ContentSecurityPolicy::getNonceReplacementString()) | 91 if (params.newValue == ContentSecurityPolicy::getNonceReplacementString()) |
| 92 return; | 92 return; |
| 93 m_nonce = params.newValue; | 93 setNonce(params.newValue); |
| 94 if (RuntimeEnabledFeatures::hideNonceContentAttributeEnabled()) { | 94 if (RuntimeEnabledFeatures::hideNonceContentAttributeEnabled()) { |
| 95 setAttribute(nonceAttr, | 95 setAttribute(nonceAttr, |
| 96 ContentSecurityPolicy::getNonceReplacementString()); | 96 ContentSecurityPolicy::getNonceReplacementString()); |
| 97 } | 97 } |
| 98 } else { | 98 } else { |
| 99 HTMLElement::parseAttribute(params); | 99 HTMLElement::parseAttribute(params); |
| 100 } | 100 } |
| 101 } | 101 } |
| 102 | 102 |
| 103 Node::InsertionNotificationRequest HTMLScriptElement::insertedInto( | 103 Node::InsertionNotificationRequest HTMLScriptElement::insertedInto( |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 return new HTMLScriptElement(document(), false, m_loader->alreadyStarted(), | 178 return new HTMLScriptElement(document(), false, m_loader->alreadyStarted(), |
| 179 false); | 179 false); |
| 180 } | 180 } |
| 181 | 181 |
| 182 DEFINE_TRACE(HTMLScriptElement) { | 182 DEFINE_TRACE(HTMLScriptElement) { |
| 183 visitor->trace(m_loader); | 183 visitor->trace(m_loader); |
| 184 HTMLElement::trace(visitor); | 184 HTMLElement::trace(visitor); |
| 185 } | 185 } |
| 186 | 186 |
| 187 } // namespace blink | 187 } // namespace blink |
| OLD | NEW |