[Webkit-unassigned] [Bug 69242] Unified spell-checking and legacy spell checking should be easy to switch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 17 04:47:34 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=69242
MORITA Hajime <morrita at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #111242|review? |review-
Flag| |
--- Comment #7 from MORITA Hajime <morrita at google.com> 2011-10-17 04:47:35 PST ---
(From update of attachment 111242)
View in context: https://bugs.webkit.org/attachment.cgi?id=111242&action=review
Generally looks fine. Could you take these small cleanup?
> Source/WebCore/editing/Editor.cpp:1682
> + if (unifiedTextCheckerEnabled(m_frame)) {
Could you wrap this conditional as a Editor method?
> Source/WebCore/editing/Editor.cpp:2040
> + }
Why not simply ASSERT(unifiedTextCheckerEnabled(m_frame)) ?
> Source/WebCore/editing/Editor.cpp:2239
> + }
Ditto.
> Source/WebCore/editing/TextCheckingHelper.cpp:230
> + if (!m_range || !unifiedTextCheckerEnabled(m_range->ownerDocument()->frame()))
Could you extract this criteria as a method of TextCheckingHelper?
> Source/WebCore/editing/TextCheckingHelper.cpp:509
> + if (!m_range || !unifiedTextCheckerEnabled(m_range->ownerDocument()->frame()))
Ditto.
> Source/WebCore/editing/TextCheckingHelper.h:30
> +class Settings;
It looks we don't need this.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list