Commit dc1e0820 authored by Dave Schuyler's avatar Dave Schuyler Committed by Commit Bot

[Omnibox] removed unnecessary local var

This Cl removes an unnecessary local var as suggested in
https://chromium-review.googlesource.com/c/chromium/src/+/1048865/4/chrome/browser/ui/views/omnibox/omnibox_match_cell_view.cc#246

Bug: None
Change-Id: I35eab5fc55ca218080e2a37878636b8df40eb152
Reviewed-on: https://chromium-review.googlesource.com/1050578Reviewed-by: default avatarJustin Donnelly <jdonnelly@chromium.org>
Commit-Queue: Dave Schuyler <dschuyler@chromium.org>
Cr-Commit-Position: refs/heads/master@{#557259}
parent 46fa967b
......@@ -243,8 +243,7 @@ void OmniboxMatchCellView::Layout() {
}
void OmniboxMatchCellView::LayoutOldStyleAnswer() {
const int start_x = GetIconAlignmentOffset() + HorizontalPadding();
int x = start_x;
int x = GetIconAlignmentOffset() + HorizontalPadding();
int y = GetVerticalInsets(text_height_, /*is_old_style_answer=*/true).top();
icon_view_->SetSize(icon_view_->CalculatePreferredSize());
icon_view_->SetPosition(
......@@ -256,8 +255,7 @@ void OmniboxMatchCellView::LayoutOldStyleAnswer() {
// The description may be multi-line. Using the view height results in
// an image that's too large, so we use the line height here instead.
int image_edge_length = description_view_->GetLineHeight();
image_view_->SetBounds(start_x + icon_view_->width() + HorizontalPadding(),
y + (kVerticalPadding / 2), image_edge_length,
image_view_->SetBounds(x, y + (kVerticalPadding / 2), image_edge_length,
image_edge_length);
image_view_->SetImageSize(gfx::Size(image_edge_length, image_edge_length));
x += image_view_->width() + kAnswerIconToTextPadding;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment