Bug 1343037 part 4. Fix type changes on an input to properly grab the selection offsets from the old editor before we ask the editor state for them. r=ehsan
MozReview-Commit-ID: IDdt0qedJpT
This commit is contained in:
@@ -1537,6 +1537,14 @@ nsTextEditorState::GetSelectionProperties()
|
||||
return mSelectionProperties;
|
||||
}
|
||||
|
||||
void
|
||||
nsTextEditorState::SyncUpSelectionPropertiesBeforeDestruction()
|
||||
{
|
||||
if (mBoundFrame) {
|
||||
UnbindFromFrame(mBoundFrame);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsTextEditorState::SetSelectionProperties(nsTextEditorState::SelectionProperties& aProps)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user