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

Issue 2167323002: Fix the positioning of backgrounds positioned right and bottom (Closed)

Created:
4 years, 5 months ago by Stephen Chennney
Modified:
4 years, 5 months ago
Reviewers:
pdr., f(malita)
CC:
chromium-reviews, blink-reviews, dshwang, slimming-paint-reviews_chromium.org, blink-reviews-paint_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the positioning of backgrounds positioned right and bottom A recent change unnecessarily pixel snapped the destination rect for background image painting before computing values determined by that rectangle. This caused situations where subsequent sub-pixel snapping pushes right and bottom positioned 1-pixel images outside the dest rect when it is intersected with the paint rect. The fix is to revert the line that early-snaps the dest rect. New test added to cover this case. One other test that had got slightly worse with the previous change gets better again with this change. R=pdr@chromium.org BUG=629075 Committed: https://crrev.com/098ef3d2deef53dcd893961a87a0a96cd9bf276b Cr-Commit-Position: refs/heads/master@{#406946}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -4 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/css3/background/background-right-bottom-subpixel-position.html View 1 chunk +37 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/css3/background/background-right-bottom-subpixel-position-expected.html View 1 chunk +37 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp View 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
Stephen Chennney
Fix for an unnecessary change from a prior patch. Not sure how that change made ...
4 years, 5 months ago (2016-07-21 19:29:45 UTC) #4
f(malita)
On 2016/07/21 19:29:45, Stephen Chennney wrote: > Fix for an unnecessary change from a prior ...
4 years, 5 months ago (2016-07-21 19:48:18 UTC) #7
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/2167323002/1
4 years, 5 months ago (2016-07-21 21:03:27 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-21 21:21:38 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 21:23:49 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/098ef3d2deef53dcd893961a87a0a96cd9bf276b
Cr-Commit-Position: refs/heads/master@{#406946}

Powered by Google App Engine
This is Rietveld 408576698