blob: 0fc37f462c84864a7e0eb96bd0610a8c81d39384 [file] [log] [blame]
// Copyright 2018 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 "core/editing/NGFlatTreeShorthands.h"
#include "core/editing/Position.h"
#include "core/layout/ng/inline/ng_offset_mapping.h"
namespace blink {
const LayoutBlockFlow* NGInlineFormattingContextOf(
const PositionInFlatTree& position) {
return NGInlineFormattingContextOf(ToPositionInDOMTree(position));
}
} // namespace blink