Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: third_party/WebKit/Source/core/editing/Editor.cpp

Issue 1756763002: 2016-03-02T18:53:01 LayoutPosition Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-04-25T19:02:18 Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/DOMSelection.cpp ('k') | third_party/WebKit/Source/core/editing/LayoutPosition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698