| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 // When a marker partially overlaps with range, if removePartiallyOverlappin
gMarkers is true, we completely | 71 // When a marker partially overlaps with range, if removePartiallyOverlappin
gMarkers is true, we completely |
| 72 // remove the marker. If the argument is false, we will adjust the span of t
he marker so that it retains | 72 // remove the marker. If the argument is false, we will adjust the span of t
he marker so that it retains |
| 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(Range*, DocumentMarker::MarkerTypes = DocumentMarker::All
Markers(), RemovePartiallyOverlappingMarkerOrNot = DoNotRemovePartiallyOverlappi
ngMarker); | 75 void removeMarkers(Range*, DocumentMarker::MarkerTypes = DocumentMarker::All
Markers(), RemovePartiallyOverlappingMarkerOrNot = DoNotRemovePartiallyOverlappi
ngMarker); |
| 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
()); | |
| 82 void invalidateRenderedRectsForMarkersInRect(const LayoutRect&); | 81 void invalidateRenderedRectsForMarkersInRect(const LayoutRect&); |
| 83 void shiftMarkers(Node*, unsigned startOffset, int delta); | 82 void shiftMarkers(Node*, unsigned startOffset, int delta); |
| 84 void setMarkersActive(Range*, bool); | 83 void setMarkersActive(Range*, bool); |
| 85 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool)
; | 84 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool)
; |
| 86 | 85 |
| 87 DocumentMarker* markerContainingPoint(const LayoutPoint&, DocumentMarker::Ma
rkerType); | 86 DocumentMarker* markerContainingPoint(const LayoutPoint&, DocumentMarker::Ma
rkerType); |
| 88 DocumentMarkerVector markersFor(Node*, DocumentMarker::MarkerTypes = Documen
tMarker::AllMarkers()); | 87 DocumentMarkerVector markersFor(Node*, DocumentMarker::MarkerTypes = Documen
tMarker::AllMarkers()); |
| 89 DocumentMarkerVector markersInRange(Range*, DocumentMarker::MarkerTypes); | 88 DocumentMarkerVector markersInRange(Range*, DocumentMarker::MarkerTypes); |
| 90 DocumentMarkerVector markers(); | 89 DocumentMarkerVector markers(); |
| 91 Vector<IntRect> renderedRectsForMarkers(DocumentMarker::MarkerType); | 90 Vector<IntRect> renderedRectsForMarkers(DocumentMarker::MarkerType); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 109 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; | 108 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; |
| 110 }; | 109 }; |
| 111 | 110 |
| 112 } // namespace blink | 111 } // namespace blink |
| 113 | 112 |
| 114 #ifndef NDEBUG | 113 #ifndef NDEBUG |
| 115 void showDocumentMarkers(const blink::DocumentMarkerController*); | 114 void showDocumentMarkers(const blink::DocumentMarkerController*); |
| 116 #endif | 115 #endif |
| 117 | 116 |
| 118 #endif // SKY_ENGINE_CORE_DOM_DOCUMENTMARKERCONTROLLER_H_ | 117 #endif // SKY_ENGINE_CORE_DOM_DOCUMENTMARKERCONTROLLER_H_ |
| OLD | NEW |