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

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

Issue 2871823002: [DMC #5.7] Move DocumentMarkerList::RemoveMarkersUnderWords() to SpellCheckMarkerListImpl (Closed)
Patch Set: Rebase Created 3 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
7 * reserved. 7 * reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 for (auto& node_markers : markers_) { 497 for (auto& node_markers : markers_) {
498 const Node& node = *node_markers.key; 498 const Node& node = *node_markers.key;
499 if (!node.IsTextNode()) 499 if (!node.IsTextNode())
500 continue; 500 continue;
501 MarkerLists* markers = node_markers.value; 501 MarkerLists* markers = node_markers.value;
502 for (DocumentMarker::MarkerType type : 502 for (DocumentMarker::MarkerType type :
503 DocumentMarker::MisspellingMarkers()) { 503 DocumentMarker::MisspellingMarkers()) {
504 DocumentMarkerList* const list = ListForType(markers, type); 504 DocumentMarkerList* const list = ListForType(markers, type);
505 if (!list) 505 if (!list)
506 continue; 506 continue;
507 list->RemoveMarkersUnderWords(ToText(node).data(), words); 507 ToSpellCheckMarkerListImpl(list)->RemoveMarkersUnderWords(
508 ToText(node).data(), words);
508 } 509 }
509 } 510 }
510 } 511 }
511 512
512 void DocumentMarkerController::RemoveMarkersOfTypes( 513 void DocumentMarkerController::RemoveMarkersOfTypes(
513 DocumentMarker::MarkerTypes marker_types) { 514 DocumentMarker::MarkerTypes marker_types) {
514 if (!PossiblyHasMarkers(marker_types)) 515 if (!PossiblyHasMarkers(marker_types))
515 return; 516 return;
516 DCHECK(!markers_.IsEmpty()); 517 DCHECK(!markers_.IsEmpty());
517 518
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 } 738 }
738 739
739 } // namespace blink 740 } // namespace blink
740 741
741 #ifndef NDEBUG 742 #ifndef NDEBUG
742 void showDocumentMarkers(const blink::DocumentMarkerController* controller) { 743 void showDocumentMarkers(const blink::DocumentMarkerController* controller) {
743 if (controller) 744 if (controller)
744 controller->ShowMarkers(); 745 controller->ShowMarkers();
745 } 746 }
746 #endif 747 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698