Bug 1906562. Remove useless IsPopup check in nsIFrame::GetTransformMatrix. r=layout-reviewers,emilio
Bug 1801025 removed any special handling for popups in this function, but we didn't remove popups from the stopping conditions. Skipping the call saves some time, and also avoids extra function calls. Differential Revision: https://phabricator.services.mozilla.com/D215863
This commit is contained in:
@@ -7469,7 +7469,7 @@ Matrix4x4Flagged nsIFrame::GetTransformMatrix(ViewportType aViewportType,
|
||||
const nsIFrame* current = this;
|
||||
auto shouldStopAt = [](const nsIFrame* aCurrent, nsIFrame* aAncestor,
|
||||
uint32_t aFlags) {
|
||||
return aAncestor->IsTransformed() || nsLayoutUtils::IsPopup(aAncestor) ||
|
||||
return aAncestor->IsTransformed() ||
|
||||
ViewportUtils::IsZoomedContentRoot(aAncestor) ||
|
||||
((aFlags & STOP_AT_STACKING_CONTEXT_AND_DISPLAY_PORT) &&
|
||||
(aAncestor->IsStackingContext() ||
|
||||
|
||||
Reference in New Issue
Block a user