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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip_unittest.cc

Issue 1302233006: aura: Stop converting Rect to RectF implicitly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rectfconvert-aura: . Created 5 years, 4 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/autofill/card_unmask_prompt_views.cc ('k') | ui/aura/test/test_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_strip_unittest.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip_unittest.cc b/chrome/browser/ui/views/tabs/tab_strip_unittest.cc
index 99255cba7d9908f6606a05f7fc45dcf069043232..4196a7c12ac5077a4582f1164cad0d8d5d115148 100644
--- a/chrome/browser/ui/views/tabs/tab_strip_unittest.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip_unittest.cc
@@ -154,9 +154,9 @@ class TabStripTest : public views::ViewsTestBase {
// |tab| in |tab|'s coordinate space (including padding if |padding|
// is true).
gfx::Rect GetTabCloseHitTestMask(Tab* tab, bool padding) {
- gfx::RectF bounds_f = tab->close_button_->GetContentsBounds();
+ gfx::RectF bounds_f = gfx::RectF(tab->close_button_->GetContentsBounds());
if (padding)
- bounds_f = tab->close_button_->GetLocalBounds();
+ bounds_f = gfx::RectF(tab->close_button_->GetLocalBounds());
views::View::ConvertRectToTarget(tab->close_button_, tab, &bounds_f);
return gfx::ToEnclosingRect(bounds_f);
}
« no previous file with comments | « chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc ('k') | ui/aura/test/test_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698