From d22e2d381388c8de442bf6dd10d44a8d3cc9e25f Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Fri, 15 Apr 2016 19:37:35 -0400 Subject: [PATCH] Bug 1264784 - part 3 - make nsIFrame::GetNearestWidget methods non-virtual; r=dholbert Nothing overrides these methods, and making them non-virtual reduces vtable sizes and improves code size and performance. --- layout/generic/nsIFrame.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/layout/generic/nsIFrame.h b/layout/generic/nsIFrame.h index 30dc69b29c28..3d23206d249a 100644 --- a/layout/generic/nsIFrame.h +++ b/layout/generic/nsIFrame.h @@ -2178,16 +2178,15 @@ public: * view and the view has a widget, then this frame's widget is * returned, otherwise this frame's geometric parent is checked * recursively upwards. - * XXX virtual because gfx callers use it! (themes) */ - virtual nsIWidget* GetNearestWidget() const; + nsIWidget* GetNearestWidget() const; /** * Same as GetNearestWidget() above but uses an outparam to return the offset * of this frame to the returned widget expressed in appunits of |this| (the * widget might be in a different document with a different zoom). */ - virtual nsIWidget* GetNearestWidget(nsPoint& aOffset) const; + nsIWidget* GetNearestWidget(nsPoint& aOffset) const; /** * Get the "type" of the frame. May return nullptr.