| 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 17 matching lines...) Expand all Loading... |
| 58 bool hasMarkers(Range*, DocumentMarker::MarkerTypes = DocumentMarker::AllMar
kers()); | 59 bool hasMarkers(Range*, DocumentMarker::MarkerTypes = DocumentMarker::AllMar
kers()); |
| 59 | 60 |
| 60 void prepareForDestruction(); | 61 void prepareForDestruction(); |
| 61 // When a marker partially overlaps with range, if removePartiallyOverlappin
gMarkers is true, we completely | 62 // When a marker partially overlaps with range, if removePartiallyOverlappin
gMarkers is true, we completely |
| 62 // remove the marker. If the argument is false, we will adjust the span of t
he marker so that it retains | 63 // remove the marker. If the argument is false, we will adjust the span of t
he marker so that it retains |
| 63 // the portion that is outside of the range. | 64 // the portion that is outside of the range. |
| 64 enum RemovePartiallyOverlappingMarkerOrNot { DoNotRemovePartiallyOverlapping
Marker, RemovePartiallyOverlappingMarker }; | 65 enum RemovePartiallyOverlappingMarkerOrNot { DoNotRemovePartiallyOverlapping
Marker, RemovePartiallyOverlappingMarker }; |
| 65 void removeMarkers(Range*, DocumentMarker::MarkerTypes = DocumentMarker::All
Markers(), RemovePartiallyOverlappingMarkerOrNot = DoNotRemovePartiallyOverlappi
ngMarker); | 66 void removeMarkers(Range*, DocumentMarker::MarkerTypes = DocumentMarker::All
Markers(), RemovePartiallyOverlappingMarkerOrNot = DoNotRemovePartiallyOverlappi
ngMarker); |
| 66 void removeMarkers(Node*, unsigned startOffset, int length, DocumentMarker::
MarkerTypes = DocumentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerOrN
ot = DoNotRemovePartiallyOverlappingMarker); | 67 void removeMarkers(Node*, unsigned startOffset, int length, DocumentMarker::
MarkerTypes = DocumentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerOrN
ot = DoNotRemovePartiallyOverlappingMarker); |
| 67 | 68 |
| 69 void clearWeakMembers(Visitor*); |
| 70 |
| 68 void removeMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers(
)); | 71 void removeMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers(
)); |
| 69 void removeMarkers(Node*, DocumentMarker::MarkerTypes = DocumentMarker::AllM
arkers()); | 72 void removeMarkers(Node*, DocumentMarker::MarkerTypes = DocumentMarker::AllM
arkers()); |
| 70 void repaintMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers
()); | 73 void repaintMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers
()); |
| 71 void invalidateRenderedRectsForMarkersInRect(const LayoutRect&); | 74 void invalidateRenderedRectsForMarkersInRect(const LayoutRect&); |
| 72 void shiftMarkers(Node*, unsigned startOffset, int delta); | 75 void shiftMarkers(Node*, unsigned startOffset, int delta); |
| 73 void setMarkersActive(Range*, bool); | 76 void setMarkersActive(Range*, bool); |
| 74 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool)
; | 77 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool)
; |
| 75 | 78 |
| 76 DocumentMarker* markerContainingPoint(const LayoutPoint&, DocumentMarker::Ma
rkerType); | 79 DocumentMarker* markerContainingPoint(const LayoutPoint&, DocumentMarker::Ma
rkerType); |
| 77 Vector<DocumentMarker*> markersFor(Node*, DocumentMarker::MarkerTypes = Docu
mentMarker::AllMarkers()); | 80 Vector<DocumentMarker*> markersFor(Node*, DocumentMarker::MarkerTypes = Docu
mentMarker::AllMarkers()); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 98 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; | 101 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; |
| 99 }; | 102 }; |
| 100 | 103 |
| 101 } // namespace WebCore | 104 } // namespace WebCore |
| 102 | 105 |
| 103 #ifndef NDEBUG | 106 #ifndef NDEBUG |
| 104 void showDocumentMarkers(const WebCore::DocumentMarkerController*); | 107 void showDocumentMarkers(const WebCore::DocumentMarkerController*); |
| 105 #endif | 108 #endif |
| 106 | 109 |
| 107 #endif // DocumentMarkerController_h | 110 #endif // DocumentMarkerController_h |
| OLD | NEW |