зеркало из https://github.com/mozilla/gecko-dev.git
fixes for bug 21158 and 21030.
This commit is contained in:
Родитель
adc741f32c
Коммит
f5410887be
|
@ -852,6 +852,7 @@ NS_IMETHODIMP nsHTMLEditor::SetInlineProperty(nsIAtom *aProperty,
|
|||
ForceCompositionEnd();
|
||||
|
||||
nsAutoEditBatch batchIt(this);
|
||||
nsAutoRules beginRulesSniffing(this, kOpInsertElement, nsIEditor::eNext);
|
||||
|
||||
if (gNoisy)
|
||||
{
|
||||
|
@ -3789,6 +3790,7 @@ nsHTMLEditor::InsertAsCitedQuotation(const nsString& aQuotedText,
|
|||
{
|
||||
nsAutoEditBatch beginBatching(this);
|
||||
nsCOMPtr<nsIDOMNode> newNode;
|
||||
nsAutoRules(this, kOpInsertElement, nsIEditor::eNext);
|
||||
nsAutoString tag("blockquote");
|
||||
nsresult res = DeleteSelectionAndCreateNode(tag, getter_AddRefs(newNode));
|
||||
if (NS_FAILED(res)) return res;
|
||||
|
|
|
@ -852,6 +852,7 @@ NS_IMETHODIMP nsHTMLEditor::SetInlineProperty(nsIAtom *aProperty,
|
|||
ForceCompositionEnd();
|
||||
|
||||
nsAutoEditBatch batchIt(this);
|
||||
nsAutoRules beginRulesSniffing(this, kOpInsertElement, nsIEditor::eNext);
|
||||
|
||||
if (gNoisy)
|
||||
{
|
||||
|
@ -3789,6 +3790,7 @@ nsHTMLEditor::InsertAsCitedQuotation(const nsString& aQuotedText,
|
|||
{
|
||||
nsAutoEditBatch beginBatching(this);
|
||||
nsCOMPtr<nsIDOMNode> newNode;
|
||||
nsAutoRules(this, kOpInsertElement, nsIEditor::eNext);
|
||||
nsAutoString tag("blockquote");
|
||||
nsresult res = DeleteSelectionAndCreateNode(tag, getter_AddRefs(newNode));
|
||||
if (NS_FAILED(res)) return res;
|
||||
|
|
Загрузка…
Ссылка в новой задаче