#include "third_party/blink/renderer/core/highlight/highlight_registry.h"
#include "third_party/blink/renderer/core/dom/abstract_range.h"
#include "third_party/blink/renderer/core/dom/static_range.h"
#include "third_party/blink/renderer/core/dom/text.h"
#include "third_party/blink/renderer/core/editing/ephemeral_range.h"
#include "third_party/blink/renderer/core/editing/markers/custom_highlight_marker.h"
#include "third_party/blink/renderer/core/editing/markers/document_marker_controller.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/highlight/highlight_style_utils.h"
#include "third_party/blink/renderer/core/layout/layout_text.h"
#include "third_party/blink/renderer/platform/instrumentation/use_counter.h"
namespace blink {
HighlightRegistry* HighlightRegistry::From(LocalDOMWindow& window) { … }
HighlightRegistry::HighlightRegistry(LocalDOMWindow& window)
: … { … }
HighlightRegistry::~HighlightRegistry() = default;
const char HighlightRegistry::kSupplementName[] = …;
void HighlightRegistry::Trace(blink::Visitor* visitor) const { … }
HighlightRegistry* HighlightRegistry::GetHighlightRegistry(const Node* node) { … }
void HighlightRegistry::ValidateHighlightMarkers() { … }
const HashSet<AtomicString>& HighlightRegistry::GetActiveHighlights(
const Text& node) const { … }
void HighlightRegistry::ScheduleRepaint() { … }
void HighlightRegistry::SetForTesting(AtomicString highlight_name,
Highlight* highlight) { … }
void HighlightRegistry::RemoveForTesting(AtomicString highlight_name,
Highlight* highlight) { … }
HighlightRegistry* HighlightRegistry::setForBinding(
ScriptState* script_state,
AtomicString highlight_name,
Member<Highlight> highlight,
ExceptionState& exception_state) { … }
void HighlightRegistry::clearForBinding(ScriptState*, ExceptionState&) { … }
bool HighlightRegistry::deleteForBinding(ScriptState*,
const AtomicString& highlight_name,
ExceptionState&) { … }
int8_t HighlightRegistry::CompareOverlayStackingPosition(
const AtomicString& highlight_name1,
const Highlight* highlight1,
const AtomicString& highlight_name2,
const Highlight* highlight2) const { … }
HighlightRegistry::IterationSource::IterationSource(
const HighlightRegistry& highlight_registry)
: … { … }
bool HighlightRegistry::IterationSource::FetchNextItem(ScriptState*,
String& key,
Highlight*& value,
ExceptionState&) { … }
void HighlightRegistry::IterationSource::Trace(blink::Visitor* visitor) const { … }
HighlightRegistryMapIterable::IterationSource*
HighlightRegistry::CreateIterationSource(ScriptState*, ExceptionState&) { … }
}