490: infrastructure for inserting formatting whitespace. Not turned on yet except for DEBUG_akkana
git-svn-id: svn://10.0.0.236/trunk@46804 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -74,6 +74,11 @@ NS_IMETHODIMP SplitElementTxn::Do(void)
|
||||
result = nsEditor::SplitNodeImpl(mExistingRightNode, mOffset, mNewLeftNode, mParent);
|
||||
if (NS_SUCCEEDED(result) && mNewLeftNode)
|
||||
{
|
||||
#ifdef DEBUG_akkana
|
||||
// Insert formatting whitespace for the new node:
|
||||
mEditor->InsertFormattingForNode(mExistingRightNode);
|
||||
#endif
|
||||
|
||||
nsCOMPtr<nsIDOMSelection>selection;
|
||||
mEditor->GetSelection(getter_AddRefs(selection));
|
||||
if (NS_FAILED(result)) return result;
|
||||
|
||||
Reference in New Issue
Block a user