Bug 1345237. Propagate uint32_t deeper into the editor state and text control frame code. r=mystor

MozReview-Commit-ID: KeUo8My6eBJ
This commit is contained in:
Boris Zbarsky
2017-03-09 14:44:45 -05:00
parent 8f6ad791d2
commit 08408b8e31
16 changed files with 195 additions and 104 deletions

View File

@@ -6343,7 +6343,7 @@ HTMLInputElement::GetSelectionStart(ErrorResult& aRv)
uint32_t
HTMLInputElement::GetSelectionStartIgnoringType(ErrorResult& aRv)
{
int32_t selEnd, selStart;
uint32_t selEnd, selStart;
GetSelectionRange(&selStart, &selEnd, aRv);
return selStart;
}
@@ -6380,7 +6380,7 @@ HTMLInputElement::GetSelectionEnd(ErrorResult& aRv)
uint32_t
HTMLInputElement::GetSelectionEndIgnoringType(ErrorResult& aRv)
{
int32_t selEnd, selStart;
uint32_t selEnd, selStart;
GetSelectionRange(&selStart, &selEnd, aRv);
return selEnd;
}
@@ -6408,8 +6408,8 @@ HTMLInputElement::GetFiles(nsIDOMFileList** aFileList)
}
void
HTMLInputElement::GetSelectionRange(int32_t* aSelectionStart,
int32_t* aSelectionEnd,
HTMLInputElement::GetSelectionRange(uint32_t* aSelectionStart,
uint32_t* aSelectionEnd,
ErrorResult& aRv)
{
nsTextEditorState* state = GetEditorState();