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

Issue 176853009: Fix crash in SVGFontFaceElement::associatedFontElement crash when removing SVGFontFaceElement. (Closed)

Created:
6 years, 10 months ago by tasak
Modified:
6 years, 9 months ago
CC:
blink-reviews, krit, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, fs, ed+blinkwatch_opera.com, f(malita), gyuyoung.kim_webkit.org, jchaffraix+rendering, pdr., Stephen Chennney, rwlbuis
Visibility:
Public.

Description

Fix crash in SVGFontFaceElement::associatedFontElement crash when removing SVGFontFaceElement. (1) We need to remove its font-face rule from FontCache when removing SVGFontFaceElement, (2) We should not use old styles in RenderSVGInlineText::styleDidChange. Since styleRecalc is done in document-order, we cannot see any styles of next renderer (obtained by nextInPreOrder). The old styles might have old fonts which are created by SVGFontFaceElement. BUG=346192 TEST=fast/dom/discard-svg-font-face-crash.svg Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167993

Patch Set 1 : #

Patch Set 2 : Patch for landing #

Patch Set 3 : Fixed patch conflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -5 lines) Patch
A LayoutTests/fast/dom/discard-svg-font-face-crash.svg View 1 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/discard-svg-font-face-crash-expected.svg View 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGInlineText.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGText.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/svg/RenderSVGText.cpp View 3 chunks +5 lines, -3 lines 0 comments Download
M Source/core/svg/SVGFontFaceElement.cpp View 1 2 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
tasak
6 years, 10 months ago (2014-02-25 09:04:37 UTC) #1
kouhei (in TOK)
Would you post results on run-perf-tests svg?
6 years, 10 months ago (2014-02-25 09:11:06 UTC) #2
tasak
On 2014/02/25 09:11:06, kouhei wrote: > Would you post results on run-perf-tests svg? Sure. I ...
6 years, 10 months ago (2014-02-25 10:25:26 UTC) #3
kouhei (in TOK)
Looks like no regression. Actually this is a win. non owner lgtm, but I'm not ...
6 years, 10 months ago (2014-02-26 03:00:47 UTC) #4
tasak
jchaffraix, would you review this CL? I need rendering owner's lgtm.
6 years, 10 months ago (2014-02-26 05:15:21 UTC) #5
Stephen Chennney
LGTM.
6 years, 10 months ago (2014-02-26 19:57:33 UTC) #6
Stephen Chennney
The CQ bit was checked by schenney@chromium.org
6 years, 10 months ago (2014-02-26 19:57:39 UTC) #7
Stephen Chennney
The CQ bit was unchecked by schenney@chromium.org
6 years, 10 months ago (2014-02-26 19:57:43 UTC) #8
tasak
The CQ bit was checked by tasak@google.com
6 years, 9 months ago (2014-02-27 05:00:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tasak@google.com/176853009/40001
6 years, 9 months ago (2014-02-27 05:00:58 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-27 05:01:00 UTC) #11
commit-bot: I haz the power
Failed to apply patch for Source/core/svg/SVGFontFaceElement.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 9 months ago (2014-02-27 05:01:01 UTC) #12
tasak
The CQ bit was checked by tasak@google.com
6 years, 9 months ago (2014-02-27 07:11:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tasak@google.com/176853009/60001
6 years, 9 months ago (2014-02-27 07:11:28 UTC) #14
commit-bot: I haz the power
6 years, 9 months ago (2014-02-27 08:37:56 UTC) #15
Message was sent while issue was closed.
Change committed as 167993

Powered by Google App Engine
This is Rietveld 408576698