gecko-dev/layout/generic
MartinH 1fd222a2a4 Bug 1475232 - When next line selection moves to a valid frame without line iterator, drill down to a first selectable child with line iterator r=emilio
Also bug 1216483

The problem was that GetNextPrevLineFromeBlockFrame correctly identified the target frame but in case it was a flex/grid container, PeekOffsetForLine didn't accept it as a valid result due to a missing line iterator.

There was an existing case which handled this similarly for a table target, drilling into a first child with line iterator, but it was also incomplete.

Extended the drill condition for flex/grid and made the drilling algorithm more robust to be able to also crawl siblings and skip non-selectable elements (e.g. :before pseudoelement, contenteditable="false")

Differential Revision: https://phabricator.services.mozilla.com/D147752
2022-06-01 09:57:46 +00:00
..
crashtests Bug 1771556 - Handle backdrop capture failing clip check when sub-graph is visible r=gfx-reviewers,lsalzman 2022-05-31 22:55:32 +00:00
test Bug 1769569 - Automatically replace Components.* with C* in sjs files. r=Gijs 2022-05-18 08:13:19 +00:00
AnonymousContentKey.h Bug 1735797 - Fix scrollbar caching on macOS. r=mstange 2021-10-18 18:25:31 +00:00
AspectRatio.cpp Bug 1683424 - Add UseBoxSizing for AspectRatio class, and fix non-replaced element usage. r=TYLin 2020-12-23 22:42:55 +00:00
AspectRatio.h Bug 1690422 - Take box-sizing into account when computing the intrinsic size with the preferred aspect ratio. r=TYLin,mats 2021-02-17 02:41:24 +00:00
AutoCopyListener.h
BRFrame.cpp Bug 1741148 - part 1: Rename `nsINode::ComputeIndexOf` to `ComputeIndexOf_Deprecated` r=smaug 2021-12-09 08:32:30 +00:00
BlockReflowState.cpp Bug 1739260 - Force to advance next band if we cannot get a suitable float available space. r=dholbert 2022-05-19 20:48:42 +00:00
BlockReflowState.h Bug 1739260 - Force to advance next band if we cannot get a suitable float available space. r=dholbert 2022-05-19 20:48:42 +00:00
CSSAlignUtils.cpp
CSSAlignUtils.h
CSSOrderAwareFrameIterator.cpp
CSSOrderAwareFrameIterator.h
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
DetailsFrame.cpp Bug 1685421 - Part 2: Stop using NS_ERROR_DOM_HIERARCHY_REQUEST_ERR in nsINode; r=smaug 2021-06-02 13:43:39 +00:00
DetailsFrame.h
FrameChildList.cpp Bug 1768157 - Remove kSelectPopupList. r=jwatt 2022-05-06 15:46:49 +00:00
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
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
MathMLTextRunFactory.cpp Bug 1747922 - Rename StyleMathMLMathVariant -> StyleMathVariant. 2021-12-30 02:35:54 +01:00
MathMLTextRunFactory.h
PrintedSheetFrame.cpp Bug 1700379 - Move code dealing with transform getters to the frame that we actually wrap its contents around. r=miko 2021-05-04 18:46:44 +00:00
PrintedSheetFrame.h Bug 1691858 - Minor cleanup of our @page rule setup. r=AlaskanEmily 2021-02-12 15:42:38 +00:00
ReflowInput.cpp Bug 1771564 - Constify ComputedStyle usage in nsComputedDOMStyle. r=dholbert 2022-05-28 01:04:24 +00:00
ReflowInput.h Bug 1771564 - Constify ComputedStyle usage in nsComputedDOMStyle. r=dholbert 2022-05-28 01:04:24 +00:00
ReflowOutput.cpp Bug 1770729 - Fix IntersectionObserver overflow: clip on zero-sized elements. r=jwatt 2022-05-23 13:52:48 +00:00
ReflowOutput.h Bug 1770729 - Fix IntersectionObserver overflow: clip on zero-sized elements. r=jwatt 2022-05-23 13:52:48 +00:00
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
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 1767131: run clang-format on the layout/ directory. r=emilio DONTBUILD 2022-04-30 15:25:29 +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 Bug 1312165 - Honor `scroll-snap-stop: always`. r=botond 2022-05-31 00:45:12 +00:00
ScrollSnap.h Bug 1766805 - Introduce intended direction and intended end position concepts. r=botond 2022-05-12 12:25:15 +00:00
ScrollVelocityQueue.cpp
ScrollVelocityQueue.h
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
StickyScrollContainer.cpp Bug 1472602 - Sticky/relative position fixes in nsTableWrapperFrame. r=dholbert 2022-05-23 23:40:42 +00:00
StickyScrollContainer.h
TextDrawTarget.h Bug 1768983 - Add prim flag for checkerboarding backgrounds r=gfx-reviewers,lsalzman 2022-05-15 21:54:25 +00:00
TextOverflow.cpp Bug 1714584 - Part 2: Remove nsDisplayList::RemoveBottom() r=mstange 2022-02-22 23:42:18 +00:00
TextOverflow.h Bug 708901 - Migrate to nsTHashSet in layout. r=emilio 2021-03-24 17:56:46 +00:00
ViewportFrame.cpp Bug 1714584 - Part 1: Decouple nsDisplayList internal list from nsDisplayItems r=mstange 2022-02-22 23:42:18 +00:00
ViewportFrame.h Bug 1720804 - Part 1: Move majority of the display list code inside mozilla namespace r=mattwoodrow 2021-07-19 11:28:20 +00:00
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 1769512 - Implement overflow-clip-margin: <length>. r=jwatt 2022-05-23 07:21:43 +00:00
broken-image.png
folder.png
frame-graph.py
jar.mn
loading-image.png
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 Bug 1669734 - For abspos frames, resolve intrinsic BSize keywords to the actual intrinsic BSize, instead of stretching to fill the available space r=emilio,dholbert 2021-03-15 15:45:18 +00:00
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 Bug 1686603 Part 2 - Add StyleSizeOverrides parameter to ReflowInput's constructor & co. to override data from style system data. r=dholbert 2021-01-26 02:47:40 +00:00
nsBlockDebugFlags.h
nsBlockFrame.cpp Bug 1770981 - Split the nsBlockFrame "line cursor" into separate cursors used for display-list building vs frame queries. r=layout-reviewers,Jamie,emilio 2022-05-26 16:32:10 +00:00
nsBlockFrame.h Bug 1770981 - Split the nsBlockFrame "line cursor" into separate cursors used for display-list building vs frame queries. r=layout-reviewers,Jamie,emilio 2022-05-26 16:32:10 +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 1768983 - Add prim flag for checkerboarding backgrounds r=gfx-reviewers,lsalzman 2022-05-15 21:54:25 +00:00
nsCanvasFrame.h Bug 1728246. Remove unused ComputeVisibility infrastructure. r=mattwoodrow 2021-08-31 20:52:54 +00:00
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 1768983 - Add prim flag for checkerboarding backgrounds r=gfx-reviewers,lsalzman 2022-05-15 21:54:25 +00:00
nsContainerFrame.h Bug 708901 - Migrate to nsTHashSet in layout. r=emilio 2021-03-24 17:56:46 +00:00
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 Bug 1686603 Part 2 - Add StyleSizeOverrides parameter to ReflowInput's constructor & co. to override data from style system data. r=dholbert 2021-01-26 02:47:40 +00:00
nsFlexContainerFrame.cpp Bug 1760658 - Part 1: Apply automatic content-based minimum on flex container. r=emilio 2022-05-02 20:06:32 +00:00
nsFlexContainerFrame.h Bug 1758020 - Revise MoveFlexItemToFinalPosition(). r=dholbert 2022-03-10 19:17:44 +00:00
nsFloatManager.cpp Bug 1739260 - Force to advance next band if we cannot get a suitable float available space. r=dholbert 2022-05-19 20:48:42 +00:00
nsFloatManager.h Bug 1739260 - Force to advance next band if we cannot get a suitable float available space. r=dholbert 2022-05-19 20:48:42 +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 Bug 1768157 - Remove kSelectPopupList. r=jwatt 2022-05-06 15:46:49 +00:00
nsFrameSelection.cpp Bug 1771448 - part 4: Rename `HTMLEditor::GetActiveEditingHost` to `ComputeEditingHost` r=m_kato 2022-05-31 03:41:01 +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 Bug 1542807 part 2 - Remove (now unused) nsBulletFrame. r=emilio 2021-06-14 01:22:05 +00:00
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 1312165 - Parse scroll-snap-stop style and propagate it to APZ side. r=emilio,botond 2022-05-31 00:45:11 +00:00
nsGfxScrollFrame.h Bug 1770287 - Drop `const Maybe<nsPoint>& aDestination` argument from scroll snap related functions. r=tnikkel 2022-05-20 02:50:57 +00:00
nsGridContainerFrame.cpp Bug 1760658 - Part 2: Apply automatic content-based minimum on grid container. r=emilio 2022-05-02 20:06:33 +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 Bug 1494330 Part 1 - Make NS_NewListControlFrame() return nsListControlFrame*. r=layout-reviewers,boris 2021-07-07 03:11:06 +00:00
nsIAnonymousContentCreator.h Bug 1679522 - Fix include directives and forward declarations. r=andi,necko-reviewers,jgilbert 2021-03-25 10:19:44 +00:00
nsIFrame.cpp Bug 1475232 - When next line selection moves to a valid frame without line iterator, drill down to a first selectable child with line iterator r=emilio 2022-06-01 09:57:46 +00:00
nsIFrame.h Bug 1769774 - Stop tracking painted PresShells. r=mstange 2022-05-27 11:12:19 +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
nsIScrollPositionListener.h
nsIScrollableFrame.h Bug 1766805 - Introduce intended direction and intended end position concepts. r=botond 2022-05-12 12:25:15 +00:00
nsIStatefulFrame.h
nsImageFrame.cpp Bug 1767124 - Change the return type of nsLayoutUtils::GetTransformToAncestorScaleExcludingAnimated to MatrixScalesDouble. r=botond 2022-05-27 19:23:33 +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 Bug 1696721 part 2 - Refactor DoIntrinsicInlineISize to make it accept a function for handling children. r=dholbert 2021-03-23 10:26:17 +00:00
nsInlineFrame.h Bug 1667501 - Add an nsIFrame::IsFrameOfType bit to say whether frames support aspect-ratio. r=TYLin 2021-02-11 00:19:58 +00:00
nsIntervalSet.cpp
nsIntervalSet.h
nsLeafFrame.cpp Bug 1686603 Part 2 - Add StyleSizeOverrides parameter to ReflowInput's constructor & co. to override data from style system data. r=dholbert 2021-01-26 02:47:40 +00:00
nsLeafFrame.h Bug 1686603 Part 2 - Add StyleSizeOverrides parameter to ReflowInput's constructor & co. to override data from style system data. r=dholbert 2021-01-26 02:47:40 +00:00
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 1771571 - Fix include header mess between frame constructor / restyle manager. r=layout-reviewers,AlaskanEmily 2022-05-31 20:07:38 +00:00
nsPageContentFrame.h Bug 1700379 - Move code dealing with transform getters to the frame that we actually wrap its contents around. r=miko 2021-05-04 18:46:44 +00:00
nsPageFrame.cpp Bug 1765011 - Ensure we do not truncate header/footer text in between surrogate pair characters r=jfkthame 2022-05-05 19:13:24 +00:00
nsPageFrame.h Bug 1647851 Part 2 - Apply CSS page-size when printing r=emilio 2021-06-22 19:41:57 +00:00
nsPageSequenceFrame.cpp Bug 1714584 - Part 1: Decouple nsDisplayList internal list from nsDisplayItems r=mstange 2022-02-22 23:42:18 +00:00
nsPageSequenceFrame.h Bug 1700379 - Move code dealing with transform getters to the frame that we actually wrap its contents around. r=miko 2021-05-04 18:46:44 +00:00
nsPlaceholderFrame.cpp Bug 1771571 - Fix include header mess between frame constructor / restyle manager. r=layout-reviewers,AlaskanEmily 2022-05-31 20:07:38 +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 Bug 1686603 Part 2 - Add StyleSizeOverrides parameter to ReflowInput's constructor & co. to override data from style system data. r=dholbert 2021-01-26 02:47:40 +00:00
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 Bug 1697529 - Implement visibility: collapse support for ruby text. r=dholbert 2021-03-12 09:28:00 +00:00
nsRubyTextFrame.h Bug 1697529 - Implement visibility: collapse support for ruby text. r=dholbert 2021-03-12 09:28:00 +00:00
nsSplittableFrame.cpp Bug 1725555 - patch 1 - Cache first-continuation pointer in nsContinuingTextFrame so that accessing FirstContinuation() is constant-time. r=emilio 2021-08-27 16:23:24 +00:00
nsSplittableFrame.h Bug 1519636 - Reformat recent changes to the Google coding style r=andi 2020-12-07 10:17:57 +00:00
nsSubDocumentFrame.cpp Bug 1766650 - Store modified frames in display root frame RetainedDisplayListBuilder r=tnikkel 2022-05-30 14:20:58 +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 Bug 1770981 - Split the nsBlockFrame "line cursor" into separate cursors used for display-list building vs frame queries. r=layout-reviewers,Jamie,emilio 2022-05-26 16:32:10 +00: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 1769869 - Fix nsVideoFrame::ReflowFinished. r=jfkthame 2022-05-18 16:33:25 +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