Changeset 94832 in webkit
- Timestamp:
- Sep 8, 2011 9:03:21 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r94828 r94832 1 2011-09-08 Annie Sullivan <sullivan@chromium.org> 2 3 Crashes in WebCore::InsertNodeBeforeCommand constructor. 4 https://bugs.webkit.org/show_bug.cgi?id=67763 5 6 Reviewed by Ryosuke Niwa. 7 8 Tests for crash when the selection is outside the contenteditable node. 9 10 * editing/inserting/insert-paragraph-selection-outside-contenteditable-expected.txt: Added. 11 * editing/inserting/insert-paragraph-selection-outside-contenteditable.html: Added. 12 1 13 2011-09-08 Daniel Bates <dbates@webkit.org> 2 14 -
trunk/Source/WebCore/ChangeLog
r94831 r94832 1 2011-09-08 Annie Sullivan <sullivan@chromium.org> 2 3 Crashes in WebCore::InsertNodeBeforeCommand constructor. 4 https://bugs.webkit.org/show_bug.cgi?id=67763 5 6 Reviewed by Ryosuke Niwa. 7 8 Changes editableRootForPosition() to use the position's containerNode instead of deprecatedNode so that 9 positions which are before or after a given node cannot return that node as the editable root. 10 11 Test: editing/inserting/insert-paragraph-selection-outside-contenteditable.html 12 13 * editing/htmlediting.cpp: 14 (WebCore::editableRootForPosition): use containerNode instead of deprecatedNode. 15 1 16 2011-09-08 James Weatherall <wez@chromium.org> 2 17 -
trunk/Source/WebCore/editing/htmlediting.cpp
r93935 r94832 177 177 Element* editableRootForPosition(const Position& p) 178 178 { 179 Node* node = p. deprecatedNode();179 Node* node = p.containerNode(); 180 180 if (!node) 181 181 return 0;
Note: See TracChangeset
for help on using the changeset viewer.