haikuwebkit/LayoutTests/fast
Alan Bujtas cf7785414a [LFC][IFC] Add support for out-of-flow box static positioning
https://bugs.webkit.org/show_bug.cgi?id=229103

Reviewed by Antti Koivisto.

Source/WebCore:

This patch is in preparation for enabling positioned content for IFC handling.

In this patch we compute the static position for out-of-flow content inside the inline formatting context.
As per spec, the static position of an out-of-flow box is computed as if the position was set to static.
However it does not mean that the out-of-flow box should be involved in the inline layout process.
Instead we figure out this static position after the inline layout by looking at
the previous sibling (or parent) box's geometry and place the out-of-flow box at the logical right position.

* layout/formattingContexts/inline/InlineFormattingContext.cpp:
(WebCore::Layout::InlineFormattingContext::layoutInFlowContent):
(WebCore::Layout::InlineFormattingContext::lineLayoutForIntergration):
(WebCore::Layout::InlineFormattingContext::computeStaticPositionForOutOfFlowContent):
(WebCore::Layout::InlineFormattingContext::computedIntrinsicWidthConstraints):
(WebCore::Layout::InlineFormattingContext::collectContentIfNeeded):
(WebCore::Layout::InlineFormattingContext::collectInlineContentIfNeeded): Deleted.
* layout/formattingContexts/inline/InlineFormattingContext.h:

LayoutTests:

* fast/inline/out-of-flow-with-static-position-in-ifc-expected.html: Added.
* fast/inline/out-of-flow-with-static-position-in-ifc.html: Added.


Canonical link: https://commits.webkit.org/240814@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281424 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-08-23 00:03:10 +00:00
..
animation
attachment [Testing] Rename test header commands to match names in WebPreferences*.yaml 2020-10-13 17:16:15 +00:00
autoresize
backgrounds Make CSS.supports() return false for internal CSS properties 2021-06-16 14:37:30 +00:00
block [RenderTreeBuilder] ASSERTION FAILED: m_renderer in FloatingObject::renderer() 2021-06-22 20:26:10 +00:00
body-propagation
borders
box-decoration-break
box-shadow [LayoutTess] Delete unused LayoutTests/fast resources 2021-05-25 19:32:08 +00:00
box-sizing
canvas Add a layout test for webkit.org/b/229200 2021-08-18 16:58:52 +00:00
clip REGRESSION (r278377): incorrect hit-testing with clip-path() 2021-07-03 17:27:46 +00:00
compact
constructors
cookies
css REGRESSION(r279050): Crash under CSSImageValue::createDeprecatedCSSOMWrapper with cursor images 2021-08-03 16:54:57 +00:00
css-custom-paint [WebIDL] Remove [ImplicitThis] and [CustomProxyToJSObject] extended attributes 2021-05-20 22:25:01 +00:00
css-generated-content Remove trailing spaces from expected.txt files (excluding WPT for now since that contains too many) 2020-09-27 02:15:19 +00:00
css-grid-layout [LayoutTess] Delete unused LayoutTests/fast resources 2021-05-25 19:32:08 +00:00
css-intrinsic-dimensions
css3-text [LFC][Integration] Enable inline box support (RenderInline) 2021-04-06 13:55:35 +00:00
custom-elements [LayoutTess] Delete unused LayoutTests/fast resources 2021-05-25 19:32:08 +00:00
device-orientation
doctypes
dom Document.baseURI is inaccurate for iframe srcdoc documents 2021-08-10 17:51:30 +00:00
dynamic Relax "parent must be an HTMLElement" restriction in outerHTML setter 2021-06-13 19:16:48 +00:00
editing Crash in ApplyStyleCommand::applyRelativeFontStyleChange 2021-07-28 14:01:53 +00:00
encoding Handle custom identifiers and strings separately, so we can quote strings correctly consistently 2021-06-07 02:39:33 +00:00
eventloop
events [iOS] Remove support for the meaningful tap heuristic 2021-08-19 23:17:35 +00:00
eventsource EventSource.constructor throws an exception when the url param is an empty string 2021-06-11 16:15:18 +00:00
fast-mobile-scrolling
files Blob URL changes after loading it 2021-08-10 03:33:03 +00:00
filter-image Fix CSS serialization issues affecting css-counter-styles tests 2021-06-19 20:31:11 +00:00
fixed-layout
flexbox REGRESSION (r273072): Images do not layout correctly on walmart.com/grocery 2021-08-02 15:38:53 +00:00
forms REGRESSION (r273072): Caps lock indicator in password field is too large 2021-08-11 20:19:33 +00:00
frames Partially revert r280256 behavior change since it broke Facetime 2021-08-10 08:25:31 +00:00
gradients Omit default position/angle when serializing radial & conic gradients 2021-04-15 06:15:53 +00:00
harness Include reasons for compositing in showLayerTree output 2021-05-12 06:04:18 +00:00
hidpi
history [LayoutTess] Delete unused LayoutTests/fast resources 2021-05-25 19:32:08 +00:00
html Add initial support for BroadcastChannel behind a runtime flag 2021-07-16 00:36:39 +00:00
images [iOS] Fix and reenable several layout tests to account for the changes in rdar://80384564 2021-08-22 21:26:45 +00:00
inline [LFC][IFC] Add support for out-of-flow box static positioning 2021-08-23 00:03:10 +00:00
inline-block [IFC] Incorrect box height when scrollbar takes padding box space 2021-04-16 13:35:08 +00:00
innerHTML Fix CSS serialization issues affecting css-counter-styles tests 2021-06-19 20:31:11 +00:00
inspector-support
invalid [LFC][Integration] Enable inline box support (RenderInline) 2021-04-06 13:55:35 +00:00
layers Stop GraphicsLayerCA::recursiveCommitChanges recursion once cMaxLayerTreeDepth is reached 2021-07-08 22:17:38 +00:00
layoutformattingcontext [LFC][TFC] 100% percent width column(s) make the table stretch 2021-07-04 14:10:24 +00:00
leaks
line-grid
lists Improve more of the CSS list style implementations 2021-06-23 01:33:57 +00:00
loader Perform port blocking earlier in the load 2021-04-17 03:22:00 +00:00
masking
media <video> rendered inside <template> shows black for webcam stream (Safari 14.0.3 only) 2021-05-20 15:33:12 +00:00
mediacapturefromelement
mediasession/metadata Bad media session artwork URL results in blue "broken image" icon being shown in Now Playing 2021-05-14 22:02:15 +00:00
mediastream MediaPlayerPrivateMediaStreamAVFObjC should skip enqueuing frames when not visible 2021-08-06 09:15:49 +00:00
misc
multicol getBoundingClientRect() returns the incorrect rectangle on elements whose parent element is set -webkit-column-count 2021-07-17 05:42:32 +00:00
overflow
parser
performance
picture
preloader
reflections [LayoutTess] Delete unused LayoutTests/fast resources 2021-05-25 19:32:08 +00:00
regex Move DOM-unrelated tests out of fast/regex/dom 2021-07-31 08:06:04 +00:00
rendering
repaint Incorrect repaint when inline level box style change triggers line height change 2021-08-17 14:11:22 +00:00
replaced [AspectRatio] Out-of-flow box with intrinsic width (e.g. <img>) may trigger infinite recursion 2021-04-02 19:30:12 +00:00
ruby
sandbox
scrolling [ iOS ] fast/scrolling/ios/click-events-during-momentum-scroll-in-overflow-after-tap-on-body.html is a flaky timeout 2021-08-11 23:51:07 +00:00
selectors :link and :visited pseudo-class selectors should not match <link> elements 2021-07-12 04:08:46 +00:00
shadow-dom Check that shadow root is connected in invalidateStyleAfterStyleSheetChange 2021-08-03 07:38:08 +00:00
shapes calc() should not contain 0 values other than percentages 2021-04-15 19:39:30 +00:00
shrink-wrap
spatial-navigation
speechrecognition Fix fast/speechrecognition/detached-iframe.html 2021-07-29 18:58:04 +00:00
speechsynthesis
storage Support serializing ImageData object colorSpace property in SerializedScriptValue 2021-05-16 22:00:30 +00:00
sub-pixel
svg REGRESSION (r258118): SVG paths that contain a single move command incorrect client bounding rects 2021-05-31 06:39:50 +00:00
table CrashOnOverflow in WebCore::RenderTable::cellBefore(WebCore::RenderTableCell const*) 2021-05-28 19:51:32 +00:00
text Control characters (Unicode category Cc) should be rendered visibly 2021-08-22 21:04:49 +00:00
text-autosizing Remove unneeded whitespace between content and <br> 2020-10-25 19:52:34 +00:00
text-indicator
tokenizer
transforms RenderGeometryMap should know about individual transform properties 2021-04-21 17:08:28 +00:00
url
viewport [watchOS] Make a few additional adjustments to support system minimum layout margins 2021-07-12 16:15:13 +00:00
visual-viewport
web-share Remove experimental: and internal: prefixes from test header commands 2020-11-04 15:56:26 +00:00
workers Worker.constructor throws an exception when the url param is an empty string 2021-06-05 04:39:39 +00:00
writing-mode
xmlhttprequest Fix unsafe access to m_upload in XMLHttpRequest::virtualHasPendingActivity() 2021-06-01 22:03:35 +00:00
xpath
xsl Crash in SharedBuffer::data 2021-06-29 09:38:57 +00:00
zooming
check-layout-error-no-attributes-expected.txt
check-layout-error-no-attributes.html
js-promise-from-detached-iframe-expected.txt
js-promise-from-detached-iframe.html