Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index 51e4016f94299e0ec9f5f65df16bc4fe8f99d005..27769495a5cf60ee7673b8d9bcc96a1c18946cdb 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -1966,6 +1966,17 @@ void Internals::initializeMockCDM() |
} |
#endif |
+PassRefPtr<ClientRect> Internals::selectionBounds(ExceptionCode& ec) |
+{ |
+ Document* document = contextDocument(); |
+ if (!document || !document->frame() || !document->frame()->selection()) { |
+ ec = INVALID_ACCESS_ERR; |
+ return ClientRect::create(); |
esprehn
2013/06/12 19:25:30
return 0, the return value doesn't matter anyway,
svillar
2013/06/13 08:53:06
Good point
|
+ } |
+ |
+ return ClientRect::create(document->frame()->selection()->bounds()); |
+} |
+ |
String Internals::markerTextForListItem(Element* element, ExceptionCode& ec) |
{ |
if (!element) { |