#include "third_party/blink/renderer/core/html/track/vtt/vtt_region.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/renderer/core/css/css_property_names.h"
#include "third_party/blink/renderer/core/dom/dom_token_list.h"
#include "third_party/blink/renderer/core/dom/element_traversal.h"
#include "third_party/blink/renderer/core/geometry/dom_rect.h"
#include "third_party/blink/renderer/core/html/html_div_element.h"
#include "third_party/blink/renderer/core/html/track/vtt/vtt_cue_box.h"
#include "third_party/blink/renderer/core/html/track/vtt/vtt_parser.h"
#include "third_party/blink/renderer/core/html/track/vtt/vtt_scanner.h"
#include "third_party/blink/renderer/platform/bindings/exception_messages.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/scheduler/public/thread.h"
#include "third_party/blink/renderer/platform/wtf/math_extras.h"
#define VTT_LOG_LEVEL …
namespace blink {
namespace {
constexpr double kDefaultRegionWidth = …;
constexpr int kDefaultHeightInLines = …;
constexpr double kDefaultAnchorPointX = …;
constexpr double kDefaultAnchorPointY = …;
constexpr bool kDefaultScroll = …;
constexpr float kLineHeight = …;
constexpr base::TimeDelta kScrollTime = …;
bool IsNonPercentage(double value,
const char* method,
ExceptionState& exception_state) { … }
}
VTTRegion::VTTRegion(Document& document)
: … { … }
VTTRegion::~VTTRegion() = default;
void VTTRegion::setId(const String& id) { … }
void VTTRegion::setWidth(double value, ExceptionState& exception_state) { … }
void VTTRegion::setLines(unsigned value) { … }
void VTTRegion::setRegionAnchorX(double value,
ExceptionState& exception_state) { … }
void VTTRegion::setRegionAnchorY(double value,
ExceptionState& exception_state) { … }
void VTTRegion::setViewportAnchorX(double value,
ExceptionState& exception_state) { … }
void VTTRegion::setViewportAnchorY(double value,
ExceptionState& exception_state) { … }
const AtomicString VTTRegion::scroll() const { … }
void VTTRegion::setScroll(const AtomicString& value) { … }
void VTTRegion::SetRegionSettings(const String& input_string) { … }
VTTRegion::RegionSetting VTTRegion::ScanSettingName(VTTScanner& input) { … }
static inline bool ParsedEntireRun(const VTTScanner& input,
const VTTScanner::Run& run) { … }
void VTTRegion::ParseSettingValue(RegionSetting setting, VTTScanner& input) { … }
const AtomicString& VTTRegion::TextTrackCueContainerScrollingClass() { … }
HTMLDivElement* VTTRegion::GetDisplayTree(Document& document) { … }
void VTTRegion::WillRemoveVTTCueBox(VTTCueBox* box) { … }
void VTTRegion::AppendVTTCueBox(VTTCueBox* display_box) { … }
void VTTRegion::DisplayLastVTTCueBox() { … }
void VTTRegion::PrepareRegionDisplayTree() { … }
void VTTRegion::StartTimer() { … }
void VTTRegion::StopTimer() { … }
void VTTRegion::ScrollTimerFired(TimerBase*) { … }
void VTTRegion::Trace(Visitor* visitor) const { … }
}