#include "third_party/blink/renderer/core/editing/testing/selection_sample.h"
#include <algorithm>
#include "third_party/blink/renderer/bindings/core/v8/v8_shadow_root_init.h"
#include "third_party/blink/renderer/core/dom/attribute.h"
#include "third_party/blink/renderer/core/dom/character_data.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/dom/processing_instruction.h"
#include "third_party/blink/renderer/core/editing/editing_utilities.h"
#include "third_party/blink/renderer/core/editing/selection_template.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/html/html_collection.h"
#include "third_party/blink/renderer/core/html/html_template_element.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
#include "third_party/blink/renderer/platform/wtf/text/string_utf8_adaptor.h"
namespace blink {
namespace {
void ConvertTemplatesToShadowRoots(HTMLElement& element) { … }
class Parser final { … };
template <typename Strategy>
class Serializer final { … };
}
void SelectionSample::ConvertTemplatesToShadowRootsForTesring(
HTMLElement& element) { … }
SelectionInDOMTree SelectionSample::SetSelectionText(
HTMLElement* element,
const std::string& selection_text) { … }
std::string SelectionSample::GetSelectionText(
const ContainerNode& root,
const SelectionInDOMTree& selection) { … }
std::string SelectionSample::GetSelectionTextInFlatTree(
const ContainerNode& root,
const SelectionInFlatTree& selection) { … }
}