Changeset 169118 in webkit
- Timestamp:
- May 20, 2014 10:13:35 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r169117 r169118 1 2014-05-20 Prashant Hiremath <hiremathprashants@gmail.com> 2 3 Only set title on SVG documents 4 https://bugs.webkit.org/show_bug.cgi?id=133068 5 6 Reviewed by Dirk Schulze. 7 8 * svg/custom/html_document_set_title-expected.txt: Added. 9 * svg/custom/html_document_set_title.html: Added. 10 1 11 2014-05-20 Alexey Proskuryakov <ap@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r169115 r169118 1 2014-05-20 Prashant Hiremath <hiremathprashants@gmail.com> 2 3 Only set title on SVG documents 4 https://bugs.webkit.org/show_bug.cgi?id=133068 5 6 Reviewed by Dirk Schulze. 7 8 Test: svg/custom/html_document_set_title.html 9 10 * svg/SVGTitleElement.cpp: 11 (WebCore::SVGTitleElement::insertedInto): 12 (WebCore::SVGTitleElement::removedFrom): 13 (WebCore::SVGTitleElement::childrenChanged): 14 1 15 2014-05-20 peavo@outlook.com <peavo@outlook.com> 2 16 -
trunk/Source/WebCore/svg/SVGTitleElement.cpp
r163440 r169118 43 43 if (!rootParent.inDocument()) 44 44 return InsertionDone; 45 // FIXME: It's possible to register SVGTitleElement to an HTMLDocument. 46 if (firstChild() )45 46 if (firstChild() && document().isSVGDocument()) { 47 47 // FIXME: does SVG have a title text direction? 48 48 document().setTitleElement(StringWithDirection(textContent(), LTR), this); 49 } 49 50 return InsertionDone; 50 51 } … … 53 54 { 54 55 SVGElement::removedFrom(rootParent); 55 if (rootParent.inDocument() )56 if (rootParent.inDocument() && document().isSVGDocument()) 56 57 document().removeTitle(this); 57 58 } … … 60 61 { 61 62 SVGElement::childrenChanged(change); 62 if (inDocument() )63 if (inDocument() && document().isSVGDocument()) { 63 64 // FIXME: does SVG have title text direction? 64 65 document().setTitleElement(StringWithDirection(textContent(), LTR), this); 66 } 65 67 } 66 68
Note: See TracChangeset
for help on using the changeset viewer.