Bug 1661283 Part 2: Make InspectorUtils::GetOverflowingChildrenOfElement correctly...
commitfa457d1e5937cf97602dc0e4ee30bf7583e5211b
authorBrad Werth <bwerth@mozilla.com>
Fri, 4 Sep 2020 13:15:36 +0000 (4 13:15 +0000)
committerBrad Werth <bwerth@mozilla.com>
Fri, 4 Sep 2020 13:15:36 +0000 (4 13:15 +0000)
treefafb5c1ec3fa8a1b950f1cfcd9ee721cb9d9b53a
parent42d0bcb4ee1e74c073c9371715df3aab2f78c1da
Bug 1661283 Part 2: Make InspectorUtils::GetOverflowingChildrenOfElement correctly handle the body element. r=emilio

This requires using the same Element::GetScrollFrame logic used in the new
Element::HasVisibleScrollbars method. This also makes GetScrollFrame public,
so that InspectorUtils can use it.

Differential Revision: https://phabricator.services.mozilla.com/D88505
dom/base/Element.h
layout/inspector/InspectorUtils.cpp
layout/inspector/InspectorUtils.h