mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1260651 part.43 Rename nsAutoInsertContainerSelNotify to mozilla::AutoInsertContainerSelNotify r=mccr8
MozReview-Commit-ID: GEfM8GJO3xd
This commit is contained in:
parent
35be83ddea
commit
b5223c28f5
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user