#include "third_party/blink/renderer/core/editing/commands/format_block_command.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/dom/range.h"
#include "third_party/blink/renderer/core/editing/commands/editing_commands_utilities.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/position.h"
#include "third_party/blink/renderer/core/editing/visible_position.h"
#include "third_party/blink/renderer/core/editing/visible_units.h"
#include "third_party/blink/renderer/core/html/html_body_element.h"
#include "third_party/blink/renderer/core/html/html_br_element.h"
#include "third_party/blink/renderer/core/html/html_element.h"
#include "third_party/blink/renderer/core/html_names.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
namespace blink {
static Node* EnclosingBlockToSplitTreeTo(Node* start_node);
static bool IsElementForFormatBlock(const QualifiedName& tag_name);
static inline bool IsElementForFormatBlock(Node* node) { … }
static Element* EnclosingBlockFlowElement(
const VisiblePosition& visible_position) { … }
FormatBlockCommand::FormatBlockCommand(Document& document,
const QualifiedName& tag_name)
: … { … }
void FormatBlockCommand::FormatSelection(
const VisiblePosition& start_of_selection,
const VisiblePosition& end_of_selection,
EditingState* editing_state) { … }
void FormatBlockCommand::FormatRange(
const Position& start,
const Position& end,
const Position& end_of_selection,
HTMLElement*& block_element,
VisiblePosition& out_end_of_next_of_paragraph_to_move,
EditingState* editing_state) { … }
Element* FormatBlockCommand::ElementForFormatBlockCommand(
const EphemeralRange& range) { … }
bool IsElementForFormatBlock(const QualifiedName& tag_name) { … }
Node* EnclosingBlockToSplitTreeTo(Node* start_node) { … }
}