зеркало из https://github.com/mozilla/gecko-dev.git
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.
This commit is contained in:
Родитель
0b649ff462
Коммит
d22e2d3813
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче