зеркало из https://github.com/mozilla/gecko-dev.git
fix VC5 bustage, needed to add const qualifiers to GetWidgetView, ViewToWidget.
This commit is contained in:
Родитель
9d01025470
Коммит
7b5640c230
|
@ -2698,7 +2698,7 @@ void nsViewManager :: RestartTimer(void)
|
|||
SetFrameRate(mTrueFrameRate);
|
||||
}
|
||||
|
||||
nsIView* nsViewManager::GetWidgetView(nsIView *aView)
|
||||
nsIView* nsViewManager::GetWidgetView(nsIView *aView) const
|
||||
{
|
||||
while (aView != nsnull) {
|
||||
PRBool hasWidget;
|
||||
|
@ -2710,7 +2710,7 @@ nsIView* nsViewManager::GetWidgetView(nsIView *aView)
|
|||
return nsnull;
|
||||
}
|
||||
|
||||
void nsViewManager::ViewToWidget(nsIView *aView, nsIView* aWidgetView, nsRect &aRect)
|
||||
void nsViewManager::ViewToWidget(nsIView *aView, nsIView* aWidgetView, nsRect &aRect) const
|
||||
{
|
||||
while (aView != aWidgetView) {
|
||||
nscoord x, y;
|
||||
|
|
|
@ -167,13 +167,13 @@ private:
|
|||
* Returns the nearest parent view with an attached widget. Can be the
|
||||
* same view as passed-in.
|
||||
*/
|
||||
nsIView* GetWidgetView(nsIView *aView);
|
||||
nsIView* GetWidgetView(nsIView *aView) const;
|
||||
|
||||
/**
|
||||
* Transforms a rectangle from specified view's coordinate system to
|
||||
* the first parent that has an attached widget.
|
||||
*/
|
||||
void ViewToWidget(nsIView *aView, nsIView* aWidgetView, nsRect &aRect);
|
||||
void ViewToWidget(nsIView *aView, nsIView* aWidgetView, nsRect &aRect) const;
|
||||
// void WidgetToView(nsIView* aView, nsRect &aWidgetRect);
|
||||
|
||||
private:
|
||||
|
|
Загрузка…
Ссылка в новой задаче