| 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 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1300 { | 1300 { |
| 1301 if (flag == m_areMarkedTextMatchesHighlighted) | 1301 if (flag == m_areMarkedTextMatchesHighlighted) |
| 1302 return; | 1302 return; |
| 1303 | 1303 |
| 1304 m_areMarkedTextMatchesHighlighted = flag; | 1304 m_areMarkedTextMatchesHighlighted = flag; |
| 1305 frame().document()->markers().repaintMarkers(DocumentMarker::TextMatch); | 1305 frame().document()->markers().repaintMarkers(DocumentMarker::TextMatch); |
| 1306 } | 1306 } |
| 1307 | 1307 |
| 1308 void Editor::respondToChangedSelection(const VisibleSelection& oldSelection, Fra
meSelection::SetSelectionOptions options) | 1308 void Editor::respondToChangedSelection(const VisibleSelection& oldSelection, Fra
meSelection::SetSelectionOptions options) |
| 1309 { | 1309 { |
| 1310 if (!frame().document()->isActive()) |
| 1311 return; |
| 1310 spellChecker().respondToChangedSelection(oldSelection, options); | 1312 spellChecker().respondToChangedSelection(oldSelection, options); |
| 1311 frame().inputMethodController().cancelCompositionIfSelectionIsInvalid(); | 1313 frame().inputMethodController().cancelCompositionIfSelectionIsInvalid(); |
| 1312 notifyComponentsOnChangedSelection(oldSelection, options); | 1314 notifyComponentsOnChangedSelection(oldSelection, options); |
| 1313 } | 1315 } |
| 1314 | 1316 |
| 1315 SpellChecker& Editor::spellChecker() const | 1317 SpellChecker& Editor::spellChecker() const |
| 1316 { | 1318 { |
| 1317 return frame().spellChecker(); | 1319 return frame().spellChecker(); |
| 1318 } | 1320 } |
| 1319 | 1321 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1367 } | 1369 } |
| 1368 | 1370 |
| 1369 DEFINE_TRACE(Editor) | 1371 DEFINE_TRACE(Editor) |
| 1370 { | 1372 { |
| 1371 visitor->trace(m_frame); | 1373 visitor->trace(m_frame); |
| 1372 visitor->trace(m_lastEditCommand); | 1374 visitor->trace(m_lastEditCommand); |
| 1373 visitor->trace(m_mark); | 1375 visitor->trace(m_mark); |
| 1374 } | 1376 } |
| 1375 | 1377 |
| 1376 } // namespace blink | 1378 } // namespace blink |
| OLD | NEW |