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:
Masayuki Nakano 2018-05-28 23:22:19 +09:00
Родитель 84aca99c88
Коммит 4db8c8a594
3 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

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