Bug 1959061 - Remove overflow/underflow event prefs r=extension-reviewers,emilio,robwu
And use counters Differential Revision: https://phabricator.services.mozilla.com/D244718
This commit is contained in:
@@ -5923,18 +5923,7 @@ void ScrollContainerFrame::PostOverflowEvent() {
|
||||
return;
|
||||
}
|
||||
|
||||
auto overflowEventEnabled = [&]() -> bool {
|
||||
Document* doc = PresContext()->Document();
|
||||
if (nsContentUtils::IsChromeDoc(doc)) {
|
||||
return true;
|
||||
}
|
||||
if (nsContentUtils::IsAddonDoc(doc)) {
|
||||
return StaticPrefs::layout_overflow_underflow_content_enabled_in_addons();
|
||||
}
|
||||
return StaticPrefs::layout_overflow_underflow_content_enabled();
|
||||
}();
|
||||
|
||||
if (!overflowEventEnabled) {
|
||||
if (!nsContentUtils::IsChromeDoc(PresContext()->Document())) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user