Bug 1283915 - Preserve input selection properties after type change. r=smaug
MozReview-Commit-ID: 7xJKc3vIpTY
This commit is contained in:
@@ -1536,6 +1536,19 @@ nsTextEditorState::GetSelectionProperties()
|
||||
return mSelectionProperties;
|
||||
}
|
||||
|
||||
void
|
||||
nsTextEditorState::SetSelectionProperties(nsTextEditorState::SelectionProperties& aProps)
|
||||
{
|
||||
if (mBoundFrame) {
|
||||
mBoundFrame->SetSelectionRange(aProps.GetStart(),
|
||||
aProps.GetEnd(),
|
||||
aProps.GetDirection());
|
||||
} else {
|
||||
mSelectionProperties = aProps;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
HTMLInputElement*
|
||||
nsTextEditorState::GetParentNumberControl(nsFrame* aFrame) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user