| Log Message: |
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
Review URL: https://codereview.chromium.org/176853009
|