Index: WebCore/html/HTMLFormControlElement.cpp |
=================================================================== |
--- WebCore/html/HTMLFormControlElement.cpp (revision 70347) |
+++ WebCore/html/HTMLFormControlElement.cpp (working copy) |
@@ -592,10 +592,10 @@ |
return toRenderTextControl(renderer())->selectionEnd(); |
} |
-VisibleSelection HTMLTextFormControlElement::selection() const |
+PassRefPtr<Range> HTMLTextFormControlElement::selection() const |
{ |
if (!renderer() || !isTextFormControl() || cachedSelectionStart() < 0 || cachedSelectionEnd() < 0) |
- return VisibleSelection(); |
+ return 0; |
return toRenderTextControl(renderer())->selection(cachedSelectionStart(), cachedSelectionEnd()); |
} |