Changeset 63865 in webkit
- Timestamp:
- Jul 21, 2010, 5:36:38 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/svg/custom/use-invalid-html-expected.txt (added)
-
LayoutTests/svg/custom/use-invalid-html.xhtml (added)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/dom/ContainerNode.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r63864 r63865 1 2010-07-21 Justin Schuh <jschuh@chromium.org> 2 3 Reviewed by Oliver Hunt. 4 5 Prevent DeleteButtonController enable state from changing when not editing 6 https://bugs.webkit.org/show_bug.cgi?id=42659 7 8 * svg/custom/use-invalid-html-expected.txt: Added. 9 * svg/custom/use-invalid-html.xhtml: Added. 10 1 11 2010-07-21 Beth Dakin <bdakin@apple.com> 2 12 -
trunk/WebCore/ChangeLog
r63864 r63865 1 2010-07-21 Justin Schuh <jschuh@chromium.org> 2 3 Reviewed by Oliver Hunt. 4 5 Prevent DeleteButtonController enable state from changing when not editing 6 https://bugs.webkit.org/show_bug.cgi?id=42659 7 8 Test: svg/custom/use-invalid-html.xhtml 9 10 * dom/ContainerNode.cpp: 11 (WebCore::ContainerNode::cloneChildNodes): 12 1 13 2010-07-21 Beth Dakin <bdakin@apple.com> 2 14 -
trunk/WebCore/dom/ContainerNode.cpp
r63633 r63865 695 695 { 696 696 // disable the delete button so it's elements are not serialized into the markup 697 if (document()->frame()) 697 bool isEditorEnabled = document()->frame() && document()->frame()->editor()->canEdit(); 698 if (isEditorEnabled) 698 699 document()->frame()->editor()->deleteButtonController()->disable(); 699 700 ExceptionCode ec = 0; 700 701 for (Node* n = firstChild(); n && !ec; n = n->nextSibling()) 701 702 clone->appendChild(n->cloneNode(true), ec); 702 if ( document()->frame())703 if (isEditorEnabled && document()->frame()) 703 704 document()->frame()->editor()->deleteButtonController()->enable(); 704 705 }
Note:
See TracChangeset
for help on using the changeset viewer.