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

Issue 2104103003: Fix zoom in CSS paint worklets (Closed)

Created:
4 years, 5 months ago by Gleb Lanbin
Modified:
4 years, 5 months ago
CC:
chromium-reviews, blink-reviews-style_chromium.org, blink-reviews-css, haraken, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis, chrishtr
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix zoom in CSS paint worklets. This patch does next things: 1) Propagate the zoom factor to CSSPaintDefinition, so we can calculate CSS size 2) Report correct CSS size in 'geom' parameter of CSS paint worklet. 3) Let PaintGeneratedImage report its intrinsic size, instead of improperly conforming to the size of its container. BUG=578252 TEST=third_party/WebKit/LayoutTests/csspaint/paint2d-zoom.html Committed: https://crrev.com/6b2b9c70636afcc1127e6b199d482a5ffee3fd84 Cr-Commit-Position: refs/heads/master@{#404891}

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix comments #

Total comments: 8

Patch Set 3 : fix comments #

Patch Set 4 : use a pixel test for paint2d-zoom #

Patch Set 5 : mark paint2d-zoom.html as NeedsRebaseline #

Patch Set 6 : rebase #

Patch Set 7 : 2nd rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -34 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/csspaint/paint2d-zoom.html View 1 2 3 4 5 2 chunks +9 lines, -11 lines 0 comments Download
A third_party/WebKit/LayoutTests/csspaint/paint2d-zoom-expected.txt View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageGeneratorValue.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSPaintValue.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/CSSPaintValue.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleGeneratedImage.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp View 1 2 3 4 5 4 chunks +19 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/csspaint/CSSPaintImageGeneratorImpl.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.cpp View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2DTest.cpp View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 46 (22 generated)
Gleb Lanbin
4 years, 5 months ago (2016-06-29 23:44:05 UTC) #4
ikilpatrick
+junov & +chrishtr to sanity check (is this the best way to achieve this?) Bug ...
4 years, 5 months ago (2016-06-30 17:24:54 UTC) #6
ikilpatrick
On 2016/06/30 17:24:54, ikilpatrick wrote: > +junov & +chrishtr to sanity check (is this the ...
4 years, 5 months ago (2016-06-30 17:25:35 UTC) #7
Gleb Lanbin
https://codereview.chromium.org/2104103003/diff/20001/third_party/WebKit/LayoutTests/csspaint/paint2d-zoom-expected.txt File third_party/WebKit/LayoutTests/csspaint/paint2d-zoom-expected.txt (right): https://codereview.chromium.org/2104103003/diff/20001/third_party/WebKit/LayoutTests/csspaint/paint2d-zoom-expected.txt#newcode1 third_party/WebKit/LayoutTests/csspaint/paint2d-zoom-expected.txt:1: CONSOLE MESSAGE: line 30: The worklet should log: 'width: ...
4 years, 5 months ago (2016-06-30 23:57:20 UTC) #10
Justin Novosad
https://codereview.chromium.org/2104103003/diff/40001/third_party/WebKit/LayoutTests/csspaint/paint2d-zoom.html File third_party/WebKit/LayoutTests/csspaint/paint2d-zoom.html (right): https://codereview.chromium.org/2104103003/diff/40001/third_party/WebKit/LayoutTests/csspaint/paint2d-zoom.html#newcode22 third_party/WebKit/LayoutTests/csspaint/paint2d-zoom.html:22: ctx.strokeRect(20, 20, 60, 60); Using a pixel-aligned rect prevents ...
4 years, 5 months ago (2016-07-04 15:45:59 UTC) #11
Gleb Lanbin
https://codereview.chromium.org/2104103003/diff/40001/third_party/WebKit/LayoutTests/csspaint/paint2d-zoom.html File third_party/WebKit/LayoutTests/csspaint/paint2d-zoom.html (right): https://codereview.chromium.org/2104103003/diff/40001/third_party/WebKit/LayoutTests/csspaint/paint2d-zoom.html#newcode22 third_party/WebKit/LayoutTests/csspaint/paint2d-zoom.html:22: ctx.strokeRect(20, 20, 60, 60); On 2016/07/04 15:45:58, Justin Novosad ...
4 years, 5 months ago (2016-07-06 20:36:18 UTC) #12
chrishtr
On 2016/06/30 at 17:24:54, ikilpatrick wrote: > +junov & +chrishtr to sanity check (is this ...
4 years, 5 months ago (2016-07-06 21:04:01 UTC) #13
Justin Novosad
On 2016/07/06 20:36:18, glebl wrote: > https://codereview.chromium.org/2104103003/diff/40001/third_party/WebKit/LayoutTests/csspaint/paint2d-zoom.html > File third_party/WebKit/LayoutTests/csspaint/paint2d-zoom.html (right): > > https://codereview.chromium.org/2104103003/diff/40001/third_party/WebKit/LayoutTests/csspaint/paint2d-zoom.html#newcode22 > ...
4 years, 5 months ago (2016-07-06 21:07:12 UTC) #14
Gleb Lanbin
On 2016/07/06 21:07:12, Justin Novosad wrote: > On 2016/07/06 20:36:18, glebl wrote: > > > ...
4 years, 5 months ago (2016-07-06 21:49:00 UTC) #16
Gleb Lanbin
Justin, please let me know if you have any other comments. thanks.
4 years, 5 months ago (2016-07-08 21:57:27 UTC) #18
Justin Novosad
lgtm You will probably need NeedsRebaseline for paint2d-zoom.html in the TestExpectations file since the pixel ...
4 years, 5 months ago (2016-07-11 18:07:41 UTC) #19
Gleb Lanbin
On 2016/07/11 18:07:41, Justin Novosad wrote: > lgtm > > You will probably need NeedsRebaseline ...
4 years, 5 months ago (2016-07-12 00:14:34 UTC) #20
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/2104103003/120001
4 years, 5 months ago (2016-07-12 00:15:22 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/33910) ios-device-gn on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 5 months ago (2016-07-12 00:18:58 UTC) #25
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/2104103003/140001
4 years, 5 months ago (2016-07-12 00:38:46 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/253602)
4 years, 5 months ago (2016-07-12 01:33:28 UTC) #30
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/2104103003/160001
4 years, 5 months ago (2016-07-12 06:10:54 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/191007)
4 years, 5 months ago (2016-07-12 10:14:24 UTC) #35
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/2104103003/160001
4 years, 5 months ago (2016-07-12 16:05:29 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/191556)
4 years, 5 months ago (2016-07-12 20:16:11 UTC) #39
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/2104103003/160001
4 years, 5 months ago (2016-07-12 20:24:23 UTC) #41
commit-bot: I haz the power
Committed patchset #7 (id:160001)
4 years, 5 months ago (2016-07-13 02:10:06 UTC) #43
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 02:11:20 UTC) #44
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 02:13:03 UTC) #46
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6b2b9c70636afcc1127e6b199d482a5ffee3fd84
Cr-Commit-Position: refs/heads/master@{#404891}

Powered by Google App Engine
This is Rietveld 408576698