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

Issue 635353002: Fix assertion: !visualMetricsValues.isEmpty() in blink::SVGTextLayoutEngine::layoutTextOnLineOrPath (Closed)

Created:
6 years, 2 months ago by pmolnar.u-szeged
Modified:
5 years, 8 months ago
Reviewers:
kinuko, pdr., eseidel
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, sof, eae+blinkwatch, rwlbuis, eseidel
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fix assertion: !visualMetricsValues.isEmpty() in blink::SVGTextLayoutEngine::layoutTextOnLineOrPath Having only whitespace within a <tspan> and setting white-space to pre-wrap causes the !visualMetricsValues.isEmpty() assert, because the created renderer's visualMetricsValues is empty. In fact, the renderer shouldn't even be created in this case. So, if the text only contains whitespace, and the white-space CSS property is set to pre-wrap, and the text is from SVG node, then don't create a renderer. R=kinuko@chromium.org BUG=416833

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
A + LayoutTests/svg/text/tspan-pre-wrap-whitespace-crash.html View 1 chunk +3 lines, -1 line 0 comments Download
A + LayoutTests/svg/text/tspan-pre-wrap-whitespace-crash-expected.html View 0 chunks +-1 lines, --1 lines 0 comments Download
M Source/core/dom/Text.cpp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
pmolnar.u-szeged
I don't know if this fix is any good. It fixes the assert and does'n ...
6 years, 2 months ago (2014-10-08 15:10:09 UTC) #1
reni
Adding @eseidel to CC list since he is probably familiar with this area too.
6 years, 2 months ago (2014-10-16 13:17:14 UTC) #2
eseidel
lgtm
6 years, 1 month ago (2014-10-27 17:47:43 UTC) #7
eseidel
lgtm lgtm
6 years, 1 month ago (2014-10-27 17:47:44 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/635353002/1
6 years, 1 month ago (2014-10-27 17:47:59 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/33787)
6 years, 1 month ago (2014-10-27 20:17:55 UTC) #11
zherczeg
Peter Molnar allowed me to continue this bug. The issue with the patch was that ...
6 years, 1 month ago (2014-11-24 09:54:26 UTC) #12
zherczeg
New issue: https://codereview.chromium.org/755613002
6 years, 1 month ago (2014-11-24 10:06:36 UTC) #13
lgombos
On 2014/11/24 10:06:36, zherczeg wrote: > New issue: https://codereview.chromium.org/755613002 Can we abandon this CL than ...
5 years, 9 months ago (2015-03-16 18:13:42 UTC) #14
zherczeg
5 years, 8 months ago (2015-04-03 11:14:11 UTC) #15
> Can we abandon this CL than - to take it out form the "review queue" ?

Yes, sure.

Powered by Google App Engine
This is Rietveld 408576698