Description was changed from ========== Account for borders and padding when calculating background tile size. ...
3 years, 10 months ago
(2017-02-13 12:37:26 UTC)
#1
Description was changed from
==========
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
==========
to
==========
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
==========
Karl Øygard
The CQ bit was checked by karlo@opera.com to run a CQ dry run
3 years, 10 months ago
(2017-02-13 14:00:18 UTC)
#2
The CQ bit was checked by karlo@opera.com to run a CQ dry run
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2689993003/1
3 years, 10 months ago
(2017-02-13 14:00:34 UTC)
#3
Dry run: 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/2782)
3 years, 10 months ago
(2017-02-13 14:36:21 UTC)
#5
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
I'm also curious why the left circle in the svg/zoom test case now looks better
on the bottom but not the right edge.
https://codereview.chromium.org/2689993003/diff/1/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp (right):
https://codereview.chromium.org/2689993003/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp:484:
positioningArea.setSize(rootBox->size());
Do we have a test case that hits this code path? This is the only place I see
where the positioningArea may be very different from the paint rect that we
otherwise would use.
Karl Øygard
The CQ bit was checked by karlo@opera.com to run a CQ dry run
3 years, 10 months ago
(2017-02-14 13:32:18 UTC)
#8
The CQ bit was checked by karlo@opera.com to run a CQ dry run
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2689993003/20001
3 years, 10 months ago
(2017-02-14 13:32:37 UTC)
#9
3 years, 10 months ago
(2017-02-14 14:58:17 UTC)
#11
Dry run: This issue passed the CQ dry run.
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
On 2017/02/13 20:24:00, Stephen Chennney wrote:
> I'm also curious why the left circle in the svg/zoom test case now looks
better
> on the bottom but not the right edge.
This is a side effect of sub-pixel layout, eg.:
<div style="margin-left: 0.25px">
<img style="border-left: 1.25px solid black" src=image.jpg>
This will render a 1px (rounded down from 1.25px) wide border at 0px (rounded
down from 0.25px), while the image will be painted at 2px (rounded up from
1.5px). This will leave a one pixel gap at 1px.
The same effect can be seen without sub-pixel borders, although it's a little
less surprising there:
<div style="margin-left: 0.25px">
<img style="border-left: 1px solid black; padding-left: 0.25px" src=image.jpg>
</div>
https://codereview.chromium.org/2689993003/diff/1/third_party/WebKit/Source/c...
> third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp:484:
> positioningArea.setSize(rootBox->size());
> Do we have a test case that hits this code path? This is the only place I see
> where the positioningArea may be very different from the paint rect that we
> otherwise would use.
fast/backgrounds/body-generated-image-propagated-to-root.html exercises this
path, but there should be a few more test cases as well, that was just the first
one that I found.
Stephen Chennney
Thanks for the info. lgtm.
3 years, 9 months ago
(2017-02-28 15:51:42 UTC)
#13
Thanks for the info. lgtm.
Karl Øygard
The CQ bit was checked by karlo@opera.com
3 years, 9 months ago
(2017-03-06 13:53:07 UTC)
#14
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
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/379534)
3 years, 9 months ago
(2017-03-07 14:34:13 UTC)
#21
CQ is committing da patch. Bot data: {"patchset_id": 40001, "attempt_start_ts": 1488981241058390, "parent_rev": "e78f411844b3986f5a33f0eeba661ab826c8cf2d", "commit_rev": "0957d8cc17fb3e90d3f0203a0e3cc1b32bfc8528"}
3 years, 9 months ago
(2017-03-08 15:13:33 UTC)
#25
CQ is committing da patch.
Bot data: {"patchset_id": 40001, "attempt_start_ts": 1488981241058390,
"parent_rev": "e78f411844b3986f5a33f0eeba661ab826c8cf2d", "commit_rev":
"0957d8cc17fb3e90d3f0203a0e3cc1b32bfc8528"}
commit-bot: I haz the power
Description was changed from ========== Account for borders and padding when calculating background tile size. ...
3 years, 9 months ago
(2017-03-08 15:14:09 UTC)
#26
Message was sent while issue was closed.
Description was changed from
==========
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
==========
to
==========
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/+/0957d8cc17fb3e90d3f0203a0e3c...
==========
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/0957d8cc17fb3e90d3f0203a0e3cc1b32bfc8528
3 years, 9 months ago
(2017-03-08 15:14:10 UTC)
#27
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
Base URL:
Comments: 1