mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-26 14:30:27 +00:00
partly imported Bug 1183896. Don't assume that relatively positioned table cells actually have positioned offsets computed, because in the case of position:sticky they don't. r=dholbert
This commit is contained in:
@@ -991,8 +991,12 @@ nsTableRowFrame::ReflowChildren(nsPresContext* aPresContext,
|
||||
// We didn't reflow. Do the positioning part of what
|
||||
// MovePositionBy does internally. (This codepath should really
|
||||
// be merged into the else below if we can.)
|
||||
LogicalMargin computedOffsets(wm, *static_cast<nsMargin*>
|
||||
(kidFrame->Properties().Get(nsIFrame::ComputedOffsetProperty())));
|
||||
nsMargin* computedOffsetProp = static_cast<nsMargin*>
|
||||
(kidFrame->Properties().Get(nsIFrame::ComputedOffsetProperty()));
|
||||
// Bug 975644: a position:sticky kid can end up with a null
|
||||
// property value here.
|
||||
LogicalMargin computedOffsets(wm, computedOffsetProp ?
|
||||
*computedOffsetProp : nsMargin());
|
||||
nsHTMLReflowState::ApplyRelativePositioning(kidFrame, wm, computedOffsets,
|
||||
&kidPosition, containerWidth);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user