Bug 893962 - Refactor the application of relative positioning. r=dbaron
This commit is contained in:
@@ -838,6 +838,16 @@ nsHTMLReflowState::ComputeRelativeOffsets(uint8_t aCBDirection,
|
||||
}
|
||||
}
|
||||
|
||||
/* static */ void
|
||||
nsHTMLReflowState::ApplyRelativePositioning(const nsStyleDisplay* aDisplay,
|
||||
const nsMargin &aComputedOffsets,
|
||||
nsPoint* aPosition)
|
||||
{
|
||||
if (NS_STYLE_POSITION_RELATIVE == aDisplay->mPosition) {
|
||||
*aPosition += nsPoint(aComputedOffsets.left, aComputedOffsets.top);
|
||||
}
|
||||
}
|
||||
|
||||
nsIFrame*
|
||||
nsHTMLReflowState::GetHypotheticalBoxContainer(nsIFrame* aFrame,
|
||||
nscoord& aCBLeftEdge,
|
||||
|
||||
Reference in New Issue
Block a user