2006-07-13 Anders Carlsson <acarlsson@apple.com>
Reviewed by Justin.
http://bugzilla.opendarwin.org/show_bug.cgi?id=9663
REGRESSION (r14948-r14956): Selection in text field remains highlighted when the text field loses focus
* dom/Document.cpp:
(WebCore::Document::updateSelection):
Don't return early if the selection is empty.
LayoutTests:
2006-07-13 Anders Carlsson <acarlsson@apple.com>
Reviewed by Justin.
http://bugzilla.opendarwin.org/show_bug.cgi?id=9663
REGRESSION (r14948-r14956): Selection in text field remains highlighted when the text field loses focus
* editing/selection/clear-selection-expected.checksum: Added.
* editing/selection/clear-selection-expected.png: Added.
* editing/selection/clear-selection-expected.txt: Added.
* editing/selection/clear-selection.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15397
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-07-13 Anders Carlsson <acarlsson@apple.com>
+
+ Reviewed by Justin.
+
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=9663
+ REGRESSION (r14948-r14956): Selection in text field remains highlighted when the text field loses focus
+
+ * editing/selection/clear-selection-expected.checksum: Added.
+ * editing/selection/clear-selection-expected.png: Added.
+ * editing/selection/clear-selection-expected.txt: Added.
+ * editing/selection/clear-selection.html: Added.
+
2006-07-12 David Kilzer <ddkilzer@kilzer.net>
Reviewed by NOBODY (layout test fix).
--- /dev/null
+675958ca1760e67d565768737724a7ed
\ No newline at end of file
--- /dev/null
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
+layer at (0,0) size 800x600
+ RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (8,8) size 784x584
+ RenderBlock {DIV} at (0,0) size 784x36
+ RenderText {#text} at (0,0) size 755x36
+ text run at (0,0) width 755: "This tests that window.getSelection().clear() clears the selection correctly. If this test is successful, this text should not be"
+ text run at (0,18) width 54: "selected."
--- /dev/null
+<html>
+<head>
+ <script>
+ function runTest() {
+ var d = document.getElementById('d');
+ window.getSelection().setBaseAndExtent(d, 0, d, 1);
+ window.getSelection().empty();
+ }
+ </script>
+</head>
+<body onload="runTest()">
+ <div id="d">This tests that window.getSelection().clear() clears the selection correctly. If this test is successful, this text should not be selected.</div>
+<body>
+</html>
+2006-07-13 Anders Carlsson <acarlsson@apple.com>
+
+ Reviewed by Justin.
+
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=9663
+ REGRESSION (r14948-r14956): Selection in text field remains highlighted when the text field loses focus
+
+ * dom/Document.cpp:
+ (WebCore::Document::updateSelection):
+ Don't return early if the selection is empty.
+
2006-07-12 Anders Carlsson <acarlsson@apple.com>
Reviewed by Adele.
RenderView *canvas = static_cast<RenderView*>(renderer());
SelectionController s = frame()->selection();
- if (s.isNone())
- return;
if (!s.isRange())
canvas->clearSelection();