Changeset 140659 in webkit
- Timestamp:
- Jan 24, 2013 12:23:16 AM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r140658 r140659 1 2013-01-24 Hajime Morrita <morrita@google.com> 2 3 There are a few of wrong removeAllChildren() call 4 https://bugs.webkit.org/show_bug.cgi?id=107790 5 6 Reviewed by Ryosuke Niwa. 7 8 removeAllChildren() is designed for trashing deleting children out. 9 It doesn't detach() children and could have possible leak. 10 This change replaces such removeAllChildren() usage with safer removeChildren(). 11 12 No new tests. Covered by existing tests. 13 14 * html/HTMLInputElement.cpp: 15 (WebCore::HTMLInputElement::parseAttribute): 16 * html/InputType.cpp: 17 (WebCore::InputType::destroyShadowSubtree): 18 * html/ValidationMessage.cpp: 19 (WebCore::ValidationMessage::setMessageDOMAndStartTimer): 20 * html/parser/HTMLTreeBuilder.cpp: 21 (WebCore::HTMLTreeBuilder::processEndTag): 22 1 23 2013-01-24 Dominic Mazzoni <dmazzoni@google.com> 2 24 -
trunk/Source/WebCore/html/HTMLInputElement.cpp
r140655 r140659 753 753 m_inputType->destroyShadowSubtree(); 754 754 m_inputType->createShadowSubtree(); 755 attach(); 755 if (!attached()) 756 attach(); 756 757 } else { 757 758 m_inputType->destroyShadowSubtree(); -
trunk/Source/WebCore/html/InputType.cpp
r140655 r140659 490 490 return; 491 491 492 root->remove AllChildren();492 root->removeChildren(); 493 493 494 494 // It's ok to clear contents of all other ShadowRoots because they must have … … 497 497 while ((root = root->youngerShadowRoot())) { 498 498 #if ENABLE(SHADOW_DOM) 499 root->remove AllChildren();499 root->removeChildren(); 500 500 root->appendChild(HTMLShadowElement::create(shadowTag, element()->document())); 501 501 #else -
trunk/Source/WebCore/html/ValidationMessage.cpp
r134828 r140659 126 126 ASSERT(m_messageHeading); 127 127 ASSERT(m_messageBody); 128 m_messageHeading->remove AllChildren();129 m_messageBody->remove AllChildren();128 m_messageHeading->removeChildren(); 129 m_messageBody->removeChildren(); 130 130 Vector<String> lines; 131 131 m_message.split('\n', lines); -
trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp
r140341 r140659 2153 2153 m_tree.openElements()->pop(); 2154 2154 if (isParsingFragment() && !scriptingContentIsAllowed(m_fragmentContext.scriptingPermission())) 2155 m_scriptToProcess->remove AllChildren();2155 m_scriptToProcess->removeChildren(); 2156 2156 setInsertionMode(m_originalInsertionMode); 2157 2157 -
trunk/Source/WebKit/qt/Api/qwebelement.cpp
r135567 r140659 1199 1199 return; 1200 1200 1201 m_element->remove AllChildren();1201 m_element->removeChildren(); 1202 1202 } 1203 1203 -
trunk/Source/WebKit/qt/ChangeLog
r140541 r140659 1 2013-01-24 Hajime Morrita <morrita@google.com> 2 3 There are a few of wrong removeAllChildren() call 4 https://bugs.webkit.org/show_bug.cgi?id=107790 5 6 Reviewed by Ryosuke Niwa. 7 8 * Api/qwebelement.cpp: Repalced removeAllChildren() with safer removeChildren() 9 (QWebElement::removeAllChildren): 10 1 11 2013-01-23 Shinya Kawanaka <shinyak@chromium.org> 2 12
Note: See TracChangeset
for help on using the changeset viewer.