-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IFC][Invalidation] Content inside SVG should not be considered part …
…of IFC content https://bugs.webkit.org/show_bug.cgi?id=261278 <rdar://114700736> Reviewed by Antti Koivisto. The containing block logic skips (inline) SVG root and comes back for content _inside_ SVG with a renderer that's also an IFC root. * LayoutTests/fast/inline/invalidation-crash-when-svg-is-present-expected.txt: Added. * LayoutTests/fast/inline/invalidation-crash-when-svg-is-present.html: Added. * Source/WebCore/layout/integration/inline/LayoutIntegrationLineLayout.cpp: (WebCore::LayoutIntegration::LineLayout::containing): Canonical link: https://commits.webkit.org/267737@main
- Loading branch information
1 parent
3628406
commit 2f33925
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
LayoutTests/fast/inline/invalidation-crash-when-svg-is-present-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PASS if no crash or assert. |
23 changes: 23 additions & 0 deletions
23
LayoutTests/fast/inline/invalidation-crash-when-svg-is-present.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<style> | ||
text { | ||
float: left; | ||
} | ||
|
||
:first-child { | ||
color: red; | ||
} | ||
</style> | ||
<body>PASS if no crash or assert.</body> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
|
||
let svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); | ||
document.body.append(svg); | ||
let div = document.createElement('div'); | ||
svg.append(div); | ||
svg.append(document.createElementNS('http://www.w3.org/2000/svg', 'text')); | ||
document.body.offsetTop; | ||
div.remove(); | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters