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

Unified Diff: Source/platform/geometry/FloatPoint.h

Issue 225303014: [Pinch-to-zoom] Moved scale factor into PinchViewport (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed layout test breakage Created 6 years, 8 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 | « Source/core/page/Page.cpp ('k') | Source/web/FullscreenController.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/FloatPoint.h
diff --git a/Source/platform/geometry/FloatPoint.h b/Source/platform/geometry/FloatPoint.h
index 98416e9a7710211eee27182ddfb29a1ffadbe9a4..f042f5741e2ab2b6e73a5a62bd6e9dc922e7188c 100644
--- a/Source/platform/geometry/FloatPoint.h
+++ b/Source/platform/geometry/FloatPoint.h
@@ -123,6 +123,11 @@ public:
return FloatPoint(std::max(m_x, other.m_x), std::max(m_y, other.m_y));
}
+ FloatPoint shrunkTo(const FloatPoint& other) const
+ {
+ return FloatPoint(std::min(m_x, other.m_x), std::min(m_y, other.m_y));
+ }
+
FloatPoint transposedPoint() const
{
return FloatPoint(m_y, m_x);
« no previous file with comments | « Source/core/page/Page.cpp ('k') | Source/web/FullscreenController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698