зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1463985 - part 22: Rename EditSubAction::insertQuotation to EditSubAction::eInsertQuotation r=m_kato
According to this usage, perhaps, we can remove this from EditSubAction and this should be moved to new EditAction. MozReview-Commit-ID: HzfcC051rNB --HG-- extra : rebase_source : e42cade8436b082b4dc2adfcbbac75e17779cfd7
This commit is contained in:
Родитель
84aca99c88
Коммит
4db8c8a594
|
@ -96,7 +96,8 @@ enum class EditSubAction : int32_t
|
|||
// eInsertElement indicates to insert an element.
|
||||
eInsertElement,
|
||||
|
||||
insertQuotation,
|
||||
// eInsertQuotation indicates to insert an element and make it "quoted text".
|
||||
eInsertQuotation,
|
||||
|
||||
htmlPaste = 3012,
|
||||
loadHTML,
|
||||
|
|
|
@ -94,7 +94,7 @@ IsStyleCachePreservingSubAction(EditSubAction aEditSubAction)
|
|||
aEditSubAction == EditSubAction::eRemoveList ||
|
||||
aEditSubAction == EditSubAction::eCreateOrChangeDefinitionList ||
|
||||
aEditSubAction == EditSubAction::eInsertElement ||
|
||||
aEditSubAction == EditSubAction::insertQuotation;
|
||||
aEditSubAction == EditSubAction::eInsertQuotation;
|
||||
}
|
||||
|
||||
static nsAtom&
|
||||
|
|
|
@ -1590,7 +1590,7 @@ HTMLEditor::PasteAsCitedQuotation(const nsAString& aCitation,
|
|||
{
|
||||
AutoPlaceholderBatch beginBatching(this);
|
||||
AutoTopLevelEditSubActionNotifier maybeTopLevelEditSubAction(
|
||||
*this, EditSubAction::insertQuotation,
|
||||
*this, EditSubAction::eInsertQuotation,
|
||||
nsIEditor::eNext);
|
||||
|
||||
// get selection
|
||||
|
@ -1800,7 +1800,7 @@ HTMLEditor::InsertAsPlaintextQuotation(const nsAString& aQuotedText,
|
|||
|
||||
AutoPlaceholderBatch beginBatching(this);
|
||||
AutoTopLevelEditSubActionNotifier maybeTopLevelEditSubAction(
|
||||
*this, EditSubAction::insertQuotation,
|
||||
*this, EditSubAction::eInsertQuotation,
|
||||
nsIEditor::eNext);
|
||||
|
||||
// give rules a chance to handle or cancel
|
||||
|
@ -1907,7 +1907,7 @@ HTMLEditor::InsertAsCitedQuotation(const nsAString& aQuotedText,
|
|||
|
||||
AutoPlaceholderBatch beginBatching(this);
|
||||
AutoTopLevelEditSubActionNotifier maybeTopLevelEditSubAction(
|
||||
*this, EditSubAction::insertQuotation,
|
||||
*this, EditSubAction::eInsertQuotation,
|
||||
nsIEditor::eNext);
|
||||
|
||||
// give rules a chance to handle or cancel
|
||||
|
|
Загрузка…
Ссылка в новой задаче