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:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user