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

Unified Diff: third_party/WebKit/Source/core/frame/VisualViewport.cpp

Issue 2443753002: Count presence of viewport tag as mobile-friendly
Patch Set: 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/VisualViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
index 61572c8f2ff53a1aec04dea03dc4032b8cd09927..31738482ef96e1e29ef314dcef334a24af410f0f 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
@@ -776,13 +776,13 @@ bool VisualViewport::shouldDisableDesktopWorkarounds() const {
return false;
// A document is considered adapted to small screen UAs if one of these holds:
- // 1. The author specified viewport has a constrained width that is equal to
- // the initial viewport width.
+ // 1. The author specified viewport has a constrained width that is smaller or
+ // equal to the initial viewport width.
// 2. The author has disabled viewport zoom.
const PageScaleConstraints& constraints =
frameHost().pageScaleConstraintsSet().pageDefinedConstraints();
- return mainFrame()->view()->layoutSize().width() == m_size.width() ||
+ return mainFrame()->view()->layoutSize().width() <= m_size.width() ||
aelias_OOO_until_Jul13 2016/10/24 21:48:59 Hmm, I think we should decouple this from the deta
wychen 2016/10/24 23:18:52 Done.
(constraints.minimumScale == constraints.maximumScale &&
constraints.minimumScale != -1);
}
« 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