| OLD | NEW |
| 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 } | 479 } |
| 480 } | 480 } |
| 481 } | 481 } |
| 482 | 482 |
| 483 DEFINE_TRACE(DocumentMarkerController) { | 483 DEFINE_TRACE(DocumentMarkerController) { |
| 484 visitor->Trace(markers_); | 484 visitor->Trace(markers_); |
| 485 visitor->Trace(document_); | 485 visitor->Trace(document_); |
| 486 SynchronousMutationObserver::Trace(visitor); | 486 SynchronousMutationObserver::Trace(visitor); |
| 487 } | 487 } |
| 488 | 488 |
| 489 void DocumentMarkerController::RemoveMarkers( | 489 void DocumentMarkerController::RemoveMarkersForNode( |
| 490 Node* node, | 490 Node* node, |
| 491 DocumentMarker::MarkerTypes marker_types) { | 491 DocumentMarker::MarkerTypes marker_types) { |
| 492 if (!PossiblyHasMarkers(marker_types)) | 492 if (!PossiblyHasMarkers(marker_types)) |
| 493 return; | 493 return; |
| 494 DCHECK(!markers_.IsEmpty()); | 494 DCHECK(!markers_.IsEmpty()); |
| 495 | 495 |
| 496 MarkerMap::iterator iterator = markers_.Find(node); | 496 MarkerMap::iterator iterator = markers_.Find(node); |
| 497 if (iterator != markers_.end()) | 497 if (iterator != markers_.end()) |
| 498 RemoveMarkersFromList(iterator, marker_types); | 498 RemoveMarkersFromList(iterator, marker_types); |
| 499 } | 499 } |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 } | 745 } |
| 746 | 746 |
| 747 } // namespace blink | 747 } // namespace blink |
| 748 | 748 |
| 749 #ifndef NDEBUG | 749 #ifndef NDEBUG |
| 750 void showDocumentMarkers(const blink::DocumentMarkerController* controller) { | 750 void showDocumentMarkers(const blink::DocumentMarkerController* controller) { |
| 751 if (controller) | 751 if (controller) |
| 752 controller->ShowMarkers(); | 752 controller->ShowMarkers(); |
| 753 } | 753 } |
| 754 #endif | 754 #endif |
| OLD | NEW |