| 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 } | 415 } |
| 416 } | 416 } |
| 417 | 417 |
| 418 if (list->isEmpty()) { | 418 if (list->isEmpty()) { |
| 419 list.clear(); | 419 list.clear(); |
| 420 ++emptyListsCount; | 420 ++emptyListsCount; |
| 421 } | 421 } |
| 422 } | 422 } |
| 423 | 423 |
| 424 if (emptyListsCount == DocumentMarker::MarkerTypeIndexesCount) { | 424 if (emptyListsCount == DocumentMarker::MarkerTypeIndexesCount) { |
| 425 m_markers.remove(node); | 425 m_markers.erase(node); |
| 426 if (m_markers.isEmpty()) | 426 if (m_markers.isEmpty()) |
| 427 m_possiblyExistingMarkerTypes = 0; | 427 m_possiblyExistingMarkerTypes = 0; |
| 428 } | 428 } |
| 429 | 429 |
| 430 // repaint the affected node | 430 // repaint the affected node |
| 431 if (docDirty && node->layoutObject()) | 431 if (docDirty && node->layoutObject()) |
| 432 node->layoutObject()->setShouldDoFullPaintInvalidation(); | 432 node->layoutObject()->setShouldDoFullPaintInvalidation(); |
| 433 } | 433 } |
| 434 | 434 |
| 435 DocumentMarkerVector DocumentMarkerController::markersFor( | 435 DocumentMarkerVector DocumentMarkerController::markersFor( |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 859 #endif | 859 #endif |
| 860 | 860 |
| 861 } // namespace blink | 861 } // namespace blink |
| 862 | 862 |
| 863 #ifndef NDEBUG | 863 #ifndef NDEBUG |
| 864 void showDocumentMarkers(const blink::DocumentMarkerController* controller) { | 864 void showDocumentMarkers(const blink::DocumentMarkerController* controller) { |
| 865 if (controller) | 865 if (controller) |
| 866 controller->showMarkers(); | 866 controller->showMarkers(); |
| 867 } | 867 } |
| 868 #endif | 868 #endif |
| OLD | NEW |