Bug 1608071: part 2) Rename nsContentUtils::GetCommonAncestor and related methods. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D59319
This commit is contained in:
Mirko Brodesser
2020-01-13 10:29:44 +00:00
parent ae70537c80
commit d02e84d2d2
18 changed files with 53 additions and 40 deletions

View File

@@ -4612,8 +4612,8 @@ UniquePtr<RangePaintInfo> PresShell::CreateRangePaintInfo(
if (startContainer == doc || endContainer == doc) {
ancestorFrame = rootFrame;
} else {
nsINode* ancestor =
nsContentUtils::GetCommonAncestor(startContainer, endContainer);
nsINode* ancestor = nsContentUtils::GetClosestCommonInclusiveAncestor(
startContainer, endContainer);
NS_ASSERTION(!ancestor || ancestor->IsContent(),
"common ancestor is not content");