зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1317430 - Avoid a unnecessary copy by passing a const & in view/ r=njn
MozReview-Commit-ID: BAZITOmUMVg --HG-- extra : rebase_source : cddf1f80e6a646384f82cf9d70f96eacd09d8efd
This commit is contained in:
Родитель
a8539821a2
Коммит
3b74864611
|
@ -732,7 +732,7 @@ void nsViewManager::WillPaintWindow(nsIWidget* aWidget)
|
|||
}
|
||||
|
||||
bool nsViewManager::PaintWindow(nsIWidget* aWidget,
|
||||
LayoutDeviceIntRegion aRegion)
|
||||
const LayoutDeviceIntRegion& aRegion)
|
||||
{
|
||||
if (!aWidget || !mContext)
|
||||
return false;
|
||||
|
|
|
@ -383,7 +383,7 @@ private:
|
|||
bool IsPaintingAllowed() { return RootViewManager()->mRefreshDisableCount == 0; }
|
||||
|
||||
void WillPaintWindow(nsIWidget* aWidget);
|
||||
bool PaintWindow(nsIWidget* aWidget, LayoutDeviceIntRegion aRegion);
|
||||
bool PaintWindow(nsIWidget* aWidget, const LayoutDeviceIntRegion& aRegion);
|
||||
void DidPaintWindow();
|
||||
|
||||
// Call this when you need to let the viewmanager know that it now has
|
||||
|
|
Загрузка…
Ссылка в новой задаче