12012-06-26 Ryosuke Niwa <rniwa@webkit.org>
2
3 Stop calling node() and deprecatedEditingOffset() in comparePositions
4 https://bugs.webkit.org/show_bug.cgi?id=54535
5
6 Reviewed by NOBODY (OOPS!).
7
8 Replaced depreactedNode() and deprecatedEditingOffset() by containerNode() and computeOffsetInContainerNode()
9 in comparePositions().
10
11 In addition, fixed a bunch of bugs in DeleteSelectionCommand::handleSpecialCaseBRDelete revealed by this change:
12 - Use node after position instead of deprecated node in determinig whether start and end positions at a br.
13 - Don't set m_startsAtEmptyLine true when BR is wrapped in a block element. The only reason this code had worked
14 was positions like (div, offset, 0) and (br, before) in <div><br> were treated differently, which we no longer do.
15
16 * editing/DeleteSelectionCommand.cpp:
17 (WebCore::DeleteSelectionCommand::handleSpecialCaseBRDelete):
18 * editing/htmlediting.cpp:
19 (WebCore::comparePositions):
20