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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp

Issue 2443753002: Count presence of viewport tag as mobile-friendly
Patch Set: default false Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ViewportDescription.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp b/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp
index 8044c7f8b83101124fc07e65861fe2f281fd770c..d743b7a75c7dcfa5bf34314d3a592dca0abd5d31 100644
--- a/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp
@@ -181,9 +181,7 @@ bool hasOpenGraphArticle(const Element& head) {
}
bool isMobileFriendly(Document& document) {
- if (FrameHost* frameHost = document.frameHost())
- return frameHost->visualViewport().shouldDisableDesktopWorkarounds();
- return false;
+ return document.viewportDescription().isSpecifiedByAuthor();
}
} // namespace
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ViewportDescription.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698