/* virtual */ nsSize nsPlaceholderFrame::GetMinSize(nsBoxLayoutState& aBoxLayoutState) { nsSize size(0, 0); DISPLAY_MIN_SIZE(this, size); return size; }
nsSize nsImageBoxFrame::GetMinSize(nsBoxLayoutState& aState) { // An image can always scale down to (0,0). nsSize size(0,0); DISPLAY_MIN_SIZE(this, size); AddBorderAndPadding(size); nsIBox::AddCSSMinSize(aState, this, size); return size; }
nsSize nsMenuFrame::GetMinSize(nsBoxLayoutState& aBoxLayoutState) { nsSize size = nsBoxFrame::GetMinSize(aBoxLayoutState); DISPLAY_MIN_SIZE(this, size); if (IsSizedToPopup(mContent, PR_TRUE)) SizeToPopup(aBoxLayoutState, size); return size; }
nsSize nsBox::GetMinSize(nsBoxLayoutState& aState) { NS_ASSERTION(aState.GetRenderingContext(), "must have rendering context"); nsSize min(0,0); DISPLAY_MIN_SIZE(this, min); if (IsCollapsed(aState)) return min; AddBorderAndPadding(min); nsIBox::AddCSSMinSize(aState, this, min); return min; }
/** * Ok return our dimensions */ nsSize nsTextBoxFrame::GetMinSize(nsBoxLayoutState& aBoxLayoutState) { CalcTextSize(aBoxLayoutState); nsSize size = mTextSize; DISPLAY_MIN_SIZE(this, size); // if there is cropping our min width becomes our border and padding if (mCropType != CropNone) size.width = 0; AddBorderAndPadding(size); nsIBox::AddCSSMinSize(aBoxLayoutState, this, size); return size; }