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

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

Issue 2465783002: Fix a typo in Viewport.MetaTagType (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights
7 * reserved. 7 * reserved.
8 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 } else if (maxWidth.type() == blink::DeviceWidth || 282 } else if (maxWidth.type() == blink::DeviceWidth ||
283 maxWidth.type() == blink::ExtendToZoom) { 283 maxWidth.type() == blink::ExtendToZoom) {
284 metaTagTypeHistogram.count(DeviceWidth); 284 metaTagTypeHistogram.count(DeviceWidth);
285 } else { 285 } else {
286 // Overflow bucket for cases we may be unaware of. 286 // Overflow bucket for cases we may be unaware of.
287 metaTagTypeHistogram.count(MetaWidthOther); 287 metaTagTypeHistogram.count(MetaWidthOther);
288 } 288 }
289 } else if (type == ViewportDescription::HandheldFriendlyMeta) { 289 } else if (type == ViewportDescription::HandheldFriendlyMeta) {
290 metaTagTypeHistogram.count(MetaHandheldFriendly); 290 metaTagTypeHistogram.count(MetaHandheldFriendly);
291 } else if (type == ViewportDescription::MobileOptimizedMeta) { 291 } else if (type == ViewportDescription::MobileOptimizedMeta) {
292 metaTagTypeHistogram.count(MobileOptimizedMeta); 292 metaTagTypeHistogram.count(MetaMobileOptimized);
wychen 2016/11/02 21:34:44 MobileOptimizedMeta is 2, while MetaMobileOptimize
293 } 293 }
294 #endif 294 #endif
295 } 295 }
296 296
297 bool ViewportDescription::matchesHeuristicsForGpuRasterization() const { 297 bool ViewportDescription::matchesHeuristicsForGpuRasterization() const {
298 return isSpecifiedByAuthor(); 298 return isSpecifiedByAuthor();
299 } 299 }
300 300
301 } // namespace blink 301 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698