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

Issue 355813004: [SVG2] Elements that don't render shouldn't contribute to ancestor bboxes. (Closed)

Created:
6 years, 6 months ago by Erik Dahlström (inactive)
Modified:
6 years, 6 months ago
Reviewers:
pdr., f(malita), fs
CC:
blink-reviews, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, kouhei+svg_chromium.org, fs, ed+blinkwatch_opera.com, krit, f(malita), gyuyoung.kim_webkit.org, jchaffraix+rendering, pdr., rwlbuis, Stephen Chennney, rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

[SVG2] Elements that don't render shouldn't contribute to ancestor bboxes. Based on Nikos Andronikos' patch in https://bugs.webkit.org/show_bug.cgi?id=134184. SVG elements that have rendering disabled should not contribute to any ancestor elements bounding box. Examples of elements with rendering disabled: - basic shape with width <= 0 or height <= 0 - path with no path data (d attribute missing or empty) - polyline or polygon element with no point data (points attribute missing or empty) BUG=388676 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176972

Patch Set 1 #

Total comments: 7

Patch Set 2 : review fixes + testharness test #

Total comments: 1

Patch Set 3 : fix nit #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -7 lines) Patch
M LayoutTests/TestExpectations View 1 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/svg/getbbox.html View 1 1 chunk +95 lines, -0 lines 0 comments Download
A + LayoutTests/svg/custom/getBBox-perpendicular-polygon.svg View 2 chunks +3 lines, -4 lines 0 comments Download
A + LayoutTests/svg/custom/getBBox-perpendicular-polygon-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/svg/custom/getBBox-perpendicular-polyline.svg View 2 chunks +3 lines, -4 lines 0 comments Download
A + LayoutTests/svg/custom/getBBox-perpendicular-polyline-expected.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGShape.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/rendering/svg/SVGRenderSupport.cpp View 1 1 chunk +4 lines, -0 lines 1 comment Download

Messages

Total messages: 14 (0 generated)
Erik Dahlström (inactive)
6 years, 6 months ago (2014-06-25 12:23:09 UTC) #1
fs
https://codereview.chromium.org/355813004/diff/1/LayoutTests/svg/custom/getBBox-polygon-nodata.html File LayoutTests/svg/custom/getBBox-polygon-nodata.html (right): https://codereview.chromium.org/355813004/diff/1/LayoutTests/svg/custom/getBBox-polygon-nodata.html#newcode4 LayoutTests/svg/custom/getBBox-polygon-nodata.html:4: function check_rect_bbox(bbox, expected_bbox, test_name) Really hate to see all ...
6 years, 6 months ago (2014-06-25 12:53:20 UTC) #2
Erik Dahlström (inactive)
https://codereview.chromium.org/355813004/diff/1/LayoutTests/svg/custom/getBBox-polygon-nodata.html File LayoutTests/svg/custom/getBBox-polygon-nodata.html (right): https://codereview.chromium.org/355813004/diff/1/LayoutTests/svg/custom/getBBox-polygon-nodata.html#newcode4 LayoutTests/svg/custom/getBBox-polygon-nodata.html:4: function check_rect_bbox(bbox, expected_bbox, test_name) On 2014/06/25 12:53:20, fs wrote: ...
6 years, 6 months ago (2014-06-25 14:57:43 UTC) #3
fs
LGTM w/ nit. https://codereview.chromium.org/355813004/diff/20001/Source/core/rendering/svg/RenderSVGEllipse.h File Source/core/rendering/svg/RenderSVGEllipse.h (right): https://codereview.chromium.org/355813004/diff/20001/Source/core/rendering/svg/RenderSVGEllipse.h#newcode48 Source/core/rendering/svg/RenderSVGEllipse.h:48: Nit: Maybe drop this stray change.
6 years, 6 months ago (2014-06-25 15:06:52 UTC) #4
Erik Dahlström (inactive)
The CQ bit was checked by ed@opera.com
6 years, 6 months ago (2014-06-25 15:13:36 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ed@opera.com/355813004/40001
6 years, 6 months ago (2014-06-25 15:14:10 UTC) #6
f(malita)
LGTM IIUC the issue is we actually use uniteEvenIfEmpty() - any reason to do that ...
6 years, 6 months ago (2014-06-25 15:16:51 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-06-25 16:10:45 UTC) #8
Erik Dahlström (inactive)
On 2014/06/25 15:16:51, Florin Malita wrote: > LGTM > > IIUC the issue is we ...
6 years, 6 months ago (2014-06-25 16:35:38 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-25 16:46:04 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/12775)
6 years, 6 months ago (2014-06-25 16:46:05 UTC) #11
Erik Dahlström (inactive)
The CQ bit was checked by ed@opera.com
6 years, 6 months ago (2014-06-26 08:11:39 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ed@opera.com/355813004/40001
6 years, 6 months ago (2014-06-26 08:12:29 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-06-26 08:57:20 UTC) #14
Message was sent while issue was closed.
Change committed as 176972

Powered by Google App Engine
This is Rietveld 408576698