| 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(tag_impl, scriptTag)) | 120 if (Match(tag_impl, scriptTag)) |
| 121 return scriptTag.LocalName(); | 121 return scriptTag.LocalName(); |
| 122 if (Match(tag_impl, videoTag)) | 122 if (Match(tag_impl, videoTag)) |
| 123 return videoTag.LocalName(); | 123 return videoTag.LocalName(); |
| 124 NOTREACHED(); | 124 NOTREACHED(); |
| 125 return g_empty_string; | 125 return g_empty_string; |
| 126 } | 126 } |
| 127 | 127 |
| 128 static bool MediaAttributeMatches(const MediaValuesCached& media_values, | 128 static bool MediaAttributeMatches(const MediaValuesCached& media_values, |
| 129 const String& attribute_value) { | 129 const String& attribute_value) { |
| 130 MediaQuerySet* media_queries = MediaQuerySet::Create(attribute_value); | 130 RefPtr<MediaQuerySet> media_queries = MediaQuerySet::Create(attribute_value); |
| 131 MediaQueryEvaluator media_query_evaluator(media_values); | 131 MediaQueryEvaluator media_query_evaluator(media_values); |
| 132 return media_query_evaluator.Eval(media_queries); | 132 return media_query_evaluator.Eval(*media_queries); |
| 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* tag_impl, MediaValuesCached* media_values) | 139 StartTagScanner(const StringImpl* tag_impl, MediaValuesCached* media_values) |
| 140 : tag_impl_(tag_impl), | 140 : tag_impl_(tag_impl), |
| 141 link_is_style_sheet_(false), | 141 link_is_style_sheet_(false), |
| 142 link_is_preconnect_(false), | 142 link_is_preconnect_(false), |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 default_viewport_min_width = document->ViewportDefaultMinWidth(); | 945 default_viewport_min_width = document->ViewportDefaultMinWidth(); |
| 946 viewport_meta_zero_values_quirk = | 946 viewport_meta_zero_values_quirk = |
| 947 document->GetSettings() && | 947 document->GetSettings() && |
| 948 document->GetSettings()->GetViewportMetaZeroValuesQuirk(); | 948 document->GetSettings()->GetViewportMetaZeroValuesQuirk(); |
| 949 viewport_meta_enabled = document->GetSettings() && | 949 viewport_meta_enabled = document->GetSettings() && |
| 950 document->GetSettings()->GetViewportMetaEnabled(); | 950 document->GetSettings()->GetViewportMetaEnabled(); |
| 951 referrer_policy = document->GetReferrerPolicy(); | 951 referrer_policy = document->GetReferrerPolicy(); |
| 952 } | 952 } |
| 953 | 953 |
| 954 } // namespace blink | 954 } // namespace blink |
| OLD | NEW |