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

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

Issue 2781213002: Remove useless SpellChecker::clearMisspellingsForMovingParagraphs() (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 } 1487 }
1488 1488
1489 // FIXME (5098931): We should add a new insert action 1489 // FIXME (5098931): We should add a new insert action
1490 // "WebViewInsertActionMoved" and call shouldInsertFragment here. 1490 // "WebViewInsertActionMoved" and call shouldInsertFragment here.
1491 1491
1492 DCHECK(!document().needsLayoutTreeUpdate()); 1492 DCHECK(!document().needsLayoutTreeUpdate());
1493 1493
1494 const SelectionInDOMTree& selectionToDelete = 1494 const SelectionInDOMTree& selectionToDelete =
1495 SelectionInDOMTree::Builder().collapse(start).extend(end).build(); 1495 SelectionInDOMTree::Builder().collapse(start).extend(end).build();
1496 setEndingSelection(selectionToDelete); 1496 setEndingSelection(selectionToDelete);
1497 document().frame()->spellChecker().clearMisspellingsForMovingParagraphs(
1498 selectionToDelete);
1499 deleteSelection(editingState, false, false, false); 1497 deleteSelection(editingState, false, false, false);
1500 if (editingState->isAborted()) 1498 if (editingState->isAborted())
1501 return; 1499 return;
1502 1500
1503 DCHECK(destination.deepEquivalent().isConnected()) << destination; 1501 DCHECK(destination.deepEquivalent().isConnected()) << destination;
1504 cleanupAfterDeletion(editingState, destination); 1502 cleanupAfterDeletion(editingState, destination);
1505 if (editingState->isAborted()) 1503 if (editingState->isAborted())
1506 return; 1504 return;
1507 DCHECK(destination.deepEquivalent().isConnected()) << destination; 1505 DCHECK(destination.deepEquivalent().isConnected()) << destination;
1508 1506
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1998 1996
1999 DEFINE_TRACE(CompositeEditCommand) { 1997 DEFINE_TRACE(CompositeEditCommand) {
2000 visitor->trace(m_commands); 1998 visitor->trace(m_commands);
2001 visitor->trace(m_startingSelection); 1999 visitor->trace(m_startingSelection);
2002 visitor->trace(m_endingSelection); 2000 visitor->trace(m_endingSelection);
2003 visitor->trace(m_undoStep); 2001 visitor->trace(m_undoStep);
2004 EditCommand::trace(visitor); 2002 EditCommand::trace(visitor);
2005 } 2003 }
2006 2004
2007 } // namespace blink 2005 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698