mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
bug 5522 - initialize max element size. sr=attinasi, r=peterl.
This commit is contained in:
parent
863ecb03f2
commit
9516920471
@ -678,6 +678,11 @@ nsObjectFrame::Reflow(nsIPresContext* aPresContext,
|
||||
|
||||
// Get our desired size
|
||||
GetDesiredSize(aPresContext, aReflowState, aMetrics);
|
||||
// initialize max element size if present
|
||||
if (aMetrics.maxElementSize) {
|
||||
aMetrics.maxElementSize->width = 0;
|
||||
aMetrics.maxElementSize->height = 0;
|
||||
}
|
||||
|
||||
// could be an image
|
||||
nsIFrame * child = mFrames.FirstChild();
|
||||
|
@ -678,6 +678,11 @@ nsObjectFrame::Reflow(nsIPresContext* aPresContext,
|
||||
|
||||
// Get our desired size
|
||||
GetDesiredSize(aPresContext, aReflowState, aMetrics);
|
||||
// initialize max element size if present
|
||||
if (aMetrics.maxElementSize) {
|
||||
aMetrics.maxElementSize->width = 0;
|
||||
aMetrics.maxElementSize->height = 0;
|
||||
}
|
||||
|
||||
// could be an image
|
||||
nsIFrame * child = mFrames.FirstChild();
|
||||
|
Loading…
Reference in New Issue
Block a user