blob: 6fe2aff8601b9386e1a1a81e05d2f2c99582f018 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_MARKERS_MARKER_TEST_UTILITIES_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_MARKERS_MARKER_TEST_UTILITIES_H_
#include "third_party/blink/renderer/core/editing/markers/suggestion_marker.h"
#include "third_party/blink/renderer/platform/heap/handle.h"
namespace blink {
inline bool compare_markers(const Member<DocumentMarker>& marker1,
const Member<DocumentMarker>& marker2) {
if (marker1->StartOffset() != marker2->StartOffset())
return marker1->StartOffset() < marker2->StartOffset();
return marker1->EndOffset() < marker2->EndOffset();
}
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_EDITING_MARKERS_MARKER_TEST_UTILITIES_H_