| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 if (match(tagImpl, scriptTag)) | 120 if (match(tagImpl, scriptTag)) |
| 121 return scriptTag.localName(); | 121 return scriptTag.localName(); |
| 122 if (match(tagImpl, videoTag)) | 122 if (match(tagImpl, videoTag)) |
| 123 return videoTag.localName(); | 123 return videoTag.localName(); |
| 124 NOTREACHED(); | 124 NOTREACHED(); |
| 125 return emptyString; | 125 return emptyString; |
| 126 } | 126 } |
| 127 | 127 |
| 128 static bool mediaAttributeMatches(const MediaValuesCached& mediaValues, | 128 static bool mediaAttributeMatches(const MediaValuesCached& mediaValues, |
| 129 const String& attributeValue) { | 129 const String& attributeValue) { |
| 130 MediaQuerySet* mediaQueries = MediaQuerySet::create(attributeValue); | 130 RefPtr<MediaQuerySet> mediaQueries = MediaQuerySet::create(attributeValue); |
| 131 MediaQueryEvaluator mediaQueryEvaluator(mediaValues); | 131 MediaQueryEvaluator mediaQueryEvaluator(mediaValues); |
| 132 return mediaQueryEvaluator.eval(mediaQueries); | 132 return mediaQueryEvaluator.eval(*mediaQueries); |
| 133 } | 133 } |
| 134 | 134 |
| 135 class TokenPreloadScanner::StartTagScanner { | 135 class TokenPreloadScanner::StartTagScanner { |
| 136 STACK_ALLOCATED(); | 136 STACK_ALLOCATED(); |
| 137 | 137 |
| 138 public: | 138 public: |
| 139 StartTagScanner(const StringImpl* tagImpl, MediaValuesCached* mediaValues) | 139 StartTagScanner(const StringImpl* tagImpl, MediaValuesCached* mediaValues) |
| 140 : m_tagImpl(tagImpl), | 140 : m_tagImpl(tagImpl), |
| 141 m_linkIsStyleSheet(false), | 141 m_linkIsStyleSheet(false), |
| 142 m_linkIsPreconnect(false), | 142 m_linkIsPreconnect(false), |
| (...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 926 defaultViewportMinWidth = document->viewportDefaultMinWidth(); | 926 defaultViewportMinWidth = document->viewportDefaultMinWidth(); |
| 927 viewportMetaZeroValuesQuirk = | 927 viewportMetaZeroValuesQuirk = |
| 928 document->settings() && | 928 document->settings() && |
| 929 document->settings()->getViewportMetaZeroValuesQuirk(); | 929 document->settings()->getViewportMetaZeroValuesQuirk(); |
| 930 viewportMetaEnabled = | 930 viewportMetaEnabled = |
| 931 document->settings() && document->settings()->getViewportMetaEnabled(); | 931 document->settings() && document->settings()->getViewportMetaEnabled(); |
| 932 referrerPolicy = document->getReferrerPolicy(); | 932 referrerPolicy = document->getReferrerPolicy(); |
| 933 } | 933 } |
| 934 | 934 |
| 935 } // namespace blink | 935 } // namespace blink |
| OLD | NEW |