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

Issue 2168133002: Compute exact bounds for SVGPathElement::getBBox() (Closed)

Created:
4 years, 5 months ago by f(malita)
Modified:
4 years, 5 months ago
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Compute exact bounds for SVGPathElement::getBBox() The current implementation relies on SkPath::getBounds(), which computes a conservative result (includes control points). Use SkPathOps::TightBounds() instead, for an exact answer. BUG=230599 R=fs@opera.com,pdr@chromium.org,schenney@chromium.org,caryclark@google.com Committed: https://crrev.com/8f4c8e6d2f1260d68f387b37f078457e4153bbb4 Cr-Commit-Position: refs/heads/master@{#407268}

Patch Set 1 #

Patch Set 2 : minimize perf impact #

Patch Set 3 : empty subpath workaround #

Total comments: 2

Patch Set 4 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -7 lines) Patch
M third_party/WebKit/LayoutTests/svg/custom/getBBox-path-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathElement.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathElement.cpp View 1 1 chunk +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Path.h View 1 1 chunk +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Path.cpp View 1 2 3 1 chunk +21 lines, -4 lines 0 comments Download

Messages

Total messages: 30 (20 generated)
f(malita)
Ideally we should use exact bounds for everything (layout, objectBoundingBox(), strokeBoundingBox(), etc), but it becomes ...
4 years, 5 months ago (2016-07-21 18:52:05 UTC) #12
fs
On 2016/07/21 at 18:52:05, fmalita wrote: > Ideally we should use exact bounds for everything ...
4 years, 5 months ago (2016-07-21 19:21:41 UTC) #13
pdr.
Awesome! What do you mean by "This fixes the DOM API issue, but doesn't help ...
4 years, 5 months ago (2016-07-21 22:57:31 UTC) #16
f(malita)
On 2016/07/21 22:57:31, pdr. wrote: > What do you mean by "This fixes the DOM ...
4 years, 5 months ago (2016-07-21 23:19:57 UTC) #17
pdr.
On 2016/07/21 at 23:19:57, fmalita wrote: > On 2016/07/21 22:57:31, pdr. wrote: > > What ...
4 years, 5 months ago (2016-07-22 00:22:43 UTC) #18
f(malita)
@fs are you on board with landing as suggested by pdr? https://codereview.chromium.org/2168133002/diff/40001/third_party/WebKit/Source/platform/graphics/Path.cpp File third_party/WebKit/Source/platform/graphics/Path.cpp (right): ...
4 years, 5 months ago (2016-07-22 18:40:01 UTC) #21
fs
On 2016/07/22 at 18:40:01, fmalita wrote: > @fs are you on board with landing as ...
4 years, 5 months ago (2016-07-22 18:42:20 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2168133002/60001
4 years, 5 months ago (2016-07-22 18:44:08 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-22 21:35:11 UTC) #28
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 21:38:25 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8f4c8e6d2f1260d68f387b37f078457e4153bbb4
Cr-Commit-Position: refs/heads/master@{#407268}

Powered by Google App Engine
This is Rietveld 408576698