Changeset 56974 in webkit
- Timestamp:
- Apr 1, 2010 11:34:28 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r56971 r56974 1 2010-04-01 MORITA Hajime <morrita@google.com> 2 3 Reviewed by Darin Adler. 4 5 setting document.title doesn't change document.title value 6 https://bugs.webkit.org/show_bug.cgi?id=36802 7 8 * fast/dom/Document/script-tests/title-with-multiple-children.js: Added. 9 * fast/dom/Document/title-with-multiple-children-expected.txt: Added. 10 * fast/dom/Document/title-with-multiple-children.html: Added. 11 1 12 2010-04-01 Dirk Schulze <krit@webkit.org> 2 13 -
trunk/WebCore/ChangeLog
r56970 r56974 1 2010-04-01 MORITA Hajime <morrita@google.com> 2 3 Reviewed by Darin Adler. 4 5 setting document.title doesn't change document.title value 6 https://bugs.webkit.org/show_bug.cgi?id=36802 7 8 An entity of "value" argument on HTMLTitleElement::setTitle() could be 9 Document::m_title and be changed during HTMLTitleElement::setText(). 10 Fix copying the argument to keep the original value. 11 12 Test: fast/dom/Document/title-with-multiple-children.html 13 14 * html/HTMLTitleElement.cpp: 15 (WebCore::HTMLTitleElement::setText): 16 1 17 2010-04-01 Luiz Agostini <luiz.agostini@openbossa.org> 2 18 -
trunk/WebCore/html/HTMLTitleElement.cpp
r38878 r56974 85 85 static_cast<Text*>(firstChild())->setData(value, ec); 86 86 else { 87 // We make a copy here because entity of "value" argument can be Document::m_title, 88 // which goes empty during removeChildren() invocation below, 89 // which causes HTMLTitleElement::childrenChanged(), which ends up Document::setTitle(). 90 String valueCopy(value); 91 87 92 if (numChildren > 0) 88 93 removeChildren(); 89 90 appendChild(document()->createTextNode(value .impl()), ec);94 95 appendChild(document()->createTextNode(valueCopy.impl()), ec); 91 96 } 92 97 }
Note: See TracChangeset
for help on using the changeset viewer.