mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1073354 - Update documentation that refers to the now-removed RecordFrameMetrics. r=tn DONBUILD
This commit is contained in:
parent
f6ae363729
commit
a2dc4e9ede
@ -2842,7 +2842,7 @@ public:
|
||||
* for this layer are send to our nsPresContext.
|
||||
* GENERATE_SCROLLABLE_LAYER : only valid on nsDisplaySubDocument (and
|
||||
* subclasses), indicates this layer is to be a scrollable layer, so call
|
||||
* RecordFrameMetrics, etc.
|
||||
* ComputeFrameMetrics, etc.
|
||||
* @param aScrollTarget when VERTICAL_SCROLLBAR or HORIZONTAL_SCROLLBAR
|
||||
* is set in the flags, this parameter should be the ViewID of the
|
||||
* scrollable content this scrollbar is for.
|
||||
|
@ -2707,7 +2707,7 @@ static FrameMetrics
|
||||
CalculateFrameMetricsForDisplayPort(nsIFrame* aScrollFrame,
|
||||
nsIScrollableFrame* aScrollFrameAsScrollable) {
|
||||
// Calculate the metrics necessary for calculating the displayport.
|
||||
// This code has a lot in common with the code in RecordFrameMetrics();
|
||||
// This code has a lot in common with the code in ComputeFrameMetrics();
|
||||
// we may want to refactor this at some point.
|
||||
FrameMetrics metrics;
|
||||
nsPresContext* presContext = aScrollFrame->PresContext();
|
||||
@ -6729,7 +6729,7 @@ nsLayoutUtils::CalculateCompositionSizeForFrame(nsIFrame* aFrame)
|
||||
nsIPresShell* presShell = presContext->PresShell();
|
||||
|
||||
// See the comments in the code that calculates the root
|
||||
// composition bounds in RecordFrameMetrics.
|
||||
// composition bounds in ComputeFrameMetrics.
|
||||
// TODO: Reuse that code here.
|
||||
bool isRootContentDocRootScrollFrame = presContext->IsRootContentDocument()
|
||||
&& aFrame == presShell->GetRootScrollFrame();
|
||||
|
@ -2881,8 +2881,8 @@ ScrollFrameHelper::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
nsLayoutUtils::WantSubAPZC() &&
|
||||
WantAsyncScroll() &&
|
||||
// If we are the root scroll frame for the display root then we don't need a scroll
|
||||
// info layer to make a RecordFrameMetrics call for us as
|
||||
// nsDisplayList::PaintForFrame already calls RecordFrameMetrics for us.
|
||||
// info layer to make a ComputeFrameMetrics call for us as
|
||||
// nsDisplayList::PaintForFrame already calls ComputeFrameMetrics for us.
|
||||
(!mIsRoot || aBuilder->RootReferenceFrame()->PresContext() != mOuter->PresContext());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user