#include "third_party/blink/renderer/core/editing/visible_units.h"
#include "third_party/blink/renderer/core/editing/editing_utilities.h"
#include "third_party/blink/renderer/core/editing/ephemeral_range.h"
#include "third_party/blink/renderer/core/editing/visible_position.h"
#include "third_party/blink/renderer/core/layout/layout_text.h"
namespace blink {
namespace {
bool NodeIsUserSelectAll(const Node* node) { … }
template <typename Strategy>
PositionTemplate<Strategy> StartOfParagraphAlgorithm(
const PositionTemplate<Strategy>& position,
EditingBoundaryCrossingRule boundary_crossing_rule) { … }
template <typename Strategy>
VisiblePositionTemplate<Strategy> StartOfParagraphAlgorithm(
const VisiblePositionTemplate<Strategy>& visible_position,
EditingBoundaryCrossingRule boundary_crossing_rule) { … }
template <typename Strategy>
PositionTemplate<Strategy> EndOfParagraphAlgorithm(
const PositionTemplate<Strategy>& position,
EditingBoundaryCrossingRule boundary_crossing_rule) { … }
template <typename Strategy>
VisiblePositionTemplate<Strategy> EndOfParagraphAlgorithm(
const VisiblePositionTemplate<Strategy>& visible_position,
EditingBoundaryCrossingRule boundary_crossing_rule) { … }
template <typename Strategy>
bool IsStartOfParagraphAlgorithm(
const VisiblePositionTemplate<Strategy>& pos,
EditingBoundaryCrossingRule boundary_crossing_rule) { … }
template <typename Strategy>
bool IsEndOfParagraphAlgorithm(
const VisiblePositionTemplate<Strategy>& pos,
EditingBoundaryCrossingRule boundary_crossing_rule) { … }
}
VisiblePosition StartOfParagraph(
const VisiblePosition& c,
EditingBoundaryCrossingRule boundary_crossing_rule) { … }
VisiblePositionInFlatTree StartOfParagraph(
const VisiblePositionInFlatTree& c,
EditingBoundaryCrossingRule boundary_crossing_rule) { … }
VisiblePosition EndOfParagraph(
const VisiblePosition& c,
EditingBoundaryCrossingRule boundary_crossing_rule) { … }
Position EndOfParagraph(const Position& c,
EditingBoundaryCrossingRule boundary_crossing_rule) { … }
VisiblePositionInFlatTree EndOfParagraph(
const VisiblePositionInFlatTree& c,
EditingBoundaryCrossingRule boundary_crossing_rule) { … }
VisiblePosition StartOfNextParagraph(const VisiblePosition& visible_position) { … }
bool InSameParagraph(const VisiblePosition& a,
const VisiblePosition& b,
EditingBoundaryCrossingRule boundary_crossing_rule) { … }
bool IsStartOfParagraph(const VisiblePosition& pos,
EditingBoundaryCrossingRule boundary_crossing_rule) { … }
bool IsStartOfParagraph(const VisiblePositionInFlatTree& pos) { … }
bool IsEndOfParagraph(const VisiblePosition& pos,
EditingBoundaryCrossingRule boundary_crossing_rule) { … }
bool IsEndOfParagraph(const VisiblePositionInFlatTree& pos) { … }
EphemeralRange ExpandToParagraphBoundary(const EphemeralRange& range) { … }
}