/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
class HTMLOptionElement final : public nsGenericHTMLElement { public: explicit HTMLOptionElement(
already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo);
/** * This callback is called by an optgroup on all its option elements whenever * its disabled state is changed so that option elements can know their * disabled state might have changed.
*/ void OptGroupDisabledChanged(bool aNotify);
/** * Check our disabled content attribute and optgroup's (if it exists) disabled * state to decide whether our disabled flag should be toggled.
*/ void UpdateDisabledState(bool aNotify);
/** * Get the select content element that contains this option, this * intentionally does not return nsresult, all we care about is if * there's a select associated with this option or not.
*/
HTMLSelectElement* GetSelect();
bool mSelectedChanged = false;
// True only while we're under the SetOptionsSelectedByIndex call when our // "selected" attribute is changing and mSelectedChanged is false. bool mIsInSetDefaultSelected = false;
};
} // namespace mozilla::dom
#endif// mozilla_dom_HTMLOptionElement_h__
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.