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 3 // found in the LICENSE file. 4 5 #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_MARKERS_MARKER_TEST_UTILITIES_H_ 6 #define THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_MARKERS_MARKER_TEST_UTILITIES_H_ 7 8 #include "third_party/blink/renderer/core/editing/markers/suggestion_marker.h" 9 #include "third_party/blink/renderer/platform/heap/handle.h" 10 11 namespace blink { compare_markers(const Member<DocumentMarker> & marker1,const Member<DocumentMarker> & marker2)12inline bool compare_markers(const Member<DocumentMarker>& marker1, 13 const Member<DocumentMarker>& marker2) { 14 if (marker1->StartOffset() != marker2->StartOffset()) 15 return marker1->StartOffset() < marker2->StartOffset(); 16 17 return marker1->EndOffset() < marker2->EndOffset(); 18 } 19 } // namespace blink 20 21 #endif // THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_MARKERS_MARKER_TEST_UTILITIES_H_ 22