Bug 1608071: part 1) Rename common ancestor to closest common inclusive ancestor around nsRange. r=smaug

It's more precise and enables one to reason more clearly about related
code.

Differential Revision: https://phabricator.services.mozilla.com/D59318
This commit is contained in:
Mirko Brodesser
2020-01-13 10:29:31 +00:00
parent 868cfa55ef
commit ae70537c80
5 changed files with 149 additions and 97 deletions

View File

@@ -2695,7 +2695,7 @@ void Element::List(FILE* out, int32_t aIndent, const nsCString& aPrefix) const {
fprintf(out, " state=[%llx]",
static_cast<unsigned long long>(State().GetInternalValue()));
fprintf(out, " flags=[%08x]", static_cast<unsigned int>(GetFlags()));
if (IsCommonAncestorForRangeInSelection()) {
if (IsClosestCommonInclusiveAncestorForRangeInSelection()) {
const LinkedList<nsRange>* ranges = GetExistingCommonAncestorRanges();
int32_t count = 0;
if (ranges) {