Move test for contained caret offset to RenderTextLineBoxes
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Oct 2013 12:24:57 +0000 (12:24 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Oct 2013 12:24:57 +0000 (12:24 +0000)
commit8115817cb918a55cc0b135b9b3db140f2b16e9ff
treec8d84bf5a46e9d717135820998e003c97a2f1021
parentf01d69cd104926551b467f8220013ae6d6899e6f
Move test for contained caret offset to RenderTextLineBoxes
https://bugs.webkit.org/show_bug.cgi?id=122887

Reviewed by Andreas Kling.

* dom/Position.cpp:
(WebCore::Position::renderedOffset):
(WebCore::Position::isCandidate):

    Remove isRenderedText, call RenderText::containsCaretOffset instead.

(WebCore::Position::isRenderedCharacter):
(WebCore::Position::rendersInDifferentPosition):
* dom/Position.h:
* dom/PositionIterator.cpp:
(WebCore::PositionIterator::isCandidate):
* rendering/InlineTextBox.cpp:
* rendering/InlineTextBox.h:
* rendering/RenderText.cpp:
(WebCore::RenderText::containsCharacterOffset):
(WebCore::RenderText::containsCaretOffset):
* rendering/RenderText.h:
* rendering/RenderTextLineBoxes.cpp:
(WebCore::RenderTextLineBoxes::containsOffset):

    Combined implementations of Position::isRenderedCharacter and Position::isRenderedText.

* rendering/RenderTextLineBoxes.h:

    Remove containsCaretOffset(), functionality is now in RenderTextLineBoxes::containsOffset.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@157514 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/Position.cpp
Source/WebCore/dom/Position.h
Source/WebCore/dom/PositionIterator.cpp
Source/WebCore/rendering/InlineTextBox.cpp
Source/WebCore/rendering/InlineTextBox.h
Source/WebCore/rendering/RenderText.cpp
Source/WebCore/rendering/RenderText.h
Source/WebCore/rendering/RenderTextLineBoxes.cpp
Source/WebCore/rendering/RenderTextLineBoxes.h