зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1503744 - Make HTMLEditor::SetHTMLBackgroundColorWithTransaction() not refer RefPtr after moving it r=m_kato
Simple fix of crash caused by referring nullptr. Differential Revision: https://phabricator.services.mozilla.com/D10705 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
dbbd5b9823
Коммит
9d4ed3f232
|
@ -3240,8 +3240,8 @@ HTMLEditor::SetHTMLBackgroundColorWithTransaction(const nsAString& aColor)
|
|||
// web apps can select <tr> and <td> at same time. With <table>, looks
|
||||
// odd, though.
|
||||
if (isCellSelected ||
|
||||
cellOrRowOrTableElement->IsAnyOfHTMLElements(nsGkAtoms::table,
|
||||
nsGkAtoms::tr)) {
|
||||
rootElementOfBackgroundColor->IsAnyOfHTMLElements(nsGkAtoms::table,
|
||||
nsGkAtoms::tr)) {
|
||||
IgnoredErrorResult ignoredError;
|
||||
RefPtr<Element> cellElement =
|
||||
GetFirstSelectedTableCellElement(ignoredError);
|
||||
|
|
Загрузка…
Ссылка в новой задаче