WebSurroundingText layout tests should use the same code path as the rest of the...
authorleandrogracia@chromium.org <leandrogracia@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Jul 2012 16:01:26 +0000 (16:01 +0000)
committerleandrogracia@chromium.org <leandrogracia@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Jul 2012 16:01:26 +0000 (16:01 +0000)
commit121e2992dce524c796157758e90b683013222459
tree3cc161f2c6a4a6362fdf817831d02d860aae6fd7
parentbdd0ba86732f679ccb7db862829c85f4adf31a4a
WebSurroundingText layout tests should use the same code path as the rest of the feature.
https://bugs.webkit.org/show_bug.cgi?id=90807

Reviewed by Adam Barth.

Source/WebKit/chromium:

Replace the offset-based initialize method used only by LayoutTestController
with a point-based version to follow the same code path.

* public/WebSurroundingText.h:
(WebKit):
(WebSurroundingText):
* src/WebSurroundingText.cpp:
(WebKit::WebSurroundingText::initialize):

Tools:

Make the textSurroundingNode method take a pair of point coordinates
instead of a node offset.

* DumpRenderTree/chromium/LayoutTestController.cpp:
(LayoutTestController::textSurroundingNode):
* DumpRenderTree/chromium/LayoutTestController.h:
(LayoutTestController):

LayoutTests:

Make the textSurroundingNode method take a pair of point coordinates
instead of a node offset.

* platform/chromium/editing/surrounding-text/surrounding-text-expected.txt:
* platform/chromium/editing/surrounding-text/surrounding-text.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@122225 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/chromium/editing/surrounding-text/surrounding-text-expected.txt
LayoutTests/platform/chromium/editing/surrounding-text/surrounding-text.html
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/public/WebSurroundingText.h
Source/WebKit/chromium/src/WebSurroundingText.cpp
Tools/ChangeLog
Tools/DumpRenderTree/chromium/LayoutTestController.cpp
Tools/DumpRenderTree/chromium/LayoutTestController.h