2011-03-02 Levi Weintraub <leviw@chromium.org>
authorleviw@chromium.org <leviw@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Mar 2011 02:30:20 +0000 (02:30 +0000)
committerleviw@chromium.org <leviw@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Mar 2011 02:30:20 +0000 (02:30 +0000)
commit238b01624ae7685893bf51f5c2763f6474bd7fa6
tree6763b58bd963a679ea37c49b4e5c0560515a6027
parent693d619493810d018a97ba96f47eca528eff52d5
2011-03-02  Levi Weintraub  <leviw@chromium.org>

        Reviewed by Ryosuke Niwa.

        deprecatedEditingOffset should actually return the expected deprecated value for "after" positions
        https://bugs.webkit.org/show_bug.cgi?id=54986

        Calls to deprecatedEditingOffset needs to return the expected value for new Before/After positions
        until we can update all the call sites to consider the new position types.

        No tests. This is intended to simplify the transition to new Positions, not to change behavior.

        * dom/Position.cpp:
        (WebCore::Position::deprecatedEditingOffset):
        (WebCore::Position::offsetForPositionAfterAnchor): Added to do the right thing while ensuring
        inline-speed for most calls to deprecatedEditingOffset.
        * dom/Position.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@80195 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/Position.cpp
Source/WebCore/dom/Position.h