From 324ad8b2e79c0ceceb932396600e5886cb062d76 Mon Sep 17 00:00:00 2001 From: Mirko Brodesser Date: Fri, 3 Jul 2020 09:55:37 +0000 Subject: [PATCH] Bug 1649121: part 17) Correct style for previous commit. r=masayuki Separate commit to reduce possibility for typos. Differential Revision: https://phabricator.services.mozilla.com/D82148 --- editor/libeditor/HTMLEditorDataTransfer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/editor/libeditor/HTMLEditorDataTransfer.cpp b/editor/libeditor/HTMLEditorDataTransfer.cpp index 7c043373d38a..4c284dec782d 100644 --- a/editor/libeditor/HTMLEditorDataTransfer.cpp +++ b/editor/libeditor/HTMLEditorDataTransfer.cpp @@ -201,19 +201,19 @@ nsresult HTMLEditor::InsertHTMLAsAction(const nsAString& aInString, } EditorDOMPoint HTMLEditor::GetNewCaretPointAfterInsertingHTML( - const EditorDOMPoint& lastInsertedPoint) const { + const EditorDOMPoint& aLastInsertedPoint) const { EditorDOMPoint pointToPutCaret; // but don't cross tables nsIContent* containerContent = nullptr; - if (!HTMLEditUtils::IsTable(lastInsertedPoint.GetChild())) { - containerContent = GetLastEditableLeaf(*lastInsertedPoint.GetChild()); + if (!HTMLEditUtils::IsTable(aLastInsertedPoint.GetChild())) { + containerContent = GetLastEditableLeaf(*aLastInsertedPoint.GetChild()); if (containerContent) { Element* mostDistantInclusiveAncestorTableElement = nullptr; for (Element* maybeTableElement = containerContent->GetAsElementOrParentElement(); maybeTableElement && - maybeTableElement != lastInsertedPoint.GetChild(); + maybeTableElement != aLastInsertedPoint.GetChild(); maybeTableElement = maybeTableElement->GetParentElement()) { if (HTMLEditUtils::IsTable(maybeTableElement)) { mostDistantInclusiveAncestorTableElement = maybeTableElement; @@ -229,7 +229,7 @@ EditorDOMPoint HTMLEditor::GetNewCaretPointAfterInsertingHTML( // If we are not in table elements, we should put caret in the last inserted // node. if (!containerContent) { - containerContent = lastInsertedPoint.GetChild(); + containerContent = aLastInsertedPoint.GetChild(); } // If the container is a text node or a container element except `` -- 2.11.4.GIT