| 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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 } | 568 } |
| 569 if (match(tagImpl, metaTag)) { | 569 if (match(tagImpl, metaTag)) { |
| 570 const typename Token::Attribute* equivAttribute = token.getAttribute
Item(http_equivAttr); | 570 const typename Token::Attribute* equivAttribute = token.getAttribute
Item(http_equivAttr); |
| 571 if (equivAttribute) { | 571 if (equivAttribute) { |
| 572 String equivAttributeValue(equivAttribute->value); | 572 String equivAttributeValue(equivAttribute->value); |
| 573 if (equalIgnoringCase(equivAttributeValue, "content-security-pol
icy")) { | 573 if (equalIgnoringCase(equivAttributeValue, "content-security-pol
icy")) { |
| 574 m_isCSPEnabled = true; | 574 m_isCSPEnabled = true; |
| 575 } else if (equalIgnoringCase(equivAttributeValue, "accept-ch"))
{ | 575 } else if (equalIgnoringCase(equivAttributeValue, "accept-ch"))
{ |
| 576 const typename Token::Attribute* contentAttribute = token.ge
tAttributeItem(contentAttr); | 576 const typename Token::Attribute* contentAttribute = token.ge
tAttributeItem(contentAttr); |
| 577 if (contentAttribute) | 577 if (contentAttribute) |
| 578 handleAcceptClientHintsHeader(String(contentAttribute->v
alue), m_clientHintsPreferences, nullptr); | 578 m_clientHintsPreferences.updateFromAcceptClientHintsHead
er(String(contentAttribute->value), nullptr); |
| 579 } | 579 } |
| 580 return; | 580 return; |
| 581 } | 581 } |
| 582 | 582 |
| 583 handleMetaNameAttribute(token, m_documentParameters.get(), &m_cssSca
nner); | 583 handleMetaNameAttribute(token, m_documentParameters.get(), &m_cssSca
nner); |
| 584 } | 584 } |
| 585 | 585 |
| 586 if (match(tagImpl, pictureTag)) { | 586 if (match(tagImpl, pictureTag)) { |
| 587 m_inPicture = true; | 587 m_inPicture = true; |
| 588 m_pictureData = PictureData(); | 588 m_pictureData = PictureData(); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 else | 661 else |
| 662 mediaValues = MediaValuesCached::create(*document); | 662 mediaValues = MediaValuesCached::create(*document); |
| 663 ASSERT(mediaValues->isSafeToSendToAnotherThread()); | 663 ASSERT(mediaValues->isSafeToSendToAnotherThread()); |
| 664 defaultViewportMinWidth = document->viewportDefaultMinWidth(); | 664 defaultViewportMinWidth = document->viewportDefaultMinWidth(); |
| 665 viewportMetaZeroValuesQuirk = document->settings() && document->settings()->
viewportMetaZeroValuesQuirk(); | 665 viewportMetaZeroValuesQuirk = document->settings() && document->settings()->
viewportMetaZeroValuesQuirk(); |
| 666 viewportMetaEnabled = document->settings() && document->settings()->viewport
MetaEnabled(); | 666 viewportMetaEnabled = document->settings() && document->settings()->viewport
MetaEnabled(); |
| 667 referrerPolicy = ReferrerPolicyDefault; | 667 referrerPolicy = ReferrerPolicyDefault; |
| 668 } | 668 } |
| 669 | 669 |
| 670 } | 670 } |
| OLD | NEW |