fune/layout/generic
Boris Chiou a3949a5f7a Bug 1696560 - Apply transferred min & max sizes for flex base size if main is the inline axis. r=dholbert
Basically, the transferred min & max sizes shouldn't override the min &
max sizing properties, so applying it earlier than these properties
should be identical. This just makes the flex base size and main size be
more correct at the beginning (and so other adjustments of sizes
in flex algorithm can override the transferred min/max sizes), for
non-replaced elements.

Note:
In Chromium code, it clamps the flex items' base size by transferred min &
max sizes, but the computation of items' used min & used max sizes doesn't
include the transferred min & max sizes.

So in this patch, I'm trying to make this patch simple: we let minimum &
maximum sizes only taken into account for flex base size and only for
non-replaced elements for now. So the behavior should be similar to other
browsers.

And we may have to update this tentative solution once these spec words get
updated.

Differential Revision: https://phabricator.services.mozilla.com/D144499
2022-04-26 19:31:25 +00:00
..
crashtests Bug 1751828 - Clamp the inline size when reflowing text. r=dholbert 2022-03-09 09:16:31 +00:00
test Bug 1763598 - Fix docshell_helpers.js for session history in the parent. r=smaug 2022-04-15 20:44:38 +00:00
AnonymousContentKey.h Bug 1735797 - Fix scrollbar caching on macOS. r=mstange 2021-10-18 18:25:31 +00:00
AspectRatio.cpp
AspectRatio.h
AutoCopyListener.h
BlockReflowState.cpp Bug 1756008 Part 4 - Replace "BlockReflowInput" with "BlockReflowState". r=layout-reviewers,emilio 2022-02-23 21:22:43 +00:00
BlockReflowState.h Bug 1756008 Part 5 - Manual fix for comments and variables regarding BlockReflowState. r=layout-reviewers,emilio 2022-02-23 21:22:44 +00:00
BRFrame.cpp Bug 1741148 - part 1: Rename nsINode::ComputeIndexOf to ComputeIndexOf_Deprecated r=smaug 2021-12-09 08:32:30 +00:00
broken-image.png
ColumnSetWrapperFrame.cpp Bug 1755565 - Implement contain: inline-size. r=emilio,dholbert 2022-04-19 17:44:16 +00:00
ColumnSetWrapperFrame.h
ColumnUtils.cpp
ColumnUtils.h
CSSAlignUtils.cpp
CSSAlignUtils.h
CSSOrderAwareFrameIterator.cpp
CSSOrderAwareFrameIterator.h
DetailsFrame.cpp
DetailsFrame.h
folder.png
frame-graph.py
FrameChildList.cpp
FrameChildList.h
FrameClass.py Bug 1758564 - Allow rendering children of <img>'s shadow root. r=dholbert 2022-03-10 05:11:38 +00:00
FrameClasses.py Bug 1758564 - Allow rendering children of <img>'s shadow root. r=dholbert 2022-03-10 05:11:38 +00:00
GenerateFrameLists.py
jar.mn
JustificationUtils.h
LayoutMessageUtils.h Bug 1754037 - Part 3c: Automatically update all ParamTraits implementations, r=ipc-reviewers,media-playback-reviewers,bryce,mccr8 2022-03-04 15:39:41 +00:00
loading-image.png
MathMLTextRunFactory.cpp Bug 1747922 - Rename StyleMathMLMathVariant -> StyleMathVariant. 2021-12-30 02:35:54 +01:00
MathMLTextRunFactory.h
moz.build Bug 1756008 Part 1 - Rename BlockReflowInput.{h,cpp} to BlockReflowState.{h,cpp}, and fix #includes. r=emilio 2022-02-23 21:22:42 +00:00
nsAbsoluteContainingBlock.cpp Bug 1707643 part 2: When computing static position of abspos grid child, perform alignment within content-box, rather than padding box. r=emilio 2021-11-09 06:14:21 +00:00
nsAbsoluteContainingBlock.h
nsAtomicContainerFrame.h
nsBackdropFrame.cpp Bug 1730774 part 2: Add includes and forward-decls to fix non-unified-build bustage in layout/generic. r=TYLin 2021-09-15 16:15:02 +00:00
nsBackdropFrame.h
nsBlockDebugFlags.h
nsBlockFrame.cpp Bug 1755565 - Implement contain: inline-size. r=emilio,dholbert 2022-04-19 17:44:16 +00:00
nsBlockFrame.h Bug 1756008 Part 5 - Manual fix for comments and variables regarding BlockReflowState. r=layout-reviewers,emilio 2022-02-23 21:22:44 +00:00
nsBlockReflowContext.cpp Bug 1756008 Part 4 - Replace "BlockReflowInput" with "BlockReflowState". r=layout-reviewers,emilio 2022-02-23 21:22:43 +00:00
nsBlockReflowContext.h Bug 1756008 Part 4 - Replace "BlockReflowInput" with "BlockReflowState". r=layout-reviewers,emilio 2022-02-23 21:22:43 +00:00
nsCanvasFrame.cpp Bug 1755747 - Add support for antialiased non-snapped rectangles. r=gfx-reviewers,aosmond 2022-02-23 13:37:39 +00:00
nsCanvasFrame.h
nsColumnSetFrame.cpp Bug 1756008 Part 2 - Fix a comment in nsColumnSetFrame. r=emilio 2022-02-23 21:22:43 +00:00
nsColumnSetFrame.h Bug 1730774 part 2: Add includes and forward-decls to fix non-unified-build bustage in layout/generic. r=TYLin 2021-09-15 16:15:02 +00:00
nsContainerFrame.cpp Bug 1762298 - Inherit used color-scheme from embedder <browser> elements. r=nika,dao,Gijs 2022-04-04 18:22:04 +00:00
nsContainerFrame.h
nsContainerFrameInlines.h Bug 1733952 - When computing inline intrinsic sizes, resolve with a 0 percentage basis rather than just resolving to zero if there's a percentage. r=jfkthame 2021-10-04 15:20:30 +00:00
nsDirection.h
nsFirstLetterFrame.cpp Bug 1756008 Part 3 - Rename nsLineLayout::mBlockReflowInput. r=layout-reviewers,emilio 2022-02-23 21:22:43 +00:00
nsFirstLetterFrame.h
nsFlexContainerFrame.cpp Bug 1755565 - Implement contain: inline-size. r=emilio,dholbert 2022-04-19 17:44:16 +00:00
nsFlexContainerFrame.h Bug 1758020 - Revise MoveFlexItemToFinalPosition(). r=dholbert 2022-03-10 19:17:44 +00:00
nsFloatManager.cpp
nsFloatManager.h Bug 1756008 Part 4 - Replace "BlockReflowInput" with "BlockReflowState". r=layout-reviewers,emilio 2022-02-23 21:22:43 +00:00
nsFontInflationData.cpp Bug 1744009 - Simplify combobox <select> code. r=mconley,dholbert 2022-01-17 11:10:05 +00:00
nsFontInflationData.h
nsFrameList.cpp Bug 1738057 - Split out BidiEmbeddingLevel into its own file; r=platform-i18n-reviewers,dminor 2021-11-16 15:11:58 +00:00
nsFrameList.h
nsFrameSelection.cpp Bug 1760609 - Treat line movement on Linux/macOS like Windows. r=masayuki 2022-03-22 11:24:03 +00:00
nsFrameSelection.h Bug 1713050 - P1: Add granularity to selection change notification. r=smaug 2022-03-16 05:56:25 +00:00
nsFrameSetFrame.cpp Bug 1738614 - Remove other Widget* colors. r=mstange 2021-11-02 18:08:07 +00:00
nsFrameSetFrame.h
nsFrameState.cpp
nsFrameState.h
nsFrameStateBits.h Bug 1756008 Part 4 - Replace "BlockReflowInput" with "BlockReflowState". r=layout-reviewers,emilio 2022-02-23 21:22:43 +00:00
nsGfxScrollFrame.cpp Bug 1695139 - Remove a warning that nobody is looking into. r=tnikkel 2022-04-22 10:57:02 +00:00
nsGfxScrollFrame.h Bug 1761239. Use an EnumSet for nsIScrollableFrame::IsScrollAnimating. r=botond 2022-03-26 02:22:57 +00:00
nsGridContainerFrame.cpp Bug 1755565 - Implement contain: inline-size. r=emilio,dholbert 2022-04-19 17:44:16 +00:00
nsGridContainerFrame.h Bug 1740702 - Ensure grid's cached measurement won't prevent reflow from happending when its subtree is dirty r=dholbert 2022-01-12 21:51:45 +00:00
nsHTMLCanvasFrame.cpp Bug 1755565 - Implement contain: inline-size. r=emilio,dholbert 2022-04-19 17:44:16 +00:00
nsHTMLCanvasFrame.h Bug 1751806. Remove active content tracking from ActiveLayerTracker as it is unused. r=mstange 2022-01-26 11:39:13 +00:00
nsHTMLParts.h
nsIAnonymousContentCreator.h
nsIFrame.cpp Bug 1696560 - Apply transferred min & max sizes for flex base size if main is the inline axis. r=dholbert 2022-04-26 19:31:25 +00:00
nsIFrame.h Bug 1762407 - Do not scroll content with content-visibility: hidden ancestors into view r=emilio 2022-04-07 10:38:27 +00:00
nsIFrameInlines.h Bug 1758018 Part 2 - Add helpers testing only "position:relative", and adapt them at some callsites. r=emilio 2022-03-04 03:02:01 +00:00
nsILineIterator.h Bug 1746934 - Give default value for LineInfo::mIsWrapped r=emilio 2021-12-21 00:56:49 +00:00
nsImageFrame.cpp Bug 1733313 - Change EffectsInfo::mScaleX/Y into a Scale2D and rename to mRasterScale. r=botond 2022-04-26 03:12:38 +00:00
nsImageFrame.h Bug 1758564 - Allow rendering children of <img>'s shadow root. r=dholbert 2022-03-10 05:11:38 +00:00
nsImageMap.cpp Bug 1751473 Part 2 - Use CSSIntPoint instead of nsIntPoint in image event handling code. r=emilio 2022-01-22 01:07:19 +00:00
nsImageMap.h Bug 1751473 Part 2 - Use CSSIntPoint instead of nsIntPoint in image event handling code. r=emilio 2022-01-22 01:07:19 +00:00
nsInlineFrame.cpp
nsInlineFrame.h
nsIntervalSet.cpp
nsIntervalSet.h
nsIScrollableFrame.h Bug 1761239. Use an EnumSet for nsIScrollableFrame::IsScrollAnimating. r=botond 2022-03-26 02:22:57 +00:00
nsIScrollPositionListener.h
nsIStatefulFrame.h
nsLeafFrame.cpp
nsLeafFrame.h
nsLineBox.cpp Bug 1732674 - Make nsLineIterator a lightweight wrapper for an nsLineList_iterator instead of building a separate array. r=emilio 2021-11-09 15:55:54 +00:00
nsLineBox.h Bug 1519636 - First reformat with clang-format 13.0.0. r=firefox-build-system-reviewers,sylvestre,mhentges 2021-11-16 08:07:30 +00:00
nsLineLayout.cpp Bug 1758018 Part 1 - Rename the helpers testing "position:relative" or "position:sticky". r=emilio 2022-03-04 03:02:00 +00:00
nsLineLayout.h Bug 1758018 Part 1 - Rename the helpers testing "position:relative" or "position:sticky". r=emilio 2022-03-04 03:02:00 +00:00
nsPageContentFrame.cpp Bug 1714584 - Part 2: Remove nsDisplayList::RemoveBottom() r=mstange 2022-02-22 23:42:18 +00:00
nsPageContentFrame.h
nsPageFrame.cpp Bug 1714584 - Part 1: Decouple nsDisplayList internal list from nsDisplayItems r=mstange 2022-02-22 23:42:18 +00:00
nsPageFrame.h
nsPageSequenceFrame.cpp Bug 1714584 - Part 1: Decouple nsDisplayList internal list from nsDisplayItems r=mstange 2022-02-22 23:42:18 +00:00
nsPageSequenceFrame.h
nsPlaceholderFrame.cpp Bug 1746310 - Remove nsMenuPopupFrame::GenerateFrames and related code. r=tnikkel 2021-12-23 12:55:34 +00:00
nsPlaceholderFrame.h
nsQueryFrame.h
nsRubyBaseContainerFrame.cpp Bug 1757230 - Add missing includes elsewhere to unbust hybrid builds. 2022-02-26 01:08:16 +01:00
nsRubyBaseContainerFrame.h
nsRubyBaseFrame.cpp
nsRubyBaseFrame.h
nsRubyContentFrame.cpp
nsRubyContentFrame.h
nsRubyFrame.cpp Bug 1730774 part 2: Add includes and forward-decls to fix non-unified-build bustage in layout/generic. r=TYLin 2021-09-15 16:15:02 +00:00
nsRubyFrame.h
nsRubyTextContainerFrame.cpp Bug 1730774 part 2: Add includes and forward-decls to fix non-unified-build bustage in layout/generic. r=TYLin 2021-09-15 16:15:02 +00:00
nsRubyTextContainerFrame.h
nsRubyTextFrame.cpp
nsRubyTextFrame.h
nsSplittableFrame.cpp
nsSplittableFrame.h
nsSubDocumentFrame.cpp Bug 1733313 - Change EffectsInfo::mScaleX/Y into a Scale2D and rename to mRasterScale. r=botond 2022-04-26 03:12:38 +00:00
nsSubDocumentFrame.h Bug 1765331 - Account for dest rect correctly in nsDisplayRemote painting. r=tnikkel 2022-04-20 11:00:58 +00:00
nsTextFrame.cpp Backed out changeset 7985a1fa0789 (bug 1764768) for causing multiple failures CLOSED TREE 2022-04-20 22:25:02 +03:00
nsTextFrame.h Bug 1757230 - Avoid unneeded includes in nsTextFrame.h. r=longsonr 2022-02-25 22:18:11 +00:00
nsTextFrameUtils.cpp Bug 1744009 - Simplify combobox <select> code. r=mconley,dholbert 2022-01-17 11:10:05 +00:00
nsTextFrameUtils.h Bug 1744009 - Simplify combobox <select> code. r=mconley,dholbert 2022-01-17 11:10:05 +00:00
nsTextRunTransformations.cpp Bug 1744152 - Make the aAllUpperCase parameter of TransformString more generic. r=jfkthame 2021-12-03 11:45:48 +00:00
nsTextRunTransformations.h Bug 1747922 - Rename StyleMathMLMathVariant -> StyleMathVariant. 2021-12-30 02:35:54 +01:00
nsVideoFrame.cpp Bug 1755565 - Implement contain: inline-size. r=emilio,dholbert 2022-04-19 17:44:16 +00:00
nsVideoFrame.h Bug 1716612 - Don't apply aspect-ratio to audio elements with controls. r=emilio 2022-04-14 02:10:34 +00:00
PrintedSheetFrame.cpp
PrintedSheetFrame.h
ReflowInput.cpp Bug 1765632: Coalesce two variables into one Maybe<> variable, in ReflowInput::CalculateHypotheticalPosition. r=dshin 2022-04-20 22:35:20 +00:00
ReflowInput.h Bug 1758020 - Revise MoveFlexItemToFinalPosition(). r=dholbert 2022-03-10 19:17:44 +00:00
ReflowOutput.cpp
ReflowOutput.h
RubyUtils.cpp
RubyUtils.h
ScrollAnchorContainer.cpp Bug 1761239. Use an EnumSet for nsIScrollableFrame::IsScrollAnimating. r=botond 2022-03-26 02:22:57 +00:00
ScrollAnchorContainer.h Bug 1738781 - Invalidate anchor after layout if we can find a better one. r=dholbert 2021-11-02 10:59:50 +00:00
ScrollAnimationBezierPhysics.cpp
ScrollAnimationBezierPhysics.h
ScrollAnimationMSDPhysics.cpp Bug 1759958 - Implement ScrollAnimationMSDPhysics::ApplyContentShift() correctly. r=hiro 2022-03-18 05:13:59 +00:00
ScrollAnimationMSDPhysics.h Bug 1759958 - Implement ScrollAnimationMSDPhysics::ApplyContentShift() correctly. r=hiro 2022-03-18 05:13:59 +00:00
ScrollAnimationPhysics.h Bug 1759958 - Add comments to clarify the purpose of ScrollAnimationPhysics::Update() and ApplyContentShift(). r=hiro 2022-03-18 05:13:59 +00:00
ScrollbarActivity.cpp Bug 1756831. When considering mousemoves over scroll frames to show overlay scrollbars rejects mousemove over content descendants that aren't frame descandants. r=emilio 2022-03-22 15:31:45 +00:00
ScrollbarActivity.h
ScrollbarPreferences.h
ScrollGeneration.cpp Bug 1571758 - Introduce scroll generation in APZC and SampledAPZCState and inform it to the scrollable frame on the main-thread via RepaintRequest. r=botond 2022-01-31 09:40:33 +00:00
ScrollGeneration.h Bug 1571758 - Inform apz scroll generation to WebRender's ScrollFrame from the main-thread. r=botond 2022-01-31 09:40:35 +00:00
ScrollOrigin.h
ScrollPositionUpdate.cpp Bug 1571758 - Introduce scroll generation in APZC and SampledAPZCState and inform it to the scrollable frame on the main-thread via RepaintRequest. r=botond 2022-01-31 09:40:33 +00:00
ScrollPositionUpdate.h Bug 1571758 - Introduce scroll generation in APZC and SampledAPZCState and inform it to the scrollable frame on the main-thread via RepaintRequest. r=botond 2022-01-31 09:40:33 +00:00
ScrollSnap.cpp
ScrollSnap.h
ScrollVelocityQueue.cpp
ScrollVelocityQueue.h
StickyScrollContainer.cpp
StickyScrollContainer.h
TextDrawTarget.h Bug 1761404 - Add DrawTarget DrawShadow API call. r=jrmuizel,gfx-reviewers 2022-04-01 19:03:29 +00:00
TextOverflow.cpp Bug 1714584 - Part 2: Remove nsDisplayList::RemoveBottom() r=mstange 2022-02-22 23:42:18 +00:00
TextOverflow.h
ViewportFrame.cpp Bug 1714584 - Part 1: Decouple nsDisplayList internal list from nsDisplayItems r=mstange 2022-02-22 23:42:18 +00:00
ViewportFrame.h
Visibility.h
WBRFrame.cpp Bug 1730774 part 2: Add includes and forward-decls to fix non-unified-build bustage in layout/generic. r=TYLin 2021-09-15 16:15:02 +00:00
WritingModes.h Bug 1738057 - Split out BidiEmbeddingLevel into its own file; r=platform-i18n-reviewers,dminor 2021-11-16 15:11:58 +00:00