Changeset 74622 in webkit
- Timestamp:
- Dec 24, 2010 2:38:53 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r74614 r74622 1 2010-12-24 Justin Schuh <jschuh@chromium.org> 2 3 Reviewed by Darin Adler. 4 5 SVGFontFaceElement::rebuildFontFace() should exit when not in document 6 https://bugs.webkit.org/show_bug.cgi?id=51571 7 8 * svg/custom/use-invalid-font-face-expected.txt: Added. 9 * svg/custom/use-invalid-font-face.svg: Added. 10 1 11 2010-12-23 Yuta Kitamura <yutak@chromium.org> 2 12 -
trunk/WebCore/ChangeLog
r74619 r74622 1 2010-12-24 Justin Schuh <jschuh@chromium.org> 2 3 Reviewed by Darin Adler. 4 5 SVGFontFaceElement::rebuildFontFace() should exit when not in document 6 https://bugs.webkit.org/show_bug.cgi?id=51571 7 8 We were hitting a NULL deref crash. Since most of the callers checked 9 inDocument() anyway, I moved it into the start of rebuildFontFace. 10 11 Test: svg/custom/use-invalid-font-face.svg 12 13 * svg/SVGFontFaceElement.cpp: 14 (WebCore::SVGFontFaceElement::parseMappedAttribute): 15 (WebCore::SVGFontFaceElement::rebuildFontFace): 16 (WebCore::SVGFontFaceElement::childrenChanged): 17 1 18 2010-12-24 Justin Schuh <jschuh@chromium.org> 2 19 -
trunk/WebCore/svg/SVGFontFaceElement.cpp
r74493 r74622 115 115 if (propId > 0) { 116 116 m_styleDeclaration->setProperty(propId, attr->value(), false); 117 if (inDocument()) 118 rebuildFontFace(); 117 rebuildFontFace(); 119 118 return; 120 119 } … … 265 264 void SVGFontFaceElement::rebuildFontFace() 266 265 { 267 ASSERT(inDocument()); 266 if (!inDocument()) 267 return; 268 268 269 269 // we currently ignore all but the first src element, alternatively we could concat them … … 329 329 { 330 330 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta); 331 if (inDocument()) 332 rebuildFontFace(); 331 rebuildFontFace(); 333 332 } 334 333
Note: See TracChangeset
for help on using the changeset viewer.