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

Issue 1477393003: Use LayoutUnit in NinePieceImage drawing (Closed)

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

Description

Use LayoutUnit in NinePieceImage drawing Instead of pixel snapping early on, pass through LayoutUnits and convert directly to floats before passing values down through the graphics context. BUG=561519

Patch Set 1 #

Patch Set 2 : Rebase on top of leviw's sub-pixel changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -36 lines) Patch
M third_party/WebKit/Source/core/paint/NinePieceImageGrid.h View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/paint/NinePieceImageGrid.cpp View 6 chunks +9 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/paint/NinePieceImageGridTest.cpp View 11 chunks +17 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/paint/NinePieceImagePainter.cpp View 1 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1477393003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1477393003/1
5 years ago (2015-11-27 13:33:20 UTC) #2
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-27 14:39:39 UTC) #4
davve
The other plumbing part of NinePieceImageGrid and sub-pixel positioning. This part will conflict with yours, ...
5 years ago (2015-11-27 14:58:46 UTC) #6
eae
I like it but please allow Levi to chime in before landing. LGTM
5 years ago (2015-12-01 03:15:27 UTC) #7
davve
Patch set 2's layout test results shows how delicate this matter is. Gaps introduced between ...
5 years ago (2015-12-02 10:49:41 UTC) #9
davve
Did a quick tour in the debugger and it seemed like even though passing the ...
5 years ago (2015-12-02 13:51:18 UTC) #10
leviw_travelin_and_unemployed
5 years ago (2015-12-02 18:27:54 UTC) #11
Message was sent while issue was closed.
On 2015/12/02 at 13:51:18, davve wrote:
> Did a quick tour in the debugger and it seemed like even though passing the
correct (float) values through the GC, the gaps didn't go away.
> 
> Might have to keep nine-piece-images pixel aligned for now.

D'oh :( Let me know if there are more developments here.

Powered by Google App Engine
This is Rietveld 408576698