| 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 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 return; | 525 return; |
| 526 | 526 |
| 527 // http://crbug.com/434230 Disable preload for documents with CSP <meta> tag
s | 527 // http://crbug.com/434230 Disable preload for documents with CSP <meta> tag
s |
| 528 if (m_isCSPEnabled) | 528 if (m_isCSPEnabled) |
| 529 return; | 529 return; |
| 530 | 530 |
| 531 switch (token.type()) { | 531 switch (token.type()) { |
| 532 case HTMLToken::Character: { | 532 case HTMLToken::Character: { |
| 533 if (!m_inStyle) | 533 if (!m_inStyle) |
| 534 return; | 534 return; |
| 535 m_cssScanner.scan(token.data(), source, requests); | 535 m_cssScanner.scan(token.data(), source, requests, m_predictedBaseElement
URL); |
| 536 return; | 536 return; |
| 537 } | 537 } |
| 538 case HTMLToken::EndTag: { | 538 case HTMLToken::EndTag: { |
| 539 const StringImpl* tagImpl = tagImplFor(token.data()); | 539 const StringImpl* tagImpl = tagImplFor(token.data()); |
| 540 if (match(tagImpl, templateTag)) { | 540 if (match(tagImpl, templateTag)) { |
| 541 if (m_templateCount) | 541 if (m_templateCount) |
| 542 --m_templateCount; | 542 --m_templateCount; |
| 543 return; | 543 return; |
| 544 } | 544 } |
| 545 if (match(tagImpl, styleTag)) { | 545 if (match(tagImpl, styleTag)) { |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 else | 670 else |
| 671 mediaValues = MediaValuesCached::create(*document); | 671 mediaValues = MediaValuesCached::create(*document); |
| 672 ASSERT(mediaValues->isSafeToSendToAnotherThread()); | 672 ASSERT(mediaValues->isSafeToSendToAnotherThread()); |
| 673 defaultViewportMinWidth = document->viewportDefaultMinWidth(); | 673 defaultViewportMinWidth = document->viewportDefaultMinWidth(); |
| 674 viewportMetaZeroValuesQuirk = document->settings() && document->settings()->
viewportMetaZeroValuesQuirk(); | 674 viewportMetaZeroValuesQuirk = document->settings() && document->settings()->
viewportMetaZeroValuesQuirk(); |
| 675 viewportMetaEnabled = document->settings() && document->settings()->viewport
MetaEnabled(); | 675 viewportMetaEnabled = document->settings() && document->settings()->viewport
MetaEnabled(); |
| 676 referrerPolicy = ReferrerPolicyDefault; | 676 referrerPolicy = ReferrerPolicyDefault; |
| 677 } | 677 } |
| 678 | 678 |
| 679 } | 679 } |
| OLD | NEW |