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

Issue 1180053009: Rewrite nine piece image painting code (Closed)

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

Description

Rewrite nine piece image painting code Introduce a NinePieceImageGrid class responsible for computing the nine piece image drawing information. The NinePieceImageGrid is oblivious to painting details and only operates on the border image properties (through NinePieceImage), image size and border image area. Functionally, it shouldn't introduce any significant changes and nothing web exposed should change at all. Since computing drawing information is now self-contained, supply unit tests for verifying it does the correct thing in the common and not so common cases. BUG=496033 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197805

Patch Set 1 #

Patch Set 2 : More tests #

Patch Set 3 : check-webkit-style #

Patch Set 4 : Describe tests and add some polish #

Patch Set 5 : Trace got lost; add it back #

Patch Set 6 : Some more polish #

Total comments: 10

Patch Set 7 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+655 lines, -155 lines) Patch
M Source/core/core.gypi View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
A Source/core/paint/NinePieceImageGrid.h View 1 2 3 4 5 6 1 chunk +108 lines, -0 lines 0 comments Download
A Source/core/paint/NinePieceImageGrid.cpp View 1 2 3 4 5 6 1 chunk +250 lines, -0 lines 0 comments Download
A Source/core/paint/NinePieceImageGridTest.cpp View 1 2 3 1 chunk +271 lines, -0 lines 0 comments Download
M Source/core/paint/NinePieceImagePainter.h View 1 3 chunks +0 lines, -4 lines 0 comments Download
M Source/core/paint/NinePieceImagePainter.cpp View 1 2 3 4 3 chunks +23 lines, -151 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
davve
I originally refactored this code to ease fixing http://code.google.com/p/chromium/issues/detail?id=492485 That bug (and spec change) seems ...
5 years, 6 months ago (2015-06-24 11:39:49 UTC) #2
fs
LGTM w/ nits https://codereview.chromium.org/1180053009/diff/90001/Source/core/core.gypi File Source/core/core.gypi (right): https://codereview.chromium.org/1180053009/diff/90001/Source/core/core.gypi#newcode3937 Source/core/core.gypi:3937: 'paint/NinePieceImageGridTest.cpp', N < T https://codereview.chromium.org/1180053009/diff/90001/Source/core/paint/NinePieceImageGrid.cpp File ...
5 years, 6 months ago (2015-06-24 13:19:11 UTC) #3
davve
https://codereview.chromium.org/1180053009/diff/90001/Source/core/core.gypi File Source/core/core.gypi (right): https://codereview.chromium.org/1180053009/diff/90001/Source/core/core.gypi#newcode3937 Source/core/core.gypi:3937: 'paint/NinePieceImageGridTest.cpp', On 2015/06/24 13:19:10, fs wrote: > N < ...
5 years, 6 months ago (2015-06-24 13:35:26 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1180053009/110001
5 years, 6 months ago (2015-06-25 09:00:58 UTC) #7
commit-bot: I haz the power
5 years, 6 months ago (2015-06-25 09:08:26 UTC) #8
Message was sent while issue was closed.
Committed patchset #7 (id:110001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197805

Powered by Google App Engine
This is Rietveld 408576698