Unreviewed, rolling out r150425.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 May 2013 20:42:32 +0000 (20:42 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 May 2013 20:42:32 +0000 (20:42 +0000)
http://trac.webkit.org/changeset/150425
https://bugs.webkit.org/show_bug.cgi?id=116573

Not the right fix for WebKit2 (Requested by rniwa on #webkit).

Patch by Commit Queue <commit-queue@webkit.org> on 2013-05-21

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

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@150475 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/testing/Internals.cpp

index 5b275ba17ce3cde200d46dff317f98e2a383c798..a5ebd262d0892dbfa9746adb83ef72b2618964e8 100644 (file)
@@ -1,3 +1,14 @@
+2013-05-21  Commit Queue  <commit-queue@webkit.org>
+
+        Unreviewed, rolling out r150425.
+        http://trac.webkit.org/changeset/150425
+        https://bugs.webkit.org/show_bug.cgi?id=116573
+
+        Not the right fix for WebKit2 (Requested by rniwa on #webkit).
+
+        * testing/Internals.cpp:
+        (WebCore::Internals::resetToConsistentState):
+
 2013-05-20  Ryosuke Niwa  <rniwa@webkit.org>
 
         dispatchEvent call can execute javascript and blow away endRoot from underneath
 2013-05-20  Ryosuke Niwa  <rniwa@webkit.org>
 
         dispatchEvent call can execute javascript and blow away endRoot from underneath
index 0410c681a10b734536a6487856989e7750026508..a6254c4fb16c9fd986a5d4885a47d1a360191386 100644 (file)
@@ -285,20 +285,6 @@ void Internals::resetToConsistentState(Page* page)
 #endif
     if (!page->mainFrame()->editor().isContinuousSpellCheckingEnabled())
         page->mainFrame()->editor().toggleContinuousSpellChecking();
 #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();
 }
     if (page->mainFrame()->editor().isOverwriteModeEnabled())
         page->mainFrame()->editor().toggleOverwriteModeEnabled();
 }