Bug 1945944: Add flag to dump frame tree with only deterministic information for diffing. r=layout-reviewers,emilio

Differential Revision: https://phabricator.services.mozilla.com/D236797
This commit is contained in:
David Shin
2025-02-06 15:34:27 +00:00
parent 094417d2bf
commit 61d5b05704
11 changed files with 94 additions and 49 deletions

View File

@@ -10647,7 +10647,9 @@ void nsTextFrame::List(FILE* out, const char* aPrefix, ListFlags aFlags) const {
nsCString str;
ListGeneric(str, aPrefix, aFlags);
str += nsPrintfCString(" [run=%p]", static_cast<void*>(mTextRun));
if (!aFlags.contains(ListFlag::OnlyListDeterministicInfo)) {
str += nsPrintfCString(" [run=%p]", static_cast<void*>(mTextRun));
}
// Output the first/last content offset and prev/next in flow info
bool isComplete = uint32_t(GetContentEnd()) == GetContent()->TextLength();