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

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

Issue 2720663002: Revert of Implement complete lifecycle transition for IdleSpellCheckCallback (Closed)
Patch Set: Created 3 years, 9 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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after
733 return hasEditableStyle(*startContainer) && hasEditableStyle(*endContainer); 733 return hasEditableStyle(*startContainer) && hasEditableStyle(*endContainer);
734 } 734 }
735 735
736 void Editor::respondToChangedContents(const VisibleSelection& endingSelection) { 736 void Editor::respondToChangedContents(const VisibleSelection& endingSelection) {
737 if (frame().settings() && frame().settings()->getAccessibilityEnabled()) { 737 if (frame().settings() && frame().settings()->getAccessibilityEnabled()) {
738 Node* node = endingSelection.start().anchorNode(); 738 Node* node = endingSelection.start().anchorNode();
739 if (AXObjectCache* cache = frame().document()->existingAXObjectCache()) 739 if (AXObjectCache* cache = frame().document()->existingAXObjectCache())
740 cache->handleEditableTextContentChanged(node); 740 cache->handleEditableTextContentChanged(node);
741 } 741 }
742 742
743 spellChecker().respondToChangedContents(endingSelection); 743 spellChecker().updateMarkersForWordsAffectedByEditing(true);
744 client().respondToChangedContents(); 744 client().respondToChangedContents();
745 } 745 }
746 746
747 void Editor::removeFormattingAndStyle() { 747 void Editor::removeFormattingAndStyle() {
748 DCHECK(frame().document()); 748 DCHECK(frame().document());
749 RemoveFormatCommand::create(*frame().document())->apply(); 749 RemoveFormatCommand::create(*frame().document())->apply();
750 } 750 }
751 751
752 void Editor::registerCommandGroup(CompositeEditCommand* commandGroupWrapper) { 752 void Editor::registerCommandGroup(CompositeEditCommand* commandGroupWrapper) {
753 DCHECK(commandGroupWrapper->isCommandGroupWrapper()); 753 DCHECK(commandGroupWrapper->isCommandGroupWrapper());
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1763 1763
1764 DEFINE_TRACE(Editor) { 1764 DEFINE_TRACE(Editor) {
1765 visitor->trace(m_frame); 1765 visitor->trace(m_frame);
1766 visitor->trace(m_lastEditCommand); 1766 visitor->trace(m_lastEditCommand);
1767 visitor->trace(m_undoStack); 1767 visitor->trace(m_undoStack);
1768 visitor->trace(m_mark); 1768 visitor->trace(m_mark);
1769 visitor->trace(m_typingStyle); 1769 visitor->trace(m_typingStyle);
1770 } 1770 }
1771 1771
1772 } // namespace blink 1772 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698