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

Issue 336693005: Add image-rendering: pixelated. (Closed)

Created:
6 years, 6 months ago by jackhou1
Modified:
6 years, 6 months ago
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, aandrey+blink_chromium.org, rune+blink, caseq+blink_chromium.org, malch+blink_chromium.org, blink-reviews-css, yurys+blink_chromium.org, dglazkov+blink, jchaffraix+rendering, devtools-reviews_chromium.org, rwlbuis, loislo+blink_chromium.org, zoltan1, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, darktears, blink-reviews-rendering, leviw+renderwatch, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, ed+blinkwatch_opera.com, sergeyv+blink_chromium.org
Project:
blink
Visibility:
Public.

Description

Add image-rendering: pixelated. This adds a new value "pixelated" to the "image-rendering" property. This value sets the interpolation used when scaling images to InterpolationNone. Intent to implement: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/Q8N6FoeoPXI BUG=260739, 106662 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176839

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments. Update test. #

Total comments: 14

Patch Set 3 : Address comments #

Patch Set 4 : Oops, missed one comment. Also change all indentation in html. #

Patch Set 5 : Add svg image test #

Total comments: 1

Patch Set 6 : Update svg test #

Total comments: 7

Patch Set 7 : Address comments. #

Patch Set 8 : Leave OptimizeContrast behavior unchanged for this CL. #

Patch Set 9 : Remove blank line. #

Patch Set 10 : Upload with --no-find-copies. #

Patch Set 11 : Last upload missed pixelated-image-expecte.png, trying again. #

Patch Set 12 : Ignore render tree since they differ by platform and are not important for these tests. #

Patch Set 13 : Don't add 'pixelated' to devtools. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -5 lines) Patch
A LayoutTests/css3/images/pixelated-canvas.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +49 lines, -0 lines 0 comments Download
A LayoutTests/css3/images/pixelated-canvas-expected.png View 1 2 3 4 5 6 7 8 9 Binary file 0 comments Download
A LayoutTests/css3/images/pixelated-canvas-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/css3/images/pixelated-image.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +17 lines, -0 lines 0 comments Download
A LayoutTests/css3/images/pixelated-image-expected.png View 1 2 3 4 5 6 7 8 9 Binary file 0 comments Download
A LayoutTests/css3/images/pixelated-image-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/css3/images/pixelated-svg-image.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/css3/images/pixelated-svg-image-expected.png View 1 2 3 4 5 6 7 8 9 Binary file 0 comments Download
A LayoutTests/css3/images/pixelated-svg-image-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/CSSPrimitiveValueMappings.h View 2 chunks +5 lines, -0 lines 0 comments Download
M Source/core/css/CSSValueKeywords.in View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/parser/BisonCSSParser-in.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -1 line 0 comments Download
M Source/core/rendering/ImageQualityController.cpp View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderHTMLCanvas.cpp View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/rendering/style/RenderStyleConstants.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/style/StyleRareInheritedData.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
jackhou
Hey Mike, I'm not really sure what boxes a blink CL needs to tick before ...
6 years, 6 months ago (2014-06-13 03:12:58 UTC) #1
pdr.
Nice patch! Simple nits below: Could you add a little more to your change description ...
6 years, 6 months ago (2014-06-13 03:21:14 UTC) #2
jackhou
Wow that was a quick response, thanks. https://codereview.chromium.org/336693005/diff/1/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/336693005/diff/1/Source/core/css/parser/CSSPropertyParser.cpp#newcode8158 Source/core/css/parser/CSSPropertyParser.cpp:8158: // Otherwise ...
6 years, 6 months ago (2014-06-13 03:33:19 UTC) #3
pdr.
Sorry, I missed your test files before. Another round of nits below. With these fixed, ...
6 years, 6 months ago (2014-06-13 03:59:23 UTC) #4
jackhou
https://codereview.chromium.org/336693005/diff/10001/LayoutTests/css3/images/pixelated-canvas.html File LayoutTests/css3/images/pixelated-canvas.html (right): https://codereview.chromium.org/336693005/diff/10001/LayoutTests/css3/images/pixelated-canvas.html#newcode5 LayoutTests/css3/images/pixelated-canvas.html:5: position: fixed; On 2014/06/13 03:59:23, pdr wrote: > There ...
6 years, 6 months ago (2014-06-13 04:27:32 UTC) #5
Erik Dahlström (inactive)
Could you please add a test like LayoutTests/css3/images/pixelated-image.html that uses svg:image: <svg><image image-rendering="pixelated" xlink:href="..."/></svg>
6 years, 6 months ago (2014-06-13 08:13:26 UTC) #6
jackhou
On 2014/06/13 08:13:26, Erik Dahlström wrote: > Could you please add a test like LayoutTests/css3/images/pixelated-image.html ...
6 years, 6 months ago (2014-06-13 08:44:16 UTC) #7
Erik Dahlström (inactive)
https://codereview.chromium.org/336693005/diff/70001/LayoutTests/css3/images/pixelated-svg-image.html File LayoutTests/css3/images/pixelated-svg-image.html (right): https://codereview.chromium.org/336693005/diff/70001/LayoutTests/css3/images/pixelated-svg-image.html#newcode3 LayoutTests/css3/images/pixelated-svg-image.html:3: svg { I really meant: image { image-rendering: pixelated; ...
6 years, 6 months ago (2014-06-13 10:29:16 UTC) #8
Mike Lawther (Google)
On 2014/06/13 03:59:23, pdr wrote: > Sorry, I missed your test files before. Another round ...
6 years, 6 months ago (2014-06-14 02:27:50 UTC) #9
Mike Lawther (Google)
lgtm with nits. Sorry for the delay. Yay for this patch being sooooo much simpler ...
6 years, 6 months ago (2014-06-20 04:26:50 UTC) #10
jackhou
> This patch implements the correct behaviour for scaling up, but not yet for > ...
6 years, 6 months ago (2014-06-20 07:14:44 UTC) #11
jackhou
pdr, PTAL for OWNERS loislo, please review for OWNERS: Source/devtools/front_end/*
6 years, 6 months ago (2014-06-20 07:16:20 UTC) #12
jackhou
https://codereview.chromium.org/336693005/diff/90001/Source/core/rendering/RenderHTMLCanvas.cpp File Source/core/rendering/RenderHTMLCanvas.cpp (right): https://codereview.chromium.org/336693005/diff/90001/Source/core/rendering/RenderHTMLCanvas.cpp#newcode73 Source/core/rendering/RenderHTMLCanvas.cpp:73: interpolationQuality = InterpolationLow; On 2014/06/20 07:14:44, jackhou wrote: > ...
6 years, 6 months ago (2014-06-20 08:35:43 UTC) #13
pdr.
Woohoo, nice change! LGTM
6 years, 6 months ago (2014-06-20 16:54:01 UTC) #14
loislo
6 years, 6 months ago (2014-06-24 06:31:25 UTC) #15
vsevik
I don't think we should add support for this property to DevTools before it is ...
6 years, 6 months ago (2014-06-24 06:44:05 UTC) #16
jackhou
On 2014/06/24 06:44:05, vsevik wrote: > I don't think we should add support for this ...
6 years, 6 months ago (2014-06-24 06:53:17 UTC) #17
jackhou1
The CQ bit was checked by jackhou@chromium.org
6 years, 6 months ago (2014-06-24 06:57:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/336693005/220001
6 years, 6 months ago (2014-06-24 06:58:19 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 6 months ago (2014-06-24 08:00:52 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-24 08:31:28 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/21190)
6 years, 6 months ago (2014-06-24 08:31:29 UTC) #22
jackhou1
The CQ bit was checked by jackhou@chromium.org
6 years, 6 months ago (2014-06-24 14:03:01 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/336693005/220001
6 years, 6 months ago (2014-06-24 14:03:40 UTC) #24
commit-bot: I haz the power
6 years, 6 months ago (2014-06-24 14:05:26 UTC) #25
Message was sent while issue was closed.
Change committed as 176839

Powered by Google App Engine
This is Rietveld 408576698