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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user