Index: Source/core/html/HTMLTextAreaElement.cpp |
diff --git a/Source/core/html/HTMLTextAreaElement.cpp b/Source/core/html/HTMLTextAreaElement.cpp |
index 6653cb1b2befa66630985cfe355ea8ec86b94fef..35ab21dd8a5ade3aed062df1ebbc65557afb66b4 100644 |
--- a/Source/core/html/HTMLTextAreaElement.cpp |
+++ b/Source/core/html/HTMLTextAreaElement.cpp |
@@ -240,12 +240,9 @@ bool HTMLTextAreaElement::shouldShowFocusRingOnMouseFocus() const |
void HTMLTextAreaElement::updateFocusAppearance(bool restorePreviousSelection) |
{ |
- if (!restorePreviousSelection || !hasCachedSelection()) { |
- // If this is the first focus, set a caret at the beginning of the text. |
- // This matches some browsers' behavior; see bug 11746 Comment #15. |
- // http://bugs.webkit.org/show_bug.cgi?id=11746#c15 |
+ if (!restorePreviousSelection) |
setSelectionRange(0, 0); |
- } else |
+ else |
restoreCachedSelection(); |
if (document().frame()) |