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

Issue 1164573003: Move NinePieceImage painting to a separate class (Closed)

Created:
5 years, 6 months ago by davve
Modified:
5 years, 6 months ago
Reviewers:
chrishtr, pdr.
CC:
blink-reviews, blink-reviews-paint_chromium.org, dshwang, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Move NinePieceImage painting to a separate class While doing as little changes as possible, move NinePieceImage painting code out of BoxPainter into a separate class. This is in preparation for the possibility of splitting the function into smaller parts. The function currently has roughly 36 local variables and is quite hard to understand and change. BUG=492485 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196301

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -182 lines) Patch
M Source/core/core.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/paint/BoxPainter.cpp View 1 2 chunks +3 lines, -182 lines 0 comments Download
A Source/core/paint/NinePieceImagePainter.h View 1 1 chunk +36 lines, -0 lines 0 comments Download
A Source/core/paint/NinePieceImagePainter.cpp View 1 1 chunk +210 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
davve
PTAL. Not sure who wants to review this so feel free to pass on to ...
5 years, 6 months ago (2015-05-29 14:16:16 UTC) #2
pdr.
LGTM, I'm sorry for not getting to this before https://codereview.chromium.org/1162863006 landed. https://codereview.chromium.org/1164573003/diff/1/Source/core/paint/NinePieceImagePainter.h File Source/core/paint/NinePieceImagePainter.h (right): ...
5 years, 6 months ago (2015-06-02 01:41:51 UTC) #4
davve
https://codereview.chromium.org/1164573003/diff/1/Source/core/paint/NinePieceImagePainter.h File Source/core/paint/NinePieceImagePainter.h (right): https://codereview.chromium.org/1164573003/diff/1/Source/core/paint/NinePieceImagePainter.h#newcode20 Source/core/paint/NinePieceImagePainter.h:20: class NinePieceImagePainter { On 2015/06/02 01:41:51, pdr wrote: > ...
5 years, 6 months ago (2015-06-02 07:18:53 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164573003/20001
5 years, 6 months ago (2015-06-02 07:19:26 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://src.chromium.org/viewvc/blink?view=rev&revision=196301
5 years, 6 months ago (2015-06-02 09:00:31 UTC) #9
chrishtr
5 years, 6 months ago (2015-06-02 15:39:19 UTC) #10
Message was sent while issue was closed.
LGTM also. Thanks for improving this code.

Powered by Google App Engine
This is Rietveld 408576698