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

Side by Side Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.h

Issue 2952953002: [MarkersIntersectingRange #1] Add DocumentMarkerList::MarkersIntersectingRange() (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DocumentMarkerListEditor_h 5 #ifndef DocumentMarkerListEditor_h
6 #define DocumentMarkerListEditor_h 6 #define DocumentMarkerListEditor_h
7 7
8 #include "core/editing/markers/DocumentMarkerList.h" 8 #include "core/editing/markers/DocumentMarkerList.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 10
(...skipping 27 matching lines...) Expand all
38 static bool ShiftMarkersContentDependent(MarkerList*, 38 static bool ShiftMarkersContentDependent(MarkerList*,
39 unsigned offset, 39 unsigned offset,
40 unsigned old_length, 40 unsigned old_length,
41 unsigned new_length); 41 unsigned new_length);
42 42
43 // Returns true if a marker was shifted or removed, false otherwise. 43 // Returns true if a marker was shifted or removed, false otherwise.
44 static bool ShiftMarkersContentIndependent(MarkerList*, 44 static bool ShiftMarkersContentIndependent(MarkerList*,
45 unsigned offset, 45 unsigned offset,
46 unsigned old_length, 46 unsigned old_length,
47 unsigned new_length); 47 unsigned new_length);
48
49 static HeapVector<Member<DocumentMarker>> MarkersIntersectingRange(
rlanday 2017/06/22 01:59:37 This isn't actually an editing method, but I wasn'
yosin_UTC9 2017/06/22 02:28:20 I think "Editor" is better than "Utils", actually
Xiaocheng 2017/06/22 03:06:06 I'm a little skeptical about this function returni
50 const MarkerList&,
51 unsigned start_offset,
52 unsigned end_offset);
48 }; 53 };
49 54
50 } // namespace blink 55 } // namespace blink
51 56
52 #endif // DocumentMarkerListEditor_h 57 #endif // DocumentMarkerListEditor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698