diff options
Diffstat (limited to 'views/window/custom_frame_view.cc')
-rw-r--r-- | views/window/custom_frame_view.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/views/window/custom_frame_view.cc b/views/window/custom_frame_view.cc index b5ef3ab9..3434485 100644 --- a/views/window/custom_frame_view.cc +++ b/views/window/custom_frame_view.cc @@ -422,11 +422,7 @@ void CustomFrameView::PaintRestoredClientEdge(gfx::Canvas* canvas) { SkBitmap* left = rb.GetBitmapNamed(IDR_CONTENT_LEFT_SIDE); // Top. - // This next calculation is necessary because the top center bitmap is shorter - // than the top left and right bitmaps. We need their top edges to line up, - // and we need the left and right edges to start below the corners' bottoms. int top_edge_y = client_area_top - top->height(); - client_area_top = top_edge_y + top_left->height(); canvas->DrawBitmapInt(*top_left, client_area_bounds.x() - top_left->width(), top_edge_y); canvas->TileImageInt(*top, client_area_bounds.x(), top_edge_y, @@ -454,8 +450,8 @@ void CustomFrameView::PaintRestoredClientEdge(gfx::Canvas* canvas) { // Draw the toolbar color to fill in the edges. canvas->DrawRectInt(ResourceBundle::toolbar_color, - client_area_bounds.x() - 1, client_area_top - 2, - client_area_bounds.width() + 1, client_area_bottom - client_area_top + 2); + client_area_bounds.x() - 1, client_area_top - 1, + client_area_bounds.width() + 1, client_area_bottom - client_area_top + 1); } void CustomFrameView::LayoutWindowControls() { |