| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ | 3 * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ |
| 4 * Copyright (C) 2010 Google Inc. All Rights Reserved. | 4 * Copyright (C) 2010 Google Inc. All Rights Reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 m_matched &= mediaAttributeMatches(*m_mediaValues, attributeValue); | 350 m_matched &= mediaAttributeMatches(*m_mediaValues, attributeValue); |
| 351 } else if (match(attributeName, crossoriginAttr)) { | 351 } else if (match(attributeName, crossoriginAttr)) { |
| 352 setCrossOrigin(attributeValue); | 352 setCrossOrigin(attributeValue); |
| 353 } else if (match(attributeName, nonceAttr)) { | 353 } else if (match(attributeName, nonceAttr)) { |
| 354 setNonce(attributeValue); | 354 setNonce(attributeValue); |
| 355 } else if (match(attributeName, asAttr)) { | 355 } else if (match(attributeName, asAttr)) { |
| 356 m_asAttributeValue = attributeValue; | 356 m_asAttributeValue = attributeValue; |
| 357 } else if (match(attributeName, typeAttr)) { | 357 } else if (match(attributeName, typeAttr)) { |
| 358 m_matched &= MIMETypeRegistry::isSupportedStyleSheetMIMEType( | 358 m_matched &= MIMETypeRegistry::isSupportedStyleSheetMIMEType( |
| 359 ContentType(attributeValue).type()); | 359 ContentType(attributeValue).type()); |
| 360 } else if (!m_referrerPolicySet && |
| 361 match(attributeName, referrerpolicyAttr) && |
| 362 !attributeValue.isNull()) { |
| 363 m_referrerPolicySet = true; |
| 364 SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords( |
| 365 attributeValue, &m_referrerPolicy); |
| 360 } | 366 } |
| 361 } | 367 } |
| 362 | 368 |
| 363 template <typename NameType> | 369 template <typename NameType> |
| 364 void processInputAttribute(const NameType& attributeName, | 370 void processInputAttribute(const NameType& attributeName, |
| 365 const String& attributeValue) { | 371 const String& attributeValue) { |
| 366 // FIXME - Don't set type multiple times. | 372 // FIXME - Don't set type multiple times. |
| 367 if (match(attributeName, srcAttr)) | 373 if (match(attributeName, srcAttr)) |
| 368 setUrlToLoad(attributeValue, DisallowURLReplacement); | 374 setUrlToLoad(attributeValue, DisallowURLReplacement); |
| 369 else if (match(attributeName, typeAttr)) | 375 else if (match(attributeName, typeAttr)) |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 defaultViewportMinWidth = document->viewportDefaultMinWidth(); | 895 defaultViewportMinWidth = document->viewportDefaultMinWidth(); |
| 890 viewportMetaZeroValuesQuirk = | 896 viewportMetaZeroValuesQuirk = |
| 891 document->settings() && | 897 document->settings() && |
| 892 document->settings()->viewportMetaZeroValuesQuirk(); | 898 document->settings()->viewportMetaZeroValuesQuirk(); |
| 893 viewportMetaEnabled = | 899 viewportMetaEnabled = |
| 894 document->settings() && document->settings()->viewportMetaEnabled(); | 900 document->settings() && document->settings()->viewportMetaEnabled(); |
| 895 referrerPolicy = document->getReferrerPolicy(); | 901 referrerPolicy = document->getReferrerPolicy(); |
| 896 } | 902 } |
| 897 | 903 |
| 898 } // namespace blink | 904 } // namespace blink |
| OLD | NEW |