Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1684)

Unified Diff: WebCore/html/HTMLFormControlElement.cpp

Issue 4056004: Merge 69831 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « WebCore/html/HTMLFormControlElement.h ('k') | WebCore/rendering/RenderTextControl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « WebCore/html/HTMLFormControlElement.h ('k') | WebCore/rendering/RenderTextControl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698