Bug 1909761 Part 6 - Delete or improve obsolete comments in layout. r=layout-reviewers,emilio

Differential Revision: https://phabricator.services.mozilla.com/D219525
This commit is contained in:
Ting-Yu Lin 2024-09-03 04:25:43 +00:00
parent 4f0616a1c6
commit 5959ec6b84
3 changed files with 1 additions and 8 deletions

View File

@ -225,10 +225,7 @@ struct SizeComputationInput {
};
/**
* State passed to a frame during reflow or intrinsic size calculation.
*
* XXX Refactor so only a base class (nsSizingState?) is used for intrinsic
* size calculation.
* State passed to a frame during reflow.
*
* @see nsIFrame#Reflow()
*/

View File

@ -367,8 +367,6 @@ CSSIntSize nsHTMLCanvasFrame::GetCanvasSize() const {
nscoord nsHTMLCanvasFrame::IntrinsicISize(const IntrinsicSizeInput& aInput,
IntrinsicISizeType aType) {
// XXX The caller doesn't account for constraints of the height,
// min-height, and max-height properties.
if (Maybe<nscoord> containISize = ContainIntrinsicISize()) {
return *containISize;
}

View File

@ -1469,8 +1469,6 @@ nscoord nsImageFrame::GetContinuationOffset() const {
nscoord nsImageFrame::IntrinsicISize(const IntrinsicSizeInput& aInput,
IntrinsicISizeType aType) {
// XXX The caller doesn't account for constraints of the block-size,
// min-block-size, and max-block-size properties.
EnsureIntrinsicSizeAndRatio();
return mIntrinsicSize.ISize(GetWritingMode()).valueOr(0);
}