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

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

Issue 2443753002: Count presence of viewport tag as mobile-friendly
Patch Set: default false 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
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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(MobileOptimizedMeta);
293 } 293 }
294 #endif 294 #endif
295 } 295 }
296 296
297 bool ViewportDescription::matchesHeuristicsForGpuRasterization() const {
298 return isSpecifiedByAuthor();
299 }
300
301 } // namespace blink 297 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ViewportDescription.h ('k') | third_party/WebKit/Source/core/frame/VisualViewport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698