Bug 1260651 part.43 Rename nsAutoInsertContainerSelNotify to mozilla::AutoInsertContainerSelNotify r=mccr8

MozReview-Commit-ID: GEfM8GJO3xd
This commit is contained in:
Masayuki Nakano 2016-06-24 15:21:35 +09:00
parent 35be83ddea
commit b5223c28f5
2 changed files with 17 additions and 19 deletions

View File

@ -292,32 +292,30 @@ public:
}
};
} // namespace mozilla
/***************************************************************************
* another helper class for SelectionState. stack based class for doing
/**
* Another helper class for SelectionState. Stack based class for doing
* Will/DidInsertContainer()
*/
class MOZ_STACK_CLASS nsAutoInsertContainerSelNotify
class MOZ_STACK_CLASS AutoInsertContainerSelNotify final
{
private:
mozilla::RangeUpdater& mRU;
private:
RangeUpdater& mRangeUpdater;
public:
explicit nsAutoInsertContainerSelNotify(
mozilla::RangeUpdater& aRangeUpdater) :
mRU(aRangeUpdater)
{
mRU.WillInsertContainer();
}
public:
explicit AutoInsertContainerSelNotify(RangeUpdater& aRangeUpdater)
: mRangeUpdater(aRangeUpdater)
{
mRangeUpdater.WillInsertContainer();
}
~nsAutoInsertContainerSelNotify()
{
mRU.DidInsertContainer();
}
~AutoInsertContainerSelNotify()
{
mRangeUpdater.DidInsertContainer();
}
};
} // namespace mozilla
/***************************************************************************
* another helper class for SelectionState. stack based class for doing

View File

@ -1663,7 +1663,7 @@ nsEditor::InsertContainerAbove(nsIContent* aNode,
}
// Notify our internal selection state listener
nsAutoInsertContainerSelNotify selNotify(mRangeUpdater);
AutoInsertContainerSelNotify selNotify(mRangeUpdater);
// Put inNode in new parent, outNode
res = DeleteNode(aNode);