From e23ea7d2fe16738b78bb2531a7ff63c930f514a5 Mon Sep 17 00:00:00 2001 From: "rniwa@webkit.org" Date: Tue, 21 May 2013 20:42:32 +0000 Subject: [PATCH] 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). Patch by Commit Queue 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 | 11 +++++++++++ Source/WebCore/testing/Internals.cpp | 14 -------------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog index 5b275ba17ce3..a5ebd262d089 100644 --- a/Source/WebCore/ChangeLog +++ b/Source/WebCore/ChangeLog @@ -1,3 +1,14 @@ +2013-05-21 Commit Queue + + 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 dispatchEvent call can execute javascript and blow away endRoot from underneath diff --git a/Source/WebCore/testing/Internals.cpp b/Source/WebCore/testing/Internals.cpp index 0410c681a10b..a6254c4fb16c 100644 --- a/Source/WebCore/testing/Internals.cpp +++ b/Source/WebCore/testing/Internals.cpp @@ -285,20 +285,6 @@ void Internals::resetToConsistentState(Page* page) #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(); } -- 2.36.0