Commit 133a726
committed
[IFC][Ruby] Fix fast/ruby/ruby-text-before-after-content.html
https://bugs.webkit.org/show_bug.cgi?id=264221
Reviewed by Antti Koivisto.
Sum of the individual inline items' logical width may not match the final content width due
to certain inline layout rules like white-space collapsing.
Let's just get the content width off of the line when finished placing the ruby base content.
* Source/WebCore/layout/formattingContexts/inline/ruby/RubyFormattingContext.cpp:
(WebCore::Layout::RubyFormattingContext::layoutRubyBaseInlineAxis): (turn for loop into a while and handle content alignment outside of the loop).
Canonical link: https://commits.webkit.org/270245@main1 parent 3945b83 commit 133a726
File tree
1 file changed
+13
-16
lines changed- Source/WebCore/layout/formattingContexts/inline/ruby
1 file changed
+13
-16
lines changedLines changed: 13 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | 135 | | |
| 136 | + | |
138 | 137 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
151 | 149 | | |
152 | | - | |
153 | | - | |
| 150 | + | |
154 | 151 | | |
155 | 152 | | |
156 | 153 | | |
| |||
0 commit comments