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

Issue 352793006: context.addHitRegion() is not working when using transform operation. (Closed)

Created:
6 years, 5 months ago by zino
Modified:
6 years, 5 months ago
Reviewers:
Justin Novosad
CC:
blink-reviews, jamesr, krit, blink-reviews-html_chromium.org, jbroman, danakj, dglazkov+blink, Rik, Stephen Chennney, aandrey+blink_chromium.org, pdr., rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

context.addHitRegion() is not working when using transform operation. Should be able to add hit region when using transform operation. context.isClipMode uses SkClipStack::getSaveCount() internally. But the count is incremented by transform operation as well as clip operation. So, remove the method and then add a new method which is determined by only clip operation. BUG=389862 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177483

Patch Set 1 #

Patch Set 2 : fixed #

Total comments: 2

Patch Set 3 : state stack #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -10 lines) Patch
A LayoutTests/fast/canvas/canvas-hit-regions-transform-test.html View 1 chunk +194 lines, -0 lines 0 comments Download
A LayoutTests/fast/canvas/canvas-hit-regions-transform-test-expected.txt View 1 chunk +59 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/html/canvas/CanvasRenderingContext2D.cpp View 1 2 5 chunks +5 lines, -1 line 0 comments Download
M Source/platform/graphics/GraphicsContext.h View 1 chunk +0 lines, -1 line 0 comments Download
M Source/platform/graphics/GraphicsContext.cpp View 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
zino
Please take a look.
6 years, 5 months ago (2014-06-28 15:17:20 UTC) #1
Justin Novosad
https://codereview.chromium.org/352793006/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): https://codereview.chromium.org/352793006/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode378 Source/core/html/canvas/CanvasRenderingContext2D.cpp:378: --m_clipCount; I don't think this is correct. There could ...
6 years, 5 months ago (2014-07-02 15:12:32 UTC) #2
zino
On 2014/07/02 15:12:32, junov wrote: > https://codereview.chromium.org/352793006/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp > File Source/core/html/canvas/CanvasRenderingContext2D.cpp (right): > > https://codereview.chromium.org/352793006/diff/20001/Source/core/html/canvas/CanvasRenderingContext2D.cpp#newcode378 > ...
6 years, 5 months ago (2014-07-03 12:01:29 UTC) #3
Justin Novosad
Very nice test. lgtm
6 years, 5 months ago (2014-07-03 13:37:48 UTC) #4
zino
The CQ bit was checked by jinho.bang@samsung.com
6 years, 5 months ago (2014-07-03 14:48:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jinho.bang@samsung.com/352793006/40001
6 years, 5 months ago (2014-07-03 14:49:03 UTC) #6
commit-bot: I haz the power
6 years, 5 months ago (2014-07-03 15:52:10 UTC) #7
Message was sent while issue was closed.
Change committed as 177483

Powered by Google App Engine
This is Rietveld 408576698