#include "third_party/blink/renderer/core/layout/inline/paragraph_line_breaker.h"
#include <numeric>
#include "third_party/blink/renderer/core/layout/inline/inline_break_token.h"
#include "third_party/blink/renderer/core/layout/inline/inline_node.h"
#include "third_party/blink/renderer/core/layout/inline/line_breaker.h"
#include "third_party/blink/renderer/core/layout/inline/line_info.h"
#include "third_party/blink/renderer/core/layout/inline/score_line_break_context.h"
#include "third_party/blink/renderer/platform/fonts/shaping/shape_result_view.h"
namespace blink {
namespace {
struct LineBreakResult { … };
struct LineBreakResults { … };
wtf_size_t EstimateNumLines(const String& text_content,
const SimpleFontData* font,
LayoutUnit available_width) { … }
}
std::optional<LayoutUnit> ParagraphLineBreaker::AttemptParagraphBalancing(
const InlineNode& node,
const ConstraintSpace& space,
const LineLayoutOpportunity& line_opportunity) { … }
}