Bug 1344116 - Clean up HTMLEditRules::RemoveAlignment. r=masayuki

Before I will fix some justify* command's bug, I would like to clean up HTMLEditRules::RemoveAlignment to get rid of nsIDOM* into this method.

MozReview-Commit-ID: 4UATycS5iBl
This commit is contained in:
Makoto Kato
2017-03-03 13:13:21 +09:00
parent 501aee73b2
commit 3ee022bf9b
7 changed files with 72 additions and 107 deletions

View File

@@ -534,7 +534,7 @@ HTMLEditor::AbsolutelyPositionElement(nsIDOMElement* aElement,
RefPtr<HTMLEditRules> htmlRules =
static_cast<HTMLEditRules*>(mRules.get());
NS_ENSURE_TRUE(htmlRules, NS_ERROR_FAILURE);
nsresult rv = htmlRules->MakeSureElemStartsOrEndsOnCR(aElement);
nsresult rv = htmlRules->MakeSureElemStartsOrEndsOnCR(*element);
NS_ENSURE_SUCCESS(rv, rv);
rv = RemoveContainer(element);
NS_ENSURE_SUCCESS(rv, rv);