diff options
author | wittman@chromium.org <wittman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-14 18:05:52 +0000 |
---|---|---|
committer | wittman@chromium.org <wittman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-14 18:05:52 +0000 |
commit | 27e6e9ec960a108b11575c0f00341bda5524d141 (patch) | |
tree | 909bd364189675e3983f78b22fc8f2fd356ad508 /ash/launcher | |
parent | f79de675d793684fb90a36d95a7ac2bde4b6bece (diff) | |
download | chromium_src-27e6e9ec960a108b11575c0f00341bda5524d141.zip chromium_src-27e6e9ec960a108b11575c0f00341bda5524d141.tar.gz chromium_src-27e6e9ec960a108b11575c0f00341bda5524d141.tar.bz2 |
Use gfx::Insets return type for Border::GetInsets().
Simplify Border code by using an explicit return value for GetInsets() rather than an out argument. This code is not invoked enough for performance to be an issue.
BUG=
Review URL: https://chromiumcodereview.appspot.com/11364208
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167699 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/launcher')
-rw-r--r-- | ash/launcher/overflow_bubble.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ash/launcher/overflow_bubble.cc b/ash/launcher/overflow_bubble.cc index e5f78cd..b5a1be5e 100644 --- a/ash/launcher/overflow_bubble.cc +++ b/ash/launcher/overflow_bubble.cc @@ -201,8 +201,7 @@ ui::EventResult OverflowBubbleView::OnScrollEvent(ui::ScrollEvent* event) { gfx::Rect OverflowBubbleView::GetBubbleBounds() { views::BubbleBorder* border = GetBubbleFrameView()->bubble_border(); - gfx::Insets bubble_insets; - border->GetInsets(&bubble_insets); + gfx::Insets bubble_insets = border->GetInsets(); const int border_size = views::BubbleBorder::is_arrow_on_horizontal(arrow_location()) ? |