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:
akkana%netscape.com
1999-09-10 18:54:13 +00:00
parent e8b13708d5
commit c02f965115
9 changed files with 209 additions and 6 deletions

View File

@@ -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;