| 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 10 matching lines...) Expand all Loading... |
| 21 * along with this library; see the file COPYING.LIB. If not, write to | 21 * along with this library; see the file COPYING.LIB. If not, write to |
| 22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 22 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 23 * Boston, MA 02110-1301, USA. | 23 * Boston, MA 02110-1301, USA. |
| 24 * | 24 * |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef DocumentMarkerController_h | 27 #ifndef DocumentMarkerController_h |
| 28 #define DocumentMarkerController_h | 28 #define DocumentMarkerController_h |
| 29 | 29 |
| 30 #include "core/dom/DocumentMarker.h" | 30 #include "core/dom/DocumentMarker.h" |
| 31 #include "heap/Handle.h" |
| 31 #include "platform/geometry/IntRect.h" | 32 #include "platform/geometry/IntRect.h" |
| 32 #include "wtf/HashMap.h" | 33 #include "wtf/HashMap.h" |
| 33 #include "wtf/Vector.h" | 34 #include "wtf/Vector.h" |
| 34 | 35 |
| 35 namespace WebCore { | 36 namespace WebCore { |
| 36 | 37 |
| 37 class ContainerNode; | 38 class ContainerNode; |
| 38 class LayoutPoint; | 39 class LayoutPoint; |
| 39 class LayoutRect; | 40 class LayoutRect; |
| 40 class Node; | 41 class Node; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 60 bool hasMarkers(Range*, DocumentMarker::MarkerTypes = DocumentMarker::AllMar
kers()); | 61 bool hasMarkers(Range*, DocumentMarker::MarkerTypes = DocumentMarker::AllMar
kers()); |
| 61 | 62 |
| 62 void prepareForDestruction(); | 63 void prepareForDestruction(); |
| 63 // When a marker partially overlaps with range, if removePartiallyOverlappin
gMarkers is true, we completely | 64 // When a marker partially overlaps with range, if removePartiallyOverlappin
gMarkers is true, we completely |
| 64 // remove the marker. If the argument is false, we will adjust the span of t
he marker so that it retains | 65 // remove the marker. If the argument is false, we will adjust the span of t
he marker so that it retains |
| 65 // the portion that is outside of the range. | 66 // the portion that is outside of the range. |
| 66 enum RemovePartiallyOverlappingMarkerOrNot { DoNotRemovePartiallyOverlapping
Marker, RemovePartiallyOverlappingMarker }; | 67 enum RemovePartiallyOverlappingMarkerOrNot { DoNotRemovePartiallyOverlapping
Marker, RemovePartiallyOverlappingMarker }; |
| 67 void removeMarkers(Range*, DocumentMarker::MarkerTypes = DocumentMarker::All
Markers(), RemovePartiallyOverlappingMarkerOrNot = DoNotRemovePartiallyOverlappi
ngMarker); | 68 void removeMarkers(Range*, DocumentMarker::MarkerTypes = DocumentMarker::All
Markers(), RemovePartiallyOverlappingMarkerOrNot = DoNotRemovePartiallyOverlappi
ngMarker); |
| 68 void removeMarkers(Node*, unsigned startOffset, int length, DocumentMarker::
MarkerTypes = DocumentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerOrN
ot = DoNotRemovePartiallyOverlappingMarker); | 69 void removeMarkers(Node*, unsigned startOffset, int length, DocumentMarker::
MarkerTypes = DocumentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerOrN
ot = DoNotRemovePartiallyOverlappingMarker); |
| 69 | 70 |
| 71 void clearWeakMembers(Visitor*); |
| 72 |
| 70 void removeMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers(
)); | 73 void removeMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers(
)); |
| 71 void removeMarkers(Node*, DocumentMarker::MarkerTypes = DocumentMarker::AllM
arkers()); | 74 void removeMarkers(Node*, DocumentMarker::MarkerTypes = DocumentMarker::AllM
arkers()); |
| 72 void repaintMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers
()); | 75 void repaintMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers
()); |
| 73 void invalidateRenderedRectsForMarkersInRect(const LayoutRect&); | 76 void invalidateRenderedRectsForMarkersInRect(const LayoutRect&); |
| 74 void shiftMarkers(Node*, unsigned startOffset, int delta); | 77 void shiftMarkers(Node*, unsigned startOffset, int delta); |
| 75 void setMarkersActive(Range*, bool); | 78 void setMarkersActive(Range*, bool); |
| 76 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool)
; | 79 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool)
; |
| 77 | 80 |
| 78 DocumentMarker* markerContainingPoint(const LayoutPoint&, DocumentMarker::Ma
rkerType); | 81 DocumentMarker* markerContainingPoint(const LayoutPoint&, DocumentMarker::Ma
rkerType); |
| 79 Vector<DocumentMarker*> markersFor(Node*, DocumentMarker::MarkerTypes = Docu
mentMarker::AllMarkers()); | 82 Vector<DocumentMarker*> markersFor(Node*, DocumentMarker::MarkerTypes = Docu
mentMarker::AllMarkers()); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 100 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; | 103 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; |
| 101 }; | 104 }; |
| 102 | 105 |
| 103 } // namespace WebCore | 106 } // namespace WebCore |
| 104 | 107 |
| 105 #ifndef NDEBUG | 108 #ifndef NDEBUG |
| 106 void showDocumentMarkers(const WebCore::DocumentMarkerController*); | 109 void showDocumentMarkers(const WebCore::DocumentMarkerController*); |
| 107 #endif | 110 #endif |
| 108 | 111 |
| 109 #endif // DocumentMarkerController_h | 112 #endif // DocumentMarkerController_h |
| OLD | NEW |