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

Issue 877553002: Fix ellipse hit testing in the non-circle case (Closed)

Created:
5 years, 11 months ago by dtrebbien
Modified:
5 years, 10 months ago
CC:
blink-reviews, blink-reviews-rendering, zoltan1, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, kouhei+svg_chromium.org, Dominik Röttsches, ed+blinkwatch_opera.com, krit, f(malita), gyuyoung.kim_webkit.org, jchaffraix+rendering, Stephen Chennney, rwlbuis, pdr+svgwatchlist_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fix ellipse hit testing in the non-circle case RenderSVGEllipse::shapeDependentStrokeContains() was incorrectly considering the outer and inner offset curves of the ellipse's stroke (the outer and inner boundary curves) to be the ellipses formed by increasing/decreasing the radii by half the stroke width; however, the offset curves are only ellipses when the ellipse is a circle. This would cause problems where shapeDependentStrokeContains() would incorrectly return false for points that actually are in the stroke of the ellipse. Except in the case of continuous-stroke circles, we now always fall back to the graphics library for the stroke hit test result. BUG=393143 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189109

Patch Set 1 #

Patch Set 2 : Simplify #

Total comments: 1

Patch Set 3 : Lazily create the path #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -24 lines) Patch
A LayoutTests/svg/hittest/ellipse-hittest.html View 1 chunk +113 lines, -0 lines 0 comments Download
A LayoutTests/svg/hittest/ellipse-hittest-expected.txt View 1 chunk +28 lines, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGEllipse.cpp View 1 2 4 chunks +17 lines, -23 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGShape.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGShape.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (2 generated)
dtrebbien
5 years, 11 months ago (2015-01-25 17:03:58 UTC) #2
dtrebbien
On 2015/01/25 17:03:58, dtrebbien wrote: I had a note in the CL description about PerformanceTests/SVG/SvgHitTesting.html, ...
5 years, 11 months ago (2015-01-25 17:09:06 UTC) #3
pdr.
On 2015/01/25 at 17:09:06, dtrebbien wrote: > On 2015/01/25 17:03:58, dtrebbien wrote: > > I ...
5 years, 11 months ago (2015-01-25 20:54:12 UTC) #4
dtrebbien
On 2015/01/25 20:54:12, pdr wrote: > On 2015/01/25 at 17:09:06, dtrebbien wrote: > > On ...
5 years, 11 months ago (2015-01-25 23:58:55 UTC) #5
dtrebbien
On 2015/01/25 23:58:55, dtrebbien wrote: > On 2015/01/25 20:54:12, pdr wrote: > > On 2015/01/25 ...
5 years, 11 months ago (2015-01-26 01:00:51 UTC) #6
dtrebbien
On 2015/01/26 01:00:51, dtrebbien wrote: > On 2015/01/25 23:58:55, dtrebbien wrote: > > On 2015/01/25 ...
5 years, 11 months ago (2015-01-26 12:16:31 UTC) #7
fs
https://codereview.chromium.org/877553002/diff/20001/Source/core/rendering/svg/RenderSVGEllipse.cpp File Source/core/rendering/svg/RenderSVGEllipse.cpp (left): https://codereview.chromium.org/877553002/diff/20001/Source/core/rendering/svg/RenderSVGEllipse.cpp#oldcode73 Source/core/rendering/svg/RenderSVGEllipse.cpp:73: m_fillBoundingBox = FloatRect(m_center.x() - m_radii.width(), m_center.y() - m_radii.height(), 2 ...
5 years, 11 months ago (2015-01-26 12:25:21 UTC) #8
dtrebbien
On 2015/01/26 12:25:21, fs wrote: > https://codereview.chromium.org/877553002/diff/20001/Source/core/rendering/svg/RenderSVGEllipse.cpp > File Source/core/rendering/svg/RenderSVGEllipse.cpp (left): > > https://codereview.chromium.org/877553002/diff/20001/Source/core/rendering/svg/RenderSVGEllipse.cpp#oldcode73 > ...
5 years, 11 months ago (2015-01-26 12:55:12 UTC) #9
fs
On 2015/01/26 12:55:12, dtrebbien wrote: > On 2015/01/26 12:25:21, fs wrote: > > > https://codereview.chromium.org/877553002/diff/20001/Source/core/rendering/svg/RenderSVGEllipse.cpp ...
5 years, 11 months ago (2015-01-26 13:17:35 UTC) #10
dtrebbien
On 2015/01/26 13:17:35, fs wrote: > On 2015/01/26 12:55:12, dtrebbien wrote: > > On 2015/01/26 ...
5 years, 11 months ago (2015-01-27 16:35:04 UTC) #11
fs
On 2015/01/27 16:35:04, dtrebbien wrote: > On 2015/01/26 13:17:35, fs wrote: > > On 2015/01/26 ...
5 years, 11 months ago (2015-01-27 16:39:58 UTC) #12
dtrebbien
On 2015/01/27 16:39:58, fs wrote: > On 2015/01/27 16:35:04, dtrebbien wrote: > > On 2015/01/26 ...
5 years, 11 months ago (2015-01-27 16:43:19 UTC) #13
fs
On 2015/01/27 16:43:19, dtrebbien wrote: > On 2015/01/27 16:39:58, fs wrote: > > On 2015/01/27 ...
5 years, 11 months ago (2015-01-27 17:09:18 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/877553002/40001
5 years, 10 months ago (2015-01-28 12:07:20 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=189109
5 years, 10 months ago (2015-01-28 13:20:41 UTC) #17
dtrebbien
On 2015/01/28 13:20:41, I haz the power (commit-bot) wrote: > Committed patchset #3 (id:40001) as ...
5 years, 10 months ago (2015-01-29 19:42:14 UTC) #18
pdr.
5 years, 10 months ago (2015-01-29 19:50:30 UTC) #19
Message was sent while issue was closed.
On 2015/01/29 at 19:42:14, dtrebbien wrote:
> On 2015/01/28 13:20:41, I haz the power (commit-bot) wrote:
> > Committed patchset #3 (id:40001) as
> > https://src.chromium.org/viewvc/blink?view=rev&revision=189109
> 
> Hi fs and pdr,
> 
> A new issue has been opened for the resulting performance decrease: 
http://crbug.com/453164
> 
> How should Issue 453164 be handled?

I responded. Don't be scared of the perf sheriffs, they are just here to help us
:)

Powered by Google App Engine
This is Rietveld 408576698