#include "third_party/blink/renderer/core/html/forms/html_option_element.h"
#include "third_party/blink/public/mojom/use_counter/metrics/web_feature.mojom-shared.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_mutation_observer_init.h"
#include "third_party/blink/renderer/core/accessibility/ax_object_cache.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/events/simulated_click_options.h"
#include "third_party/blink/renderer/core/dom/focus_params.h"
#include "third_party/blink/renderer/core/dom/mutation_observer.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/dom/node_traversal.h"
#include "third_party/blink/renderer/core/dom/shadow_root.h"
#include "third_party/blink/renderer/core/dom/text.h"
#include "third_party/blink/renderer/core/events/gesture_event.h"
#include "third_party/blink/renderer/core/events/keyboard_event.h"
#include "third_party/blink/renderer/core/events/mouse_event.h"
#include "third_party/blink/renderer/core/html/forms/html_data_list_element.h"
#include "third_party/blink/renderer/core/html/forms/html_opt_group_element.h"
#include "third_party/blink/renderer/core/html/forms/html_select_element.h"
#include "third_party/blink/renderer/core/html/forms/html_select_list_element.h"
#include "third_party/blink/renderer/core/html/html_slot_element.h"
#include "third_party/blink/renderer/core/html/parser/html_parser_idioms.h"
#include "third_party/blink/renderer/core/html_names.h"
#include "third_party/blink/renderer/core/layout/layout_theme.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/keyboard_codes.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
namespace blink {
class OptionTextObserver : public MutationObserver::Delegate { … };
HTMLOptionElement::HTMLOptionElement(Document& document)
: … { … }
HTMLOptionElement::~HTMLOptionElement() = default;
HTMLOptionElement* HTMLOptionElement::CreateForJSConstructor(
Document& document,
const String& data,
const AtomicString& value,
bool default_selected,
bool selected,
ExceptionState& exception_state) { … }
void HTMLOptionElement::Trace(Visitor* visitor) const { … }
FocusableState HTMLOptionElement::SupportsFocus(
UpdateBehavior update_behavior) const { … }
bool HTMLOptionElement::MatchesDefaultPseudoClass() const { … }
bool HTMLOptionElement::MatchesEnabledPseudoClass() const { … }
String HTMLOptionElement::DisplayLabel() const { … }
String HTMLOptionElement::text() const { … }
void HTMLOptionElement::setText(const String& text) { … }
void HTMLOptionElement::AccessKeyAction(SimulatedClickCreationScope) { … }
int HTMLOptionElement::index() const { … }
int HTMLOptionElement::ListIndex() const { … }
void HTMLOptionElement::ParseAttribute(
const AttributeModificationParams& params) { … }
String HTMLOptionElement::value() const { … }
void HTMLOptionElement::setValue(const AtomicString& value) { … }
bool HTMLOptionElement::Selected() const { … }
void HTMLOptionElement::SetSelected(bool selected) { … }
bool HTMLOptionElement::selectedForBinding() const { … }
void HTMLOptionElement::setSelectedForBinding(bool selected) { … }
void HTMLOptionElement::SetSelectedState(bool selected) { … }
void HTMLOptionElement::SetMultiSelectFocusedState(bool focused) { … }
bool HTMLOptionElement::IsMultiSelectFocused() const { … }
void HTMLOptionElement::SetDirty(bool value) { … }
void HTMLOptionElement::ChildrenChanged(const ChildrenChange& change) { … }
void HTMLOptionElement::DidChangeTextContent() { … }
HTMLDataListElement* HTMLOptionElement::OwnerDataListElement() const { … }
HTMLSelectElement* HTMLOptionElement::OwnerSelectElement() const { … }
HTMLSelectListElement* HTMLOptionElement::OwnerSelectList() const { … }
String HTMLOptionElement::label() const { … }
void HTMLOptionElement::setLabel(const AtomicString& label) { … }
String HTMLOptionElement::TextIndentedToRespectGroupLabel() const { … }
bool HTMLOptionElement::OwnElementDisabled() const { … }
bool HTMLOptionElement::IsDisabledFormControl() const { … }
String HTMLOptionElement::DefaultToolTip() const { … }
String HTMLOptionElement::CollectOptionInnerText() const { … }
HTMLFormElement* HTMLOptionElement::form() const { … }
void HTMLOptionElement::DidAddUserAgentShadowRoot(ShadowRoot& root) { … }
void HTMLOptionElement::UpdateLabel() { … }
Node::InsertionNotificationRequest HTMLOptionElement::InsertedInto(
ContainerNode& insertion_point) { … }
void HTMLOptionElement::RemovedFrom(ContainerNode& insertion_point) { … }
void HTMLOptionElement::SetTextOnlyRendering(bool text_only) { … }
void HTMLOptionElement::OptionInsertedIntoSelectListElement() { … }
void HTMLOptionElement::OptionRemovedFromSelectListElement() { … }
bool HTMLOptionElement::SpatialNavigationFocused() const { … }
bool HTMLOptionElement::IsDisplayNone() const { … }
void HTMLOptionElement::DefaultEventHandler(Event& event) { … }
}