Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |