tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 60e99619c47267fe4cfaee646982a88ba13d577d
parent ba4217953685f381c5d849199ecb6dee031246de
Author: Timothy Nikkel <tnikkel@gmail.com>
Date:   Thu,  9 Oct 2025 03:06:10 +0000

Bug 1993353. Remove unused frame bit NS_FRAME_SIMPLE_EVENT_REGIONS. r=layout-reviewers,dshin

Differential Revision: https://phabricator.services.mozilla.com/D268064

Diffstat:
Mlayout/generic/nsFrameStateBits.h | 6------
Mlayout/generic/nsIFrame.cpp | 2+-
2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/layout/generic/nsFrameStateBits.h b/layout/generic/nsFrameStateBits.h @@ -196,12 +196,6 @@ FRAME_STATE_BIT(Generic, 33, NS_FRAME_DRAWING_AS_PAINTSERVER) FRAME_STATE_BIT(Generic, 34, NS_FRAME_DESCENDANT_INTRINSIC_ISIZE_DEPENDS_ON_BSIZE) -// A flag that tells us we can take the common path with respect to style -// properties for this frame when building event regions. This flag is cleared -// when any styles are changed and then we recompute it on the next build -// of the event regions. -FRAME_STATE_BIT(Generic, 35, NS_FRAME_SIMPLE_EVENT_REGIONS) - // Frame is a display root and the retained layer tree needs to be updated // at the next paint via display list construction. // Only meaningful for display roots, so we don't really need a global state diff --git a/layout/generic/nsIFrame.cpp b/layout/generic/nsIFrame.cpp @@ -1467,7 +1467,7 @@ void nsIFrame::DidSetComputedStyle(ComputedStyle* aOldComputedStyle) { HandlePrimaryFrameStyleChange(aOldComputedStyle); } - RemoveStateBits(NS_FRAME_SIMPLE_EVENT_REGIONS | NS_FRAME_SIMPLE_DISPLAYLIST); + RemoveStateBits(NS_FRAME_SIMPLE_DISPLAYLIST); mMayHaveRoundedCorners = true; }