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

Side by Side Diff: third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp

Issue 2811793004: Rename EqualIgnoringCase*() to DeprecatedEqualIgnoringCase*() (Closed)
Patch Set: Created 3 years, 8 months 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "DocumentStatisticsCollector.h" 5 #include "DocumentStatisticsCollector.h"
6 6
7 #include "core/HTMLNames.h" 7 #include "core/HTMLNames.h"
8 #include "core/InputTypeNames.h" 8 #include "core/InputTypeNames.h"
9 #include "core/dom/ElementTraversal.h" 9 #include "core/dom/ElementTraversal.h"
10 #include "core/dom/NodeComputedStyle.h" 10 #include "core/dom/NodeComputedStyle.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 DEFINE_STATIC_LOCAL(AtomicString, og_type, ("og:type")); 167 DEFINE_STATIC_LOCAL(AtomicString, og_type, ("og:type"));
168 DEFINE_STATIC_LOCAL(AtomicString, property_attr, ("property")); 168 DEFINE_STATIC_LOCAL(AtomicString, property_attr, ("property"));
169 for (const Element* child = ElementTraversal::FirstChild(head); child; 169 for (const Element* child = ElementTraversal::FirstChild(head); child;
170 child = ElementTraversal::NextSibling(*child)) { 170 child = ElementTraversal::NextSibling(*child)) {
171 if (!isHTMLMetaElement(*child)) 171 if (!isHTMLMetaElement(*child))
172 continue; 172 continue;
173 const HTMLMetaElement& meta = toHTMLMetaElement(*child); 173 const HTMLMetaElement& meta = toHTMLMetaElement(*child);
174 174
175 if (meta.GetName() == og_type || 175 if (meta.GetName() == og_type ||
176 meta.getAttribute(property_attr) == og_type) { 176 meta.getAttribute(property_attr) == og_type) {
177 if (EqualIgnoringCase(meta.Content(), "article")) { 177 if (DeprecatedEqualIgnoringCase(meta.Content(), "article")) {
178 return true; 178 return true;
179 } 179 }
180 } 180 }
181 } 181 }
182 return false; 182 return false;
183 } 183 }
184 184
185 bool IsMobileFriendly(Document& document) { 185 bool IsMobileFriendly(Document& document) {
186 if (Page* page = document.GetPage()) 186 if (Page* page = document.GetPage())
187 return page->GetVisualViewport().ShouldDisableDesktopWorkarounds(); 187 return page->GetVisualViewport().ShouldDisableDesktopWorkarounds();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 double elapsed_time = MonotonicallyIncreasingTime() - start_time; 222 double elapsed_time = MonotonicallyIncreasingTime() - start_time;
223 223
224 DEFINE_STATIC_LOCAL(CustomCountHistogram, distillability_histogram, 224 DEFINE_STATIC_LOCAL(CustomCountHistogram, distillability_histogram,
225 ("WebCore.DistillabilityUs", 1, 1000000, 50)); 225 ("WebCore.DistillabilityUs", 1, 1000000, 50));
226 distillability_histogram.Count(static_cast<int>(1e6 * elapsed_time)); 226 distillability_histogram.Count(static_cast<int>(1e6 * elapsed_time));
227 227
228 return features; 228 return features;
229 } 229 }
230 230
231 } // namespace blink 231 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698