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

Issue 1886063002: Make canvas filters use the font size in effect when the filter is set (Closed)

Created:
4 years, 8 months ago by ajuma
Modified:
4 years, 8 months ago
Reviewers:
Justin Novosad
CC:
chromium-reviews, ajuma+watch-canvas_chromium.org, dshwang, Justin Novosad, haraken, Rik, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make canvas filters use the font size in effect when the filter is set This snapshots the current font when a new filter is set, and uses the snapshotted font whenever the filter is rebuilt, rather than using the current font. The filter is no longer rebuilt for changes to the current font. This matches Firefox's behavior. BUG=601877 Committed: https://crrev.com/222eb4b80b8531ca616f78207033427d359c2879 Cr-Commit-Position: refs/heads/master@{#388099}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebased #

Patch Set 3 : Address review comment #

Patch Set 4 : Rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -17 lines) Patch
M third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-liveness-expected.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-modified.html View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-modified-expected.html View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-units-em-liveness.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/canvas/canvas-filter-units-em-liveness-expected.html View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.cpp View 1 1 chunk +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp View 1 2 3 5 chunks +5 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/csspaint/PaintRenderingContext2D.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
ajuma
4 years, 8 months ago (2016-04-14 14:25:06 UTC) #3
Justin Novosad
lgtm with nit. https://codereview.chromium.org/1886063002/diff/1/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp File third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/1886063002/diff/1/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp#newcode135 third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp:135: void OffscreenCanvasRenderingContext2D::snapshotStateForFilter() Nit: could put empty ...
4 years, 8 months ago (2016-04-18 18:03:22 UTC) #4
ajuma
https://codereview.chromium.org/1886063002/diff/1/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp File third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/1886063002/diff/1/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp#newcode135 third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp:135: void OffscreenCanvasRenderingContext2D::snapshotStateForFilter() On 2016/04/18 18:03:22, Justin Novosad wrote: > ...
4 years, 8 months ago (2016-04-18 21:32:44 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1886063002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1886063002/40001
4 years, 8 months ago (2016-04-18 21:33:26 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/20949) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-18 21:36:12 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1886063002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1886063002/60001
4 years, 8 months ago (2016-04-18 21:54:50 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-19 00:51:46 UTC) #15
commit-bot: I haz the power
4 years, 8 months ago (2016-04-19 00:52:50 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/222eb4b80b8531ca616f78207033427d359c2879
Cr-Commit-Position: refs/heads/master@{#388099}

Powered by Google App Engine
This is Rietveld 408576698