improved paste performance in editor (WIP) (bug 28783)

set/remove inline stlye rewrite (lots of bug #s)


git-svn-id: svn://10.0.0.236/trunk@63948 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jfrancis%netscape.com
2000-03-24 00:26:47 +00:00
parent 6a0120def8
commit 386e43e682
24 changed files with 5500 additions and 2918 deletions

View File

@@ -69,6 +69,8 @@ NS_IMETHODIMP SplitElementTxn::Do(void)
NS_ASSERTION(((NS_SUCCEEDED(result)) && (mNewLeftNode)), "could not create element.");
if (NS_FAILED(result)) return result;
if (!mNewLeftNode) return NS_ERROR_NULL_POINTER;
mEditor->MarkNodeDirty(mExistingRightNode);
if (gNoisy) { printf(" created left node = %p\n", mNewLeftNode.get()); }
// get the parent node
@@ -80,9 +82,6 @@ NS_IMETHODIMP SplitElementTxn::Do(void)
result = mEditor->SplitNodeImpl(mExistingRightNode, mOffset, mNewLeftNode, mParent);
if (NS_SUCCEEDED(result) && mNewLeftNode)
{
// Insert formatting whitespace for the new node:
mEditor->InsertFormattingForNode(mExistingRightNode);
nsCOMPtr<nsIDOMSelection>selection;
mEditor->GetSelection(getter_AddRefs(selection));
if (NS_FAILED(result)) return result;