| 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
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
| 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
| 8 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 8 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 // the portion that is outside of the range. | 73 // the portion that is outside of the range. |
| 74 enum RemovePartiallyOverlappingMarkerOrNot { DoNotRemovePartiallyOverlapping
Marker, RemovePartiallyOverlappingMarker }; | 74 enum RemovePartiallyOverlappingMarkerOrNot { DoNotRemovePartiallyOverlapping
Marker, RemovePartiallyOverlappingMarker }; |
| 75 void removeMarkers(const EphemeralRange&, DocumentMarker::MarkerTypes = Docu
mentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerOrNot = DoNotRemovePar
tiallyOverlappingMarker); | 75 void removeMarkers(const EphemeralRange&, DocumentMarker::MarkerTypes = Docu
mentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerOrNot = DoNotRemovePar
tiallyOverlappingMarker); |
| 76 void removeMarkers(Node*, unsigned startOffset, int length, DocumentMarker::
MarkerTypes = DocumentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerOrN
ot = DoNotRemovePartiallyOverlappingMarker); | 76 void removeMarkers(Node*, unsigned startOffset, int length, DocumentMarker::
MarkerTypes = DocumentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerOrN
ot = DoNotRemovePartiallyOverlappingMarker); |
| 77 | 77 |
| 78 void removeMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers(
)); | 78 void removeMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers(
)); |
| 79 void removeMarkers(Node*, DocumentMarker::MarkerTypes = DocumentMarker::AllM
arkers()); | 79 void removeMarkers(Node*, DocumentMarker::MarkerTypes = DocumentMarker::AllM
arkers()); |
| 80 void removeMarkers(const MarkerRemoverPredicate& shouldRemoveMarker); | 80 void removeMarkers(const MarkerRemoverPredicate& shouldRemoveMarker); |
| 81 void repaintMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers
()); | 81 void repaintMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers
()); |
| 82 void shiftMarkers(Node*, unsigned startOffset, int delta); | 82 void shiftMarkers(Node*, unsigned startOffset, int delta); |
| 83 void setMarkersActive(Range*, bool); | 83 // Returns true if markers within a range are found. |
| 84 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool)
; | 84 bool setMarkersActive(Range*, bool); |
| 85 // Returns true if markers within a range defined by a node, |startOffset| a
nd |endOffset| are found. |
| 86 bool setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool)
; |
| 85 bool hasMarkers(Node* node) const { return m_markers.contains(node); } | 87 bool hasMarkers(Node* node) const { return m_markers.contains(node); } |
| 86 | 88 |
| 87 DocumentMarker* markerContainingPoint(const LayoutPoint&, DocumentMarker::Ma
rkerType); | 89 DocumentMarker* markerContainingPoint(const LayoutPoint&, DocumentMarker::Ma
rkerType); |
| 88 DocumentMarkerVector markersFor(Node*, DocumentMarker::MarkerTypes = Documen
tMarker::AllMarkers()); | 90 DocumentMarkerVector markersFor(Node*, DocumentMarker::MarkerTypes = Documen
tMarker::AllMarkers()); |
| 89 DocumentMarkerVector markersInRange(const EphemeralRange&, DocumentMarker::M
arkerTypes); | 91 DocumentMarkerVector markersInRange(const EphemeralRange&, DocumentMarker::M
arkerTypes); |
| 90 DocumentMarkerVector markers(); | 92 DocumentMarkerVector markers(); |
| 91 Vector<IntRect> renderedRectsForMarkers(DocumentMarker::MarkerType); | 93 Vector<IntRect> renderedRectsForMarkers(DocumentMarker::MarkerType); |
| 92 void updateRenderedRectsForMarkers(); | 94 void updateRenderedRectsForMarkers(); |
| 93 | 95 |
| 94 DECLARE_TRACE(); | 96 DECLARE_TRACE(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 113 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; | 115 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; |
| 114 }; | 116 }; |
| 115 | 117 |
| 116 } // namespace blink | 118 } // namespace blink |
| 117 | 119 |
| 118 #ifndef NDEBUG | 120 #ifndef NDEBUG |
| 119 void showDocumentMarkers(const blink::DocumentMarkerController*); | 121 void showDocumentMarkers(const blink::DocumentMarkerController*); |
| 120 #endif | 122 #endif |
| 121 | 123 |
| 122 #endif // DocumentMarkerController_h | 124 #endif // DocumentMarkerController_h |
| OLD | NEW |