blob: 59a6f27ece890db8577f57ebfd1167cc2fd584f0 [file] [log] [blame]
// Copyright 2016 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.
#include "third_party/blink/renderer/core/editing/iterators/forwards_text_buffer.h"
namespace blink {
const UChar* ForwardsTextBuffer::Data() const {
return BufferBegin();
}
UChar* ForwardsTextBuffer::CalcDestination(wtf_size_t length) {
DCHECK_LE(Size() + length, Capacity());
return BufferBegin() + Size();
}
} // namespace blink