Web Inspector: editing body multiplies head
authorpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Jan 2012 13:35:04 +0000 (13:35 +0000)
committerpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Jan 2012 13:35:04 +0000 (13:35 +0000)
commit87bb664962750bcba22c2ec274753f9f66454540
tree48447d31ae891cc6a1f57ef1dc1b633dcc2b8366
parenta29182887eea270b2b3b9e58b77dcfbc16a8baad
Web Inspector: editing body multiplies head
https://bugs.webkit.org/show_bug.cgi?id=62272

Patch by Pavel Feldman <pfeldman@chromium.org> on 2012-01-15
Reviewed by Yury Semikhatsky.

Source/WebCore:

Test: inspector/elements/set-outer-html-body.html

* inspector/DOMEditor.cpp:
(WebCore::DOMEditor::patchDocument):
(WebCore::DOMEditor::patchNode):
(WebCore::DOMEditor::innerPatchChildren):
(WebCore::DOMEditor::insertBefore):
* inspector/DOMEditor.h:
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::setOuterHTML):

LayoutTests:

* inspector/elements/resources/set-outer-html-body-iframe.html: Added.
* inspector/elements/set-outer-html-body-expected.txt: Added.
* inspector/elements/set-outer-html-body.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@105058 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/inspector/elements/resources/set-outer-html-body-iframe.html [new file with mode: 0644]
LayoutTests/inspector/elements/set-outer-html-body-expected.txt [new file with mode: 0644]
LayoutTests/inspector/elements/set-outer-html-body.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/inspector/DOMEditor.cpp
Source/WebCore/inspector/DOMEditor.h
Source/WebCore/inspector/InspectorDOMAgent.cpp