Bug 1611713 - Remove TextControlState::GetParentNumberControl. r=masayuki

Can't return anything useful anymore since bug 981248.

Differential Revision: https://phabricator.services.mozilla.com/D61091
This commit is contained in:
Emilio Cobos Álvarez
2020-01-27 00:00:09 +00:00
parent 264d0cc5a5
commit e76e7aa50a
4 changed files with 5 additions and 92 deletions

View File

@@ -303,23 +303,6 @@ class HTMLInputElement final : public TextControlElement,
void MaybeLoadImage();
void SetSelectionCached() {
MOZ_ASSERT(mType == NS_FORM_INPUT_NUMBER);
mSelectionCached = true;
}
bool IsSelectionCached() const {
MOZ_ASSERT(mType == NS_FORM_INPUT_NUMBER);
return mSelectionCached;
}
void ClearSelectionCached() {
MOZ_ASSERT(mType == NS_FORM_INPUT_NUMBER);
mSelectionCached = false;
}
TextControlState::SelectionProperties& GetSelectionProperties() {
MOZ_ASSERT(mType == NS_FORM_INPUT_NUMBER);
return mSelectionProperties;
}
bool HasPatternAttribute() const { return mHasPatternAttribute; }
// nsIConstraintValidation
@@ -1496,13 +1479,6 @@ class HTMLInputElement final : public TextControlElement,
*/
nsAutoPtr<DateTimeValue> mDateTimeInputBoxValue;
/**
* The selection properties cache for number controls. This is needed because
* the number controls don't recycle their text field, so the normal cache in
* TextControlState cannot do its job.
*/
TextControlState::SelectionProperties mSelectionProperties;
/**
* The triggering principal for the src attribute.
*/
@@ -1572,7 +1548,6 @@ class HTMLInputElement final : public TextControlElement,
bool mNumberControlSpinnerIsSpinning : 1;
bool mNumberControlSpinnerSpinsUp : 1;
bool mPickerRunning : 1;
bool mSelectionCached : 1;
bool mIsPreviewEnabled : 1;
bool mHasBeenTypePassword : 1;
bool mHasPatternAttribute : 1;