| 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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 return false; | 818 return false; |
| 819 MarkerList::iterator startPos = | 819 MarkerList::iterator startPos = |
| 820 std::upper_bound(list->begin(), list->end(), startOffset, endsBefore); | 820 std::upper_bound(list->begin(), list->end(), startOffset, endsBefore); |
| 821 for (MarkerList::iterator marker = startPos; marker != list->end(); | 821 for (MarkerList::iterator marker = startPos; marker != list->end(); |
| 822 ++marker) { | 822 ++marker) { |
| 823 // Markers are returned in order, so stop if we are now past the specified | 823 // Markers are returned in order, so stop if we are now past the specified |
| 824 // range. | 824 // range. |
| 825 if ((*marker)->startOffset() >= endOffset) | 825 if ((*marker)->startOffset() >= endOffset) |
| 826 break; | 826 break; |
| 827 | 827 |
| 828 (*marker)->setActiveMatch(active); | 828 (*marker)->setIsActiveMatch(active); |
| 829 docDirty = true; | 829 docDirty = true; |
| 830 } | 830 } |
| 831 | 831 |
| 832 // repaint the affected node | 832 // repaint the affected node |
| 833 if (docDirty && node->layoutObject()) { | 833 if (docDirty && node->layoutObject()) { |
| 834 node->layoutObject()->setShouldDoFullPaintInvalidation( | 834 node->layoutObject()->setShouldDoFullPaintInvalidation( |
| 835 PaintInvalidationDocumentMarkerChange); | 835 PaintInvalidationDocumentMarkerChange); |
| 836 } | 836 } |
| 837 return docDirty; | 837 return docDirty; |
| 838 } | 838 } |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 } | 883 } |
| 884 | 884 |
| 885 } // namespace blink | 885 } // namespace blink |
| 886 | 886 |
| 887 #ifndef NDEBUG | 887 #ifndef NDEBUG |
| 888 void showDocumentMarkers(const blink::DocumentMarkerController* controller) { | 888 void showDocumentMarkers(const blink::DocumentMarkerController* controller) { |
| 889 if (controller) | 889 if (controller) |
| 890 controller->showMarkers(); | 890 controller->showMarkers(); |
| 891 } | 891 } |
| 892 #endif | 892 #endif |
| OLD | NEW |