From 1f5c67934f05d036de575c3d8172587fa6d398bc Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Thu, 16 Apr 2020 17:51:36 -0400 Subject: Bug 1343937 - Fix a crash in nsWrapperCache.h * Implement and use GetInFlowParent * Exempt scrollbar NAC from the new NAC semantics Tag #1375 --- dom/base/nsIContent.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dom') diff --git a/dom/base/nsIContent.h b/dom/base/nsIContent.h index ff0c57e8c..edb0d69f3 100644 --- a/dom/base/nsIContent.h +++ b/dom/base/nsIContent.h @@ -950,6 +950,14 @@ public: return false; } + // Returns true if this element is native-anonymous scrollbar content. + bool IsNativeScrollbarContent() const { + return IsNativeAnonymous() && + IsAnyOfXULElements(nsGkAtoms::scrollbar, + nsGkAtoms::resizer, + nsGkAtoms::scrollcorner); + } + // Overloaded from nsINode virtual already_AddRefed GetBaseURI(bool aTryUseXHRDocBaseURI = false) const override; -- cgit v1.2.3