| Index: third_party/WebKit/Source/core/testing/Internals.cpp
|
| diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| index dc9440c2e30d3484e279a8c4a977016f5c3e3e2e..c13b7b919ecaf60e10933212f232a8481f64116a 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -913,6 +913,19 @@ ClientRect* Internals::absoluteCaretBounds(ExceptionState& exceptionState) {
|
| return ClientRect::create(frame()->selection().absoluteCaretBounds());
|
| }
|
|
|
| +String Internals::textAffinity() {
|
| + if (frame()
|
| + ->page()
|
| + ->focusController()
|
| + .focusedFrame()
|
| + ->selection()
|
| + .selectionInDOMTree()
|
| + .affinity() == TextAffinity::Upstream) {
|
| + return "Upstream";
|
| + }
|
| + return "Downstream";
|
| +}
|
| +
|
| ClientRect* Internals::boundingBox(Element* element) {
|
| DCHECK(element);
|
|
|
|
|