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

Issue 886323005: Pass InterpolationQuality into DragImage to respect image-rendering:pixelated. (Closed)

Created:
5 years, 10 months ago by jackhou1
Modified:
5 years, 10 months ago
Reviewers:
Justin Novosad
CC:
blink-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Pass InterpolationQuality into DragImage to respect image-rendering:pixelated. Previously DragImage would always use RESIZE_LANCZOS3. It now uses RESIZE_BOX if the interpolation quality is InterpolationNone. Layout test depends on this content side CL: https://codereview.chromium.org/904833004/ BUG=451759 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190023

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address comments. Add tests. #

Total comments: 1

Patch Set 3 : Update test for changes in test_runner CL. #

Total comments: 1

Patch Set 4 : Sync and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -8 lines) Patch
A LayoutTests/fast/images/drag-image.html View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
A LayoutTests/fast/images/drag-image-expected.png View 1 2 Binary file 0 comments Download
A + LayoutTests/fast/images/drag-image-expected.txt View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/page/DragController.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M Source/platform/DragImage.h View 1 3 chunks +4 lines, -2 lines 0 comments Download
M Source/platform/DragImage.cpp View 1 2 3 4 chunks +7 lines, -6 lines 0 comments Download
M Source/platform/DragImageTest.cpp View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
jackhou1
junov, could you take a look? What's the best way to test this?
5 years, 10 months ago (2015-02-05 00:31:00 UTC) #2
dcheng
On 2015/02/05 at 00:31:00, jackhou wrote: > junov, could you take a look? > > ...
5 years, 10 months ago (2015-02-05 00:34:06 UTC) #3
jackhou1
On 2015/02/05 00:34:06, dcheng wrote: > On 2015/02/05 at 00:31:00, jackhou wrote: > > junov, ...
5 years, 10 months ago (2015-02-05 00:42:02 UTC) #4
Justin Novosad
https://codereview.chromium.org/886323005/diff/1/Source/core/page/DragController.cpp File Source/core/page/DragController.cpp (right): https://codereview.chromium.org/886323005/diff/1/Source/core/page/DragController.cpp#newcode829 Source/core/page/DragController.cpp:829: DragImage::ResizeMethod resizeMethod = element->computedStyle()->imageRendering() == ImageRenderingPixelated ? DragImage::ResizeMethod::RESIZE_BOX : ...
5 years, 10 months ago (2015-02-05 05:06:24 UTC) #5
Justin Novosad
On 2015/02/05 00:42:02, jackhou1 wrote: > On 2015/02/05 00:34:06, dcheng wrote: > > On 2015/02/05 ...
5 years, 10 months ago (2015-02-05 05:17:59 UTC) #6
jackhou1
https://codereview.chromium.org/886323005/diff/1/Source/platform/DragImage.h File Source/platform/DragImage.h (right): https://codereview.chromium.org/886323005/diff/1/Source/platform/DragImage.h#newcode32 Source/platform/DragImage.h:32: #include "skia/ext/image_operations.h" On 2015/02/05 05:06:24, junov wrote: > > ...
5 years, 10 months ago (2015-02-10 01:53:57 UTC) #7
Justin Novosad
lgtm
5 years, 10 months ago (2015-02-10 18:29:18 UTC) #8
Justin Novosad
Patch set 3 lgtm, but rember to wait for the testrunner patch to land first
5 years, 10 months ago (2015-02-11 04:30:30 UTC) #10
Justin Novosad
https://codereview.chromium.org/886323005/diff/40001/LayoutTests/fast/images/drag-image.html File LayoutTests/fast/images/drag-image.html (right): https://codereview.chromium.org/886323005/diff/40001/LayoutTests/fast/images/drag-image.html#newcode15 LayoutTests/fast/images/drag-image.html:15: testRunner.dumpDragImage(); Awesome!
5 years, 10 months ago (2015-02-11 04:30:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/886323005/60001
5 years, 10 months ago (2015-02-12 03:43:57 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-02-12 05:02:07 UTC) #15
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190023

Powered by Google App Engine
This is Rietveld 408576698