WebCore: Fix for https://bugs.webkit.org/show_bug.cgi?id=39095
authoradele@apple.com <adele@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 May 2010 04:46:04 +0000 (04:46 +0000)
committeradele@apple.com <adele@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 May 2010 04:46:04 +0000 (04:46 +0000)
commit9a79d663b1468ed0779d881333f429f9524e9ea0
tree5d05b9aef5a25af54e9fbafedd9e43295668dbb6
parent5c38ae31febde47f34a6a0321082f7ed2e03c630
WebCore: Fix for https://bugs.webkit.org/show_bug.cgi?id=39095
<rdar://problem/7984158> REGRESSION (r53085): Infinite recursion in Position::getInlineBoxAndOffset when changing writing direction to right-to-left

Reviewed by Dave Hyatt.

Test: editing/selection/applystyle-to-inline-inside-block.html

* dom/Position.cpp: (WebCore::Position::getInlineBoxAndOffset): Now that this function correctly goes in and out of editable areas by calling
downstreamIgnoringEditingBoundaries and upstreamIgnoringEditingBoundaries for blocks (added in r58665), we no longer need a special case to
jump out to the parent when we hit an inline (which was added in r53085 when this issue was introduced).

LayoutTests: Test for https://bugs.webkit.org/show_bug.cgi?id=39095
<rdar://problem/7984158> REGRESSION (r53085): Infinite recursion in Position::getInlineBoxAndOffset when changing writing direction to right-to-left

Reviewed by Dave Hyatt.

* editing/selection/applystyle-to-inline-in-block-expected.txt: Added.
* editing/selection/applystyle-to-inline-in-block.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@59516 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/selection/applystyle-to-inline-in-block-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/applystyle-to-inline-in-block.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/Position.cpp