⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 150425 in webkit


Ignore:
Timestamp:
May 21, 2013, 12:39:20 AM (13 years ago)
Author:
rniwa@webkit.org
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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r150421 r150425  
     12013-05-21  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        REGRESSION(r150393): editing/inserting/typing-at-end-of-line.html fails
     4        https://bugs.webkit.org/show_bug.cgi?id=116516
     5
     6        Reviewed by Antti Koivisto.
     7
     8        The bug was caused by DRT not resetting various auto correction states.
     9        Do that in Internals::resetToConsistentState.
     10
     11        * testing/Internals.cpp:
     12        (WebCore::Internals::resetToConsistentState):
     13
    1142013-05-20  Zan Dobersek  <zdobersek@igalia.com>
    215
  • trunk/Source/WebCore/testing/Internals.cpp

    r150263 r150425  
    286286    if (!page->mainFrame()->editor().isContinuousSpellCheckingEnabled())
    287287        page->mainFrame()->editor().toggleContinuousSpellChecking();
     288
     289#if USE(AUTOMATIC_TEXT_REPLACEMENT)
     290    if (page->mainFrame()->editor().isAutomaticQuoteSubstitutionEnabled())
     291        page->mainFrame()->editor().toggleAutomaticQuoteSubstitution();
     292    if (page->mainFrame()->editor().isAutomaticLinkDetectionEnabled())
     293        page->mainFrame()->editor().toggleAutomaticLinkDetection();
     294    if (page->mainFrame()->editor().isAutomaticDashSubstitutionEnabled())
     295        page->mainFrame()->editor().toggleAutomaticDashSubstitution();
     296    if (page->mainFrame()->editor().isAutomaticTextReplacementEnabled())
     297        page->mainFrame()->editor().toggleAutomaticTextReplacement();
     298    if (!page->mainFrame()->editor().isAutomaticSpellingCorrectionEnabled())
     299        page->mainFrame()->editor().toggleAutomaticSpellingCorrection();
     300#endif
     301
    288302    if (page->mainFrame()->editor().isOverwriteModeEnabled())
    289303        page->mainFrame()->editor().toggleOverwriteModeEnabled();
Note: See TracChangeset for help on using the changeset viewer.