Bug 1850712 - Remove unused nsCheckboxRadioFrame::GetCurrentCheckState, r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D187104
This commit is contained in:
Olli Pettay 2023-08-30 14:07:32 +00:00
Родитель c2c6bce3a5
Коммит dd6135f330
2 изменённых файлов: 0 добавлений и 14 удалений

Просмотреть файл

@ -161,13 +161,6 @@ nsresult nsCheckboxRadioFrame::HandleEvent(nsPresContext* aPresContext,
return NS_OK;
}
void nsCheckboxRadioFrame::GetCurrentCheckState(bool* aState) {
HTMLInputElement* inputElement = HTMLInputElement::FromNode(mContent);
if (inputElement) {
*aState = inputElement->Checked();
}
}
nsresult nsCheckboxRadioFrame::SetFormProperty(nsAtom* aName,
const nsAString& aValue) {
return NS_OK;

Просмотреть файл

@ -85,13 +85,6 @@ class nsCheckboxRadioFrame final : public nsAtomicContainerFrame,
virtual ~nsCheckboxRadioFrame();
nscoord DefaultSize();
/**
* Get the state of the checked attribute.
* @param aState set to true if the checked attribute is set,
* false if the checked attribute has been removed
*/
void GetCurrentCheckState(bool* aState);
};
#endif