Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.cpp

Issue 2545663005: Remove MediaQuerySet:createOffMainThread. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQuerySetTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 ASSERT_NOT_REACHED(); 124 ASSERT_NOT_REACHED();
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 = 130 MediaQuerySet* mediaQueries = MediaQuerySet::create(attributeValue);
131 MediaQuerySet::createOffMainThread(attributeValue);
132 MediaQueryEvaluator mediaQueryEvaluator(mediaValues); 131 MediaQueryEvaluator mediaQueryEvaluator(mediaValues);
133 return mediaQueryEvaluator.eval(mediaQueries); 132 return mediaQueryEvaluator.eval(mediaQueries);
134 } 133 }
135 134
136 class TokenPreloadScanner::StartTagScanner { 135 class TokenPreloadScanner::StartTagScanner {
137 STACK_ALLOCATED(); 136 STACK_ALLOCATED();
138 137
139 public: 138 public:
140 StartTagScanner(const StringImpl* tagImpl, MediaValuesCached* mediaValues) 139 StartTagScanner(const StringImpl* tagImpl, MediaValuesCached* mediaValues)
141 : m_tagImpl(tagImpl), 140 : m_tagImpl(tagImpl),
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 defaultViewportMinWidth = document->viewportDefaultMinWidth(); 902 defaultViewportMinWidth = document->viewportDefaultMinWidth();
904 viewportMetaZeroValuesQuirk = 903 viewportMetaZeroValuesQuirk =
905 document->settings() && 904 document->settings() &&
906 document->settings()->viewportMetaZeroValuesQuirk(); 905 document->settings()->viewportMetaZeroValuesQuirk();
907 viewportMetaEnabled = 906 viewportMetaEnabled =
908 document->settings() && document->settings()->viewportMetaEnabled(); 907 document->settings() && document->settings()->viewportMetaEnabled();
909 referrerPolicy = document->getReferrerPolicy(); 908 referrerPolicy = document->getReferrerPolicy();
910 } 909 }
911 910
912 } // namespace blink 911 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQuerySetTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698