зеркало из https://github.com/mozilla/gecko-dev.git
Changed GetReflowMetrics() to take a reference to a nsIPresContext
This commit is contained in:
Родитель
a90fe8e1de
Коммит
711c31863c
|
@ -525,7 +525,7 @@ public:
|
||||||
* ascent of the line's children). Note that the metrics returned
|
* ascent of the line's children). Note that the metrics returned
|
||||||
* apply to the frame as it exists at the time of the call.
|
* apply to the frame as it exists at the time of the call.
|
||||||
*/
|
*/
|
||||||
NS_IMETHOD GetReflowMetrics(nsIPresContext* aPresContext,
|
NS_IMETHOD GetReflowMetrics(nsIPresContext& aPresContext,
|
||||||
nsReflowMetrics& aMetrics) = 0;
|
nsReflowMetrics& aMetrics) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1123,7 +1123,7 @@ NS_METHOD nsFrame::ContentChanged(nsIPresShell* aShell,
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_METHOD nsFrame::GetReflowMetrics(nsIPresContext* aPresContext,
|
NS_METHOD nsFrame::GetReflowMetrics(nsIPresContext& aPresContext,
|
||||||
nsReflowMetrics& aMetrics)
|
nsReflowMetrics& aMetrics)
|
||||||
{
|
{
|
||||||
aMetrics.width = mRect.width;
|
aMetrics.width = mRect.width;
|
||||||
|
|
|
@ -174,7 +174,7 @@ public:
|
||||||
nsIPresContext* aPresContext,
|
nsIPresContext* aPresContext,
|
||||||
nsIContent* aChild,
|
nsIContent* aChild,
|
||||||
nsISupports* aSubContent);
|
nsISupports* aSubContent);
|
||||||
NS_IMETHOD GetReflowMetrics(nsIPresContext* aPresContext,
|
NS_IMETHOD GetReflowMetrics(nsIPresContext& aPresContext,
|
||||||
nsReflowMetrics& aMetrics);
|
nsReflowMetrics& aMetrics);
|
||||||
NS_IMETHOD IsSplittable(nsSplittableType& aIsSplittable) const;
|
NS_IMETHOD IsSplittable(nsSplittableType& aIsSplittable) const;
|
||||||
NS_IMETHOD CreateContinuingFrame(nsIPresContext* aPresContext,
|
NS_IMETHOD CreateContinuingFrame(nsIPresContext* aPresContext,
|
||||||
|
|
|
@ -525,7 +525,7 @@ public:
|
||||||
* ascent of the line's children). Note that the metrics returned
|
* ascent of the line's children). Note that the metrics returned
|
||||||
* apply to the frame as it exists at the time of the call.
|
* apply to the frame as it exists at the time of the call.
|
||||||
*/
|
*/
|
||||||
NS_IMETHOD GetReflowMetrics(nsIPresContext* aPresContext,
|
NS_IMETHOD GetReflowMetrics(nsIPresContext& aPresContext,
|
||||||
nsReflowMetrics& aMetrics) = 0;
|
nsReflowMetrics& aMetrics) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Загрузка…
Ссылка в новой задаче