chromium/third_party/blink/renderer/core/layout/layout_text_fragment.cc

/*
 * (C) 1999 Lars Knoll ([email protected])
 * (C) 2000 Dirk Mueller ([email protected])
 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public License
 * along with this library; see the file COPYING.LIB.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 *
 */

#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() {}

// Unlike |ForceSetText()|, this function is used for updating first-letter part
// or remaining part.
void LayoutTextFragment::SetTextFragment(String text,
                                         unsigned start,
                                         unsigned length) {}

void LayoutTextFragment::TransformAndSecureOriginalText() {}

UChar LayoutTextFragment::PreviousCharacter() const {}

// If this is the layoutObject for a first-letter pseudoNode then we have to
// look at the node for the remaining text to find our content.
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 {}

}  // namespace blink