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

Issue 1287293002: Use background positioning origin for repeating backgrounds (Closed)

Created:
5 years, 4 months ago by davve
Modified:
5 years, 4 months ago
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

Use background positioning origin for repeating backgrounds When support for 4-value syntax for background-position was added, only the non-repeating case was actually tested and render support for the non-top-left anchor points were missing. This patch adds render support and a simple test for the three anchor positions that wasn't supported before for repeated/tiled backgrounds. BUG=488707, 521481 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200718

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -2 lines) Patch
A LayoutTests/fast/backgrounds/background-position-repeat-rendering.html View 1 chunk +27 lines, -0 lines 0 comments Download
A LayoutTests/fast/backgrounds/background-position-repeat-rendering-expected.html View 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/paint/BoxPainter.cpp View 2 chunks +4 lines, -2 lines 2 comments Download

Messages

Total messages: 12 (3 generated)
davve
PTAL. Related to this BoxPainter::calculateBackgroundImageGeometry() looks like a potential candidate for refactoring. One idea is ...
5 years, 4 months ago (2015-08-14 07:02:21 UTC) #2
davve
Philip, are you able to review perhaps? Or point me in the direction of other ...
5 years, 4 months ago (2015-08-17 19:27:43 UTC) #4
pdr.
I love background images! Or, well, that's a lie, but I do love them more ...
5 years, 4 months ago (2015-08-18 06:41:08 UTC) #5
davve
https://codereview.chromium.org/1287293002/diff/1/Source/core/paint/BoxPainter.cpp File Source/core/paint/BoxPainter.cpp (right): https://codereview.chromium.org/1287293002/diff/1/Source/core/paint/BoxPainter.cpp#newcode722 Source/core/paint/BoxPainter.cpp:722: computedXPosition = roundedMinimumValueForLength(Length(), availableWidth); On 2015/08/18 06:41:08, pdr wrote: ...
5 years, 4 months ago (2015-08-18 06:52:16 UTC) #6
davve
On 2015/08/18 06:41:08, pdr wrote: > This code could use some refactoring, but that's a ...
5 years, 4 months ago (2015-08-18 06:55:43 UTC) #7
pdr.
On 2015/08/18 at 06:52:16, davve wrote: > https://codereview.chromium.org/1287293002/diff/1/Source/core/paint/BoxPainter.cpp > File Source/core/paint/BoxPainter.cpp (right): > > https://codereview.chromium.org/1287293002/diff/1/Source/core/paint/BoxPainter.cpp#newcode722 ...
5 years, 4 months ago (2015-08-18 06:57:23 UTC) #8
pdr.
On 2015/08/18 at 06:55:43, davve wrote: > On 2015/08/18 06:41:08, pdr wrote: > > > ...
5 years, 4 months ago (2015-08-18 07:07:47 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1287293002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1287293002/1
5 years, 4 months ago (2015-08-18 07:12:00 UTC) #11
commit-bot: I haz the power
5 years, 4 months ago (2015-08-18 10:13:05 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200718

Powered by Google App Engine
This is Rietveld 408576698