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

Issue 1365503007: Make NineImagePainter stay within the bounds rect. (Closed)

Created:
5 years, 2 months ago by skobes
Modified:
5 years, 2 months ago
Reviewers:
sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make NineImagePainter stay within the bounds rect. This adds a check to handle the case where the bounds rect passed to Paint() is too small to fully contain the border pieces. In this case we skip the border and fill the entire bounds rect with the center image. This fixes visual glitches in scrollbar painting when the track is short (we incorrectly paint a few pixels of track on top of the stepper buttons). BUG=536234 Committed: https://crrev.com/bc49adcb8ffd054ed493b7025997d53fbfe27261 Cr-Commit-Position: refs/heads/master@{#351201}

Patch Set 1 #

Patch Set 2 : exclude border if not enough room for it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -5 lines) Patch
M ui/gfx/nine_image_painter.cc View 1 2 chunks +15 lines, -5 lines 0 comments Download
M ui/gfx/nine_image_painter_unittest.cc View 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
skobes
5 years, 2 months ago (2015-09-26 02:40:57 UTC) #2
sky
this happens if the space we're painting to is smaller than the needed size, right? ...
5 years, 2 months ago (2015-09-28 15:01:36 UTC) #3
skobes
On 2015/09/28 15:01:36, sky wrote: > this happens if the space we're painting to is ...
5 years, 2 months ago (2015-09-28 15:50:06 UTC) #4
sky
I like just painting the center. On Mon, Sep 28, 2015 at 8:50 AM, <skobes@chromium.org> ...
5 years, 2 months ago (2015-09-28 17:56:54 UTC) #5
skobes
PTAL
5 years, 2 months ago (2015-09-28 21:09:05 UTC) #6
sky
LGTM
5 years, 2 months ago (2015-09-28 22:54:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1365503007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1365503007/20001
5 years, 2 months ago (2015-09-28 23:22:57 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-09-28 23:30:25 UTC) #10
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 23:31:49 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/bc49adcb8ffd054ed493b7025997d53fbfe27261
Cr-Commit-Position: refs/heads/master@{#351201}

Powered by Google App Engine
This is Rietveld 408576698