Title: [150425] trunk/Source/WebCore
Revision
150425
Author
[email protected]
Date
2013-05-21 00:39:20 -0700 (Tue, 21 May 2013)

Log Message

REGRESSION(r150393): editing/inserting/typing-at-end-of-line.html fails
https://bugs.webkit.org/show_bug.cgi?id=116516

Reviewed by Antti Koivisto.

The bug was caused by DRT not resetting various auto correction states.
Do that in Internals::resetToConsistentState.

* testing/Internals.cpp:
(WebCore::Internals::resetToConsistentState):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (150424 => 150425)


--- trunk/Source/WebCore/ChangeLog	2013-05-21 07:00:51 UTC (rev 150424)
+++ trunk/Source/WebCore/ChangeLog	2013-05-21 07:39:20 UTC (rev 150425)
@@ -1,3 +1,16 @@
+2013-05-21  Ryosuke Niwa  <[email protected]>
+
+        REGRESSION(r150393): editing/inserting/typing-at-end-of-line.html fails
+        https://bugs.webkit.org/show_bug.cgi?id=116516
+
+        Reviewed by Antti Koivisto.
+
+        The bug was caused by DRT not resetting various auto correction states.
+        Do that in Internals::resetToConsistentState.
+
+        * testing/Internals.cpp:
+        (WebCore::Internals::resetToConsistentState):
+
 2013-05-20  Zan Dobersek  <[email protected]>
 
         [GTK] Fix concatenations of string literals that are not C++11-compliant

Modified: trunk/Source/WebCore/testing/Internals.cpp (150424 => 150425)


--- trunk/Source/WebCore/testing/Internals.cpp	2013-05-21 07:00:51 UTC (rev 150424)
+++ trunk/Source/WebCore/testing/Internals.cpp	2013-05-21 07:39:20 UTC (rev 150425)
@@ -285,6 +285,20 @@
 #endif
     if (!page->mainFrame()->editor().isContinuousSpellCheckingEnabled())
         page->mainFrame()->editor().toggleContinuousSpellChecking();
+
+#if USE(AUTOMATIC_TEXT_REPLACEMENT)
+    if (page->mainFrame()->editor().isAutomaticQuoteSubstitutionEnabled())
+        page->mainFrame()->editor().toggleAutomaticQuoteSubstitution();
+    if (page->mainFrame()->editor().isAutomaticLinkDetectionEnabled())
+        page->mainFrame()->editor().toggleAutomaticLinkDetection();
+    if (page->mainFrame()->editor().isAutomaticDashSubstitutionEnabled())
+        page->mainFrame()->editor().toggleAutomaticDashSubstitution();
+    if (page->mainFrame()->editor().isAutomaticTextReplacementEnabled())
+        page->mainFrame()->editor().toggleAutomaticTextReplacement();
+    if (!page->mainFrame()->editor().isAutomaticSpellingCorrectionEnabled())
+        page->mainFrame()->editor().toggleAutomaticSpellingCorrection();
+#endif
+
     if (page->mainFrame()->editor().isOverwriteModeEnabled())
         page->mainFrame()->editor().toggleOverwriteModeEnabled();
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to