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

Issue 2689993003: Account for borders and padding when calculating background tile size. (Closed)

Created:
3 years, 10 months ago by Karl Øygard
Modified:
3 years, 9 months ago
Reviewers:
Stephen Chennney
CC:
chromium-reviews, blink-reviews, dshwang, blink-reviews-paint_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Account for borders and padding when calculating background tile size. This is required when sub-pixel borders and padding are used, otherwise the tile size may become one pixel too small, causing rendering artifacts. Test case attached. BUG=686435 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2689993003 Cr-Commit-Position: refs/heads/master@{#455454} Committed: https://chromium.googlesource.com/chromium/src/+/0957d8cc17fb3e90d3f0203a0e3cc1b32bfc8528

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebaselined test cases. #

Patch Set 3 : Rebaselined tests again. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -3 lines) Patch
A third_party/WebKit/LayoutTests/fast/backgrounds/background-tiling-sub-pixel.html View 1 chunk +24 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/backgrounds/background-tiling-sub-pixel-expected.html View 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/forms/calendar-picker/calendar-picker-appearance-zoom125-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/forms/calendar-picker/calendar-picker-appearance-zoom125-expected.png View 1 2 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/fast/forms/calendar-picker/calendar-picker-appearance-zoom125-expected.png View 1 2 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-mac10.11/svg/zoom/page/zoom-background-images-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/forms/calendar-picker/calendar-picker-appearance-zoom125-expected.png View 1 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/fast/forms/calendar-picker/calendar-picker-appearance-zoom125-expected.png View 1 2 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/platform/mac-retina/svg/zoom/page/zoom-background-images-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/calendar-picker/calendar-picker-appearance-zoom125-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/zoom/page/zoom-background-images-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/forms/calendar-picker/calendar-picker-appearance-zoom125-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/zoom/page/zoom-background-images-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win7/fast/forms/calendar-picker/calendar-picker-appearance-zoom125-expected.png View 1 2 Binary file 0 comments Download
M third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp View 1 2 3 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (20 generated)
Stephen Chennney
I'm also curious why the left circle in the svg/zoom test case now looks better ...
3 years, 10 months ago (2017-02-13 20:24:00 UTC) #7
Karl Øygard
On 2017/02/13 20:24:00, Stephen Chennney wrote: > I'm also curious why the left circle in ...
3 years, 9 months ago (2017-02-28 13:42:20 UTC) #12
Stephen Chennney
Thanks for the info. lgtm.
3 years, 9 months ago (2017-02-28 15:51:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2689993003/20001
3 years, 9 months ago (2017-03-06 13:53:21 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_layout_tests_slimming_paint_v2 on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_layout_tests_slimming_paint_v2/builds/3079)
3 years, 9 months ago (2017-03-06 14:25:42 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2689993003/40001
3 years, 9 months ago (2017-03-08 13:54:13 UTC) #24
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 15:14:10 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/0957d8cc17fb3e90d3f0203a0e3c...

Powered by Google App Engine
This is Rietveld 408576698