| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1209 | 1209 |
| 1210 return resultRange->collapsed(ASSERT_NO_EXCEPTION) ? nullptr : resultRange.r
elease(); | 1210 return resultRange->collapsed(ASSERT_NO_EXCEPTION) ? nullptr : resultRange.r
elease(); |
| 1211 } | 1211 } |
| 1212 | 1212 |
| 1213 void Editor::setMarkedTextMatchesAreHighlighted(bool flag) | 1213 void Editor::setMarkedTextMatchesAreHighlighted(bool flag) |
| 1214 { | 1214 { |
| 1215 if (flag == m_areMarkedTextMatchesHighlighted) | 1215 if (flag == m_areMarkedTextMatchesHighlighted) |
| 1216 return; | 1216 return; |
| 1217 | 1217 |
| 1218 m_areMarkedTextMatchesHighlighted = flag; | 1218 m_areMarkedTextMatchesHighlighted = flag; |
| 1219 m_frame.document()->markers()->repaintMarkers(DocumentMarker::TextMatch); | 1219 m_frame.document()->markers().repaintMarkers(DocumentMarker::TextMatch); |
| 1220 } | 1220 } |
| 1221 | 1221 |
| 1222 void Editor::respondToChangedSelection(const VisibleSelection& oldSelection, Fra
meSelection::SetSelectionOptions options) | 1222 void Editor::respondToChangedSelection(const VisibleSelection& oldSelection, Fra
meSelection::SetSelectionOptions options) |
| 1223 { | 1223 { |
| 1224 spellChecker().respondToChangedSelection(oldSelection, options); | 1224 spellChecker().respondToChangedSelection(oldSelection, options); |
| 1225 m_frame.inputMethodController().cancelCompositionIfSelectionIsInvalid(); | 1225 m_frame.inputMethodController().cancelCompositionIfSelectionIsInvalid(); |
| 1226 notifyComponentsOnChangedSelection(oldSelection, options); | 1226 notifyComponentsOnChangedSelection(oldSelection, options); |
| 1227 } | 1227 } |
| 1228 | 1228 |
| 1229 SpellChecker& Editor::spellChecker() const | 1229 SpellChecker& Editor::spellChecker() const |
| 1230 { | 1230 { |
| 1231 return m_frame.spellChecker(); | 1231 return m_frame.spellChecker(); |
| 1232 } | 1232 } |
| 1233 | 1233 |
| 1234 void Editor::toggleOverwriteModeEnabled() | 1234 void Editor::toggleOverwriteModeEnabled() |
| 1235 { | 1235 { |
| 1236 m_overwriteModeEnabled = !m_overwriteModeEnabled; | 1236 m_overwriteModeEnabled = !m_overwriteModeEnabled; |
| 1237 frame().selection().setShouldShowBlockCursor(m_overwriteModeEnabled); | 1237 frame().selection().setShouldShowBlockCursor(m_overwriteModeEnabled); |
| 1238 } | 1238 } |
| 1239 | 1239 |
| 1240 } // namespace WebCore | 1240 } // namespace WebCore |
| OLD | NEW |