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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 14367021: Rename ClampToMin and ClampToMax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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 | « chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 3ceef322e47cf618a096dd997b2211275d014796..739dd3f676ede9b8b9199822e9280e22c3a15050 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -903,7 +903,7 @@ void RenderWidgetHostViewAndroid::ClipContents(const gfx::Rect& clipping,
return;
gfx::Size clipped_content(content_size_in_layer_);
- clipped_content.ClampToMax(clipping.size());
+ clipped_content.SetToMin(clipping.size());
texture_layer_->SetBounds(clipped_content);
texture_layer_->SetNeedsDisplay();
@@ -915,7 +915,7 @@ void RenderWidgetHostViewAndroid::ClipContents(const gfx::Rect& clipping,
gfx::PointF offset(
clipping.x() + content_size_in_layer_.width() - content_size.width(),
clipping.y() + content_size_in_layer_.height() - content_size.height());
- offset.ClampToMin(gfx::PointF());
+ offset.SetToMax(gfx::PointF());
gfx::Vector2dF uv_scale(1.f / texture_size_in_layer_.width(),
1.f / texture_size_in_layer_.height());
« no previous file with comments | « chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698