Refactor Editor::markAndReplaceFor before fixing autocorrection bugs
Created attachment 197227 [details] Cleanup
Created attachment 197230 [details] More cleanups
Comment on attachment 197230 [details] More cleanups View in context: https://bugs.webkit.org/attachment.cgi?id=197230&action=review Looks ok to me. just few nits in the change log. > Source/WebCore/ChangeLog:8 > + This patch refactors Editor::markAndReplaceFor so that we can start fixing bugs in a sane staet. Typo: state. > Source/WebCore/ChangeLog:12 > + In particular, shouldMarkSpelling used to be set false when shouldShowCorrectionPanel was true to false > Source/WebCore/ChangeLog:14 > + since shouldMarkSpelling was only referred once after the assignment. typo referenced. > Source/WebCore/editing/Editor.cpp:2265 > + bool existingMarkersPermitReplacement = m_alternativeTextController->processMarkersOnTextToBeReplacedByResult(&results[i], rangeToReplace.get(), replacedString); Can this be const as well?
Thanks for the review! Will land after fixing these nits.
Committed r148124: <http://trac.webkit.org/changeset/148124>