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

Issue 1166653005: Don't create layout objects for pre-wrap text nodes in SVG (Closed)

Created:
5 years, 6 months ago by fs
Modified:
5 years, 6 months ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Don't create layout objects for pre-wrap text nodes in SVG SVGTextMetricsBuilder only knows how to handle 'white-space: pre' with regards to whitespace preservation, meaning it will collapse the spaces in the node, and hence not generate any SVGTextMetrics for it. Filter this case out to avoid even creating the text layout object in the first place. Fix salvaged from https://codereview.chromium.org/755613002/, with prior work by Peter Molnar (pmolnar.u-szeged@partner.samsung.com) and Zoltan Herczeg (zherczeg.u-szeged@partner.samsung.com). Test simplified and extended to cover all white-space values. BUG=416833, 495969 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196558

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -1 line) Patch
A LayoutTests/svg/text/white-space-pre-wrap-whitespace-only-crash.html View 1 chunk +13 lines, -0 lines 0 comments Download
A + LayoutTests/svg/text/white-space-pre-wrap-whitespace-only-crash-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Text.cpp View 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 6 (2 generated)
fs
5 years, 6 months ago (2015-06-04 22:43:07 UTC) #2
pdr.
LGTM
5 years, 6 months ago (2015-06-05 06:31:02 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1166653005/1
5 years, 6 months ago (2015-06-05 06:31:28 UTC) #5
commit-bot: I haz the power
5 years, 6 months ago (2015-06-05 06:34:49 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196558

Powered by Google App Engine
This is Rietveld 408576698