Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: Source/core/dom/DocumentMarkerController.h

Issue 1141403003: [S.P.] Expand cull-rect for text boxes with selection bounds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use localSelectionRect. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/paint/InlineTextBoxPainter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void removeMarkers(const Position& start, const Position& end, DocumentMarke r::MarkerTypes = DocumentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerO rNot = DoNotRemovePartiallyOverlappingMarker); 76 void removeMarkers(const Position& start, const Position& end, DocumentMarke r::MarkerTypes = DocumentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerO rNot = DoNotRemovePartiallyOverlappingMarker);
77 void removeMarkers(Node*, unsigned startOffset, int length, DocumentMarker:: MarkerTypes = DocumentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerOrN ot = DoNotRemovePartiallyOverlappingMarker); 77 void removeMarkers(Node*, unsigned startOffset, int length, DocumentMarker:: MarkerTypes = DocumentMarker::AllMarkers(), RemovePartiallyOverlappingMarkerOrN ot = DoNotRemovePartiallyOverlappingMarker);
78 78
79 void removeMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers( )); 79 void removeMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers( ));
80 void removeMarkers(Node*, DocumentMarker::MarkerTypes = DocumentMarker::AllM arkers()); 80 void removeMarkers(Node*, DocumentMarker::MarkerTypes = DocumentMarker::AllM arkers());
81 void removeMarkers(const MarkerRemoverPredicate& shouldRemoveMarker); 81 void removeMarkers(const MarkerRemoverPredicate& shouldRemoveMarker);
82 void repaintMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers ()); 82 void repaintMarkers(DocumentMarker::MarkerTypes = DocumentMarker::AllMarkers ());
83 void shiftMarkers(Node*, unsigned startOffset, int delta); 83 void shiftMarkers(Node*, unsigned startOffset, int delta);
84 void setMarkersActive(Range*, bool); 84 void setMarkersActive(Range*, bool);
85 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool) ; 85 void setMarkersActive(Node*, unsigned startOffset, unsigned endOffset, bool) ;
86 bool hasMarkers(Node* node) const { return m_markers.contains(node); }
86 87
87 DocumentMarker* markerContainingPoint(const LayoutPoint&, DocumentMarker::Ma rkerType); 88 DocumentMarker* markerContainingPoint(const LayoutPoint&, DocumentMarker::Ma rkerType);
88 DocumentMarkerVector markersFor(Node*, DocumentMarker::MarkerTypes = Documen tMarker::AllMarkers()); 89 DocumentMarkerVector markersFor(Node*, DocumentMarker::MarkerTypes = Documen tMarker::AllMarkers());
89 DocumentMarkerVector markersInRange(Range*, DocumentMarker::MarkerTypes); 90 DocumentMarkerVector markersInRange(Range*, DocumentMarker::MarkerTypes);
90 DocumentMarkerVector markers(); 91 DocumentMarkerVector markers();
91 Vector<IntRect> renderedRectsForMarkers(DocumentMarker::MarkerType); 92 Vector<IntRect> renderedRectsForMarkers(DocumentMarker::MarkerType);
92 void updateRenderedRectsForMarkers(); 93 void updateRenderedRectsForMarkers();
93 94
94 DECLARE_TRACE(); 95 DECLARE_TRACE();
95 96
(...skipping 17 matching lines...) Expand all
113 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes; 114 DocumentMarker::MarkerTypes m_possiblyExistingMarkerTypes;
114 }; 115 };
115 116
116 } // namespace blink 117 } // namespace blink
117 118
118 #ifndef NDEBUG 119 #ifndef NDEBUG
119 void showDocumentMarkers(const blink::DocumentMarkerController*); 120 void showDocumentMarkers(const blink::DocumentMarkerController*);
120 #endif 121 #endif
121 122
122 #endif // DocumentMarkerController_h 123 #endif // DocumentMarkerController_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/paint/InlineTextBoxPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698