#include "third_party/blink/renderer/core/layout/layout_text_fragment.h"
#include "third_party/blink/renderer/core/css/style_change_reason.h"
#include "third_party/blink/renderer/core/dom/dom_node_ids.h"
#include "third_party/blink/renderer/core/dom/first_letter_pseudo_element.h"
#include "third_party/blink/renderer/core/dom/pseudo_element.h"
#include "third_party/blink/renderer/core/dom/text.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/layout/hit_test_result.h"
#include "third_party/blink/renderer/core/layout/inline/offset_mapping.h"
namespace blink {
LayoutTextFragment::LayoutTextFragment(Node* node,
const String& str,
int start_offset,
int length)
: … { … }
LayoutTextFragment::~LayoutTextFragment() { … }
LayoutTextFragment* LayoutTextFragment::Create(Node* node,
const String& str,
int start_offset,
int length) { … }
LayoutTextFragment* LayoutTextFragment::CreateAnonymous(Document& doc,
const String& text,
unsigned start,
unsigned length) { … }
LayoutTextFragment* LayoutTextFragment::CreateAnonymous(Document& doc,
const String& text) { … }
void LayoutTextFragment::Trace(Visitor* visitor) const { … }
void LayoutTextFragment::WillBeDestroyed() { … }
String LayoutTextFragment::CompleteText() const { … }
void LayoutTextFragment::SetContentString(const String& str) { … }
String LayoutTextFragment::OriginalText() const { … }
void LayoutTextFragment::TextDidChange() { … }
void LayoutTextFragment::SetTextFragment(String text,
unsigned start,
unsigned length) { … }
void LayoutTextFragment::TransformAndSecureOriginalText() { … }
UChar LayoutTextFragment::PreviousCharacter() const { … }
Text* LayoutTextFragment::AssociatedTextNode() const { … }
LayoutText* LayoutTextFragment::GetFirstLetterPart() const { … }
void LayoutTextFragment::UpdateHitTestResult(
HitTestResult& result,
const PhysicalOffset& point) const { … }
DOMNodeId LayoutTextFragment::OwnerNodeId() const { … }
Position LayoutTextFragment::PositionForCaretOffset(unsigned offset) const { … }
std::optional<unsigned> LayoutTextFragment::CaretOffsetForPosition(
const Position& position) const { … }
String LayoutTextFragment::PlainText() const { … }
}