Changeset 99886 in webkit
- Timestamp:
- Nov 10, 2011 11:51:58 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r99884 r99886 1 2011-11-10 Xiaomei Ji <xji@chromium.org> 2 3 --webkit-visual-word crash when create legacy position for shadowRoot 4 https://bugs.webkit.org/show_bug.cgi?id=71600 5 6 Reviewed by Ryosuke Niwa. 7 8 * editing/selection/move-by-word-visually-crash-test-textarea-expected.txt: Added. 9 * editing/selection/move-by-word-visually-crash-test-textarea.html: Added. 10 1 11 2011-11-10 Ojan Vafai <ojan@chromium.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r99883 r99886 1 2011-11-10 Xiaomei Ji <xji@chromium.org> 2 3 --webkit-visual-word crash when create legacy position for shadowRoot 4 https://bugs.webkit.org/show_bug.cgi?id=71600 5 6 Reviewed by Ryosuke Niwa. 7 8 Inside textarea, the shadowed text node's previous leaf node could be the 9 shadowRoot node, which cause assert exception in creating legacy position based 10 on such node. Exit previousRootInlineBox() when reach shadowRoot node. 11 12 It does not cause problem when looking for text node's next leaf node. Adding 13 the same checking in nextRootInlineBox just to be safe. 14 15 Test: editing/selection/move-by-word-visually-crash-test-textarea.html 16 17 * editing/visible_units.cpp: 18 (WebCore::previousRootInlineBox): 19 (WebCore::nextRootInlineBox): 20 1 21 2011-11-10 Dean Jackson <dino@apple.com> 2 22 -
trunk/Source/WebCore/editing/visible_units.cpp
r98428 r99886 1435 1435 previousNode = previousNode->previousLeafNode(); 1436 1436 1437 while (previousNode ) {1437 while (previousNode && !previousNode->isShadowRoot()) { 1438 1438 Position pos = createLegacyEditingPosition(previousNode, caretMaxOffset(previousNode)); 1439 1439 … … 1458 1458 nextNode = nextNode->nextLeafNode(); 1459 1459 1460 while (nextNode ) {1460 while (nextNode && !nextNode->isShadowRoot()) { 1461 1461 Position pos; 1462 1462 pos = createLegacyEditingPosition(nextNode, caretMinOffset(nextNode));
Note: See TracChangeset
for help on using the changeset viewer.