fixes:
117418: warnings in nsWSRunObject.cpp 98286: splitting paragraphs broken 101041: block transformations could grab too much beyon selection 82813: whitespace handling code needs to do right thing with preformatted text 99545 & 103677: new blocks not always pre-populated with br 41336: better handling of mailcites when splitting or deleting them or portions of them partial fix for: 46474: creating new blocks kills style settings r=fm, sr=kin git-svn-id: svn://10.0.0.236/trunk@114924 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -319,7 +319,6 @@ nsresult nsHTMLEditor::InsertHTMLWithCharsetAndContext(const nsAReadableString &
|
||||
&rangeStartHint, &rangeEndHint);
|
||||
NS_ENSURE_SUCCESS(res, res);
|
||||
|
||||
|
||||
// make a list of what nodes in docFrag we need to move
|
||||
nsCOMPtr<nsISupportsArray> nodeList;
|
||||
res = CreateListOfNodesToPaste(fragmentAsNode, address_of(nodeList), rangeStartHint, rangeEndHint);
|
||||
@@ -1107,7 +1106,7 @@ NS_IMETHODIMP nsHTMLEditor::DoDrag(nsIDOMEvent *aDragEvent)
|
||||
nsCOMPtr<nsIDOMDocument> domdoc;
|
||||
rv = GetDocument(getter_AddRefs(domdoc));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
|
||||
nsCOMPtr<nsIDocument> doc = do_QueryInterface(domdoc);
|
||||
if (doc)
|
||||
{
|
||||
@@ -1721,8 +1720,6 @@ nsresult nsHTMLEditor::CreateDOMFragmentFromPaste(nsIDOMNSRange *aNSRange,
|
||||
res = aNSRange->CreateContextualFragment(aInputString, getter_AddRefs(docfrag));
|
||||
NS_ENSURE_SUCCESS(res, res);
|
||||
*outFragNode = do_QueryInterface(docfrag);
|
||||
res = StripFormattingNodes(*outFragNode);
|
||||
NS_ENSURE_SUCCESS(res, res);
|
||||
|
||||
if (contextfrag)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user