#include "third_party/blink/renderer/core/html/custom/element_internals.h"
#include "third_party/blink/renderer/bindings/core/v8/frozen_array.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_file_formdata_usvstring.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_validity_state_flags.h"
#include "third_party/blink/renderer/core/accessibility/ax_object_cache.h"
#include "third_party/blink/renderer/core/dom/node_lists_node_data.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/fileapi/file.h"
#include "third_party/blink/renderer/core/html/custom/custom_element.h"
#include "third_party/blink/renderer/core/html/custom/custom_element_registry.h"
#include "third_party/blink/renderer/core/html/custom/custom_state_set.h"
#include "third_party/blink/renderer/core/html/forms/form_controller.h"
#include "third_party/blink/renderer/core/html/forms/form_data.h"
#include "third_party/blink/renderer/core/html/forms/html_field_set_element.h"
#include "third_party/blink/renderer/core/html/forms/html_form_element.h"
#include "third_party/blink/renderer/core/html/forms/validity_state.h"
#include "third_party/blink/renderer/core/html/html_element.h"
namespace blink {
namespace {
bool IsValidityStateFlagsValid(const ValidityStateFlags* flags) { … }
void AppendToFormControlState(const V8ControlValue& value,
FormControlState& state) { … }
const V8ControlValue* RestoreFromFormControlState(
ExecutionContext& execution_context,
const FormControlState& state,
const StringView& section_title,
wtf_size_t& index) { … }
}
ElementInternals::ElementInternals(HTMLElement& target) : … { … }
void ElementInternals::Trace(Visitor* visitor) const { … }
void ElementInternals::setFormValue(const V8ControlValue* value,
ExceptionState& exception_state) { … }
void ElementInternals::setFormValue(const V8ControlValue* value,
const V8ControlValue* state,
ExceptionState& exception_state) { … }
HTMLFormElement* ElementInternals::form(ExceptionState& exception_state) const { … }
void ElementInternals::setValidity(ValidityStateFlags* flags,
ExceptionState& exception_state) { … }
void ElementInternals::setValidity(ValidityStateFlags* flags,
const String& message,
ExceptionState& exception_state) { … }
void ElementInternals::setValidity(ValidityStateFlags* flags,
const String& message,
HTMLElement* anchor,
ExceptionState& exception_state) { … }
bool ElementInternals::willValidate(ExceptionState& exception_state) const { … }
ValidityState* ElementInternals::validity(ExceptionState& exception_state) { … }
String ElementInternals::ValidationMessageForBinding(
ExceptionState& exception_state) { … }
String ElementInternals::validationMessage() const { … }
String ElementInternals::ValidationSubMessage() const { … }
Element& ElementInternals::ValidationAnchor() const { … }
bool ElementInternals::checkValidity(ExceptionState& exception_state) { … }
bool ElementInternals::reportValidity(ExceptionState& exception_state) { … }
LabelsNodeList* ElementInternals::labels(ExceptionState& exception_state) { … }
CustomStateSet* ElementInternals::states() { … }
bool ElementInternals::HasState(const AtomicString& state) const { … }
ShadowRoot* ElementInternals::shadowRoot() const { … }
const AtomicString& ElementInternals::FastGetAttribute(
const QualifiedName& attribute) const { … }
const HashMap<QualifiedName, AtomicString>& ElementInternals::GetAttributes()
const { … }
void ElementInternals::setAttribute(const QualifiedName& attribute,
const AtomicString& value) { … }
bool ElementInternals::HasAttribute(const QualifiedName& attribute) const { … }
void ElementInternals::DidUpgrade() { … }
void ElementInternals::SetElementAttribute(const QualifiedName& name,
Element* element) { … }
Element* ElementInternals::GetElementAttribute(const QualifiedName& name) { … }
void ElementInternals::SetElementArrayAttribute(
const QualifiedName& name,
const HeapVector<Member<Element>>* given_elements) { … }
const FrozenArray<Element>* ElementInternals::GetElementArrayAttribute(
const QualifiedName& name) { … }
const FrozenArray<Element>* ElementInternals::ariaControlsElements() { … }
void ElementInternals::setAriaControlsElements(
HeapVector<Member<Element>>* given_elements) { … }
const FrozenArray<Element>* ElementInternals::ariaDescribedByElements() { … }
void ElementInternals::setAriaDescribedByElements(
HeapVector<Member<Element>>* given_elements) { … }
const FrozenArray<Element>* ElementInternals::ariaDetailsElements() { … }
void ElementInternals::setAriaDetailsElements(
HeapVector<Member<Element>>* given_elements) { … }
const FrozenArray<Element>* ElementInternals::ariaErrorMessageElements() { … }
void ElementInternals::setAriaErrorMessageElements(
HeapVector<Member<Element>>* given_elements) { … }
const FrozenArray<Element>* ElementInternals::ariaFlowToElements() { … }
void ElementInternals::setAriaFlowToElements(
HeapVector<Member<Element>>* given_elements) { … }
const FrozenArray<Element>* ElementInternals::ariaLabelledByElements() { … }
void ElementInternals::setAriaLabelledByElements(
HeapVector<Member<Element>>* given_elements) { … }
const FrozenArray<Element>* ElementInternals::ariaOwnsElements() { … }
void ElementInternals::setAriaOwnsElements(
HeapVector<Member<Element>>* given_elements) { … }
bool ElementInternals::IsTargetFormAssociated() const { … }
bool ElementInternals::IsFormControlElement() const { … }
bool ElementInternals::IsElementInternals() const { … }
bool ElementInternals::IsEnumeratable() const { … }
void ElementInternals::AppendToFormData(FormData& form_data) { … }
void ElementInternals::DidChangeForm() { … }
bool ElementInternals::HasBadInput() const { … }
bool ElementInternals::PatternMismatch() const { … }
bool ElementInternals::RangeOverflow() const { … }
bool ElementInternals::RangeUnderflow() const { … }
bool ElementInternals::StepMismatch() const { … }
bool ElementInternals::TooLong() const { … }
bool ElementInternals::TooShort() const { … }
bool ElementInternals::TypeMismatch() const { … }
bool ElementInternals::ValueMissing() const { … }
bool ElementInternals::CustomError() const { … }
void ElementInternals::DisabledStateMightBeChanged() { … }
bool ElementInternals::ClassSupportsStateRestore() const { … }
bool ElementInternals::ShouldSaveAndRestoreFormControlState() const { … }
FormControlState ElementInternals::SaveFormControlState() const { … }
void ElementInternals::RestoreFormControlState(const FormControlState& state) { … }
}