Changeset 269912 in webkit
- Timestamp:
- Nov 17, 2020 10:06:26 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/platform/ios/css1/formatting_model/height_of_lines-expected.txt
r269655 r269912 120 120 text run at (510,183) width 28: " and " 121 121 RenderImage {IMG} at (552,198) size 131x130 [border: (10px solid #000000)] 122 RenderText {#text} at (697,183) size 758x25 8122 RenderText {#text} at (697,183) size 758x257 123 123 text run at (697,183) width 8: ". " 124 124 text run at (704,183) width 39: "This is" -
trunk/LayoutTests/platform/ios/css1/text_properties/vertical_align-expected.txt
r269655 r269912 86 86 RenderBlock {P} at (0,746) size 784x70 87 87 RenderImage {IMG} at (0,0) size 15x50 88 RenderText {#text} at (15,1 3) size 755x5689 text run at (15,1 3) width 740: " The image at the beginning of this sentence should be middle-aligned, which should align its middle with the point"88 RenderText {#text} at (15,14) size 755x55 89 text run at (15,14) width 740: " The image at the beginning of this sentence should be middle-aligned, which should align its middle with the point" 90 90 text run at (0,50) width 318: "defined as the text baseline plus half the x-height." 91 91 RenderBlock {P} at (0,832) size 784x126 … … 429 429 RenderBlock {P} at (4,431) size 762x70 430 430 RenderImage {IMG} at (0,0) size 15x50 431 RenderText {#text} at (15,1 3) size 755x56432 text run at (15,1 3) width 740: " The image at the beginning of this sentence should be middle-aligned, which should align its middle with the point"431 RenderText {#text} at (15,14) size 755x55 432 text run at (15,14) width 740: " The image at the beginning of this sentence should be middle-aligned, which should align its middle with the point" 433 433 text run at (0,50) width 318: "defined as the text baseline plus half the x-height." 434 434 RenderBlock {P} at (4,517) size 762x126 -
trunk/LayoutTests/platform/mac/css1/formatting_model/height_of_lines-expected.txt
r269655 r269912 69 69 text run at (510,183) width 28: " and " 70 70 RenderImage {IMG} at (552,198) size 131x130 [border: (10px solid #000000)] 71 RenderText {#text} at (697,183) size 769x25 871 RenderText {#text} at (697,183) size 769x257 72 72 text run at (697,183) width 8: ". " 73 73 text run at (704,183) width 39: "This is" … … 119 119 text run at (596,183) width 25: " and" 120 120 RenderImage {IMG} at (15,218) size 130x130 [border: (10px solid #000000)] 121 RenderText {#text} at (160,203) size 747x23 8121 RenderText {#text} at (160,203) size 747x237 122 122 text run at (160,203) width 7: ". " 123 123 text run at (167,203) width 580: "This is additional text to make sure that there is enough room left below the image so that this line does" -
trunk/LayoutTests/platform/mac/css1/text_properties/vertical_align-expected.txt
r269655 r269912 86 86 RenderBlock {P} at (0,751) size 769x68 87 87 RenderImage {IMG} at (0,0) size 15x50 88 RenderText {#text} at (15,1 4) size 755x5489 text run at (15,1 4) width 740: " The image at the beginning of this sentence should be middle-aligned, which should align its middle with the point"88 RenderText {#text} at (15,15) size 755x53 89 text run at (15,15) width 740: " The image at the beginning of this sentence should be middle-aligned, which should align its middle with the point" 90 90 text run at (0,50) width 317: "defined as the text baseline plus half the x-height." 91 91 RenderBlock {P} at (0,835) size 769x124 … … 432 432 RenderBlock {P} at (4,420) size 747x68 433 433 RenderImage {IMG} at (0,0) size 15x50 434 RenderText {#text} at (15,1 4) size 718x54435 text run at (15,1 4) width 703: " The image at the beginning of this sentence should be middle-aligned, which should align its middle with the"434 RenderText {#text} at (15,15) size 718x53 435 text run at (15,15) width 703: " The image at the beginning of this sentence should be middle-aligned, which should align its middle with the" 436 436 text run at (0,50) width 354: "point defined as the text baseline plus half the x-height." 437 437 RenderBlock {P} at (4,504) size 747x124 -
trunk/Source/WebCore/ChangeLog
r269909 r269912 1 2020-11-17 Zalan Bujtas <zalan@apple.com> 2 3 [LFC][Integration] Add even more integral snapping to inline level boxes 4 https://bugs.webkit.org/show_bug.cgi?id=219011 5 6 Reviewed by Antti Koivisto. 7 8 It is required to match current legacy inline geometries. 9 10 * layout/inlineformatting/InlineLineBox.cpp: 11 (WebCore::Layout::LineBox::InlineLevelBox::setLogicalTop): 12 (WebCore::Layout::LineBox::InlineLevelBox::setLogicalHeight): 13 * layout/inlineformatting/InlineLineBox.h: 14 (WebCore::Layout::LineBox::InlineLevelBox::setLogicalTop): Deleted. 15 (WebCore::Layout::LineBox::InlineLevelBox::setLogicalHeight): Deleted. 16 * layout/integration/LayoutIntegrationLineLayout.cpp: 17 (WebCore::LayoutIntegration::LineLayout::updateLayoutBoxDimensions): 18 1 19 2020-11-17 Chris Lord <clord@igalia.com> 2 20 -
trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.cpp
r269299 r269912 56 56 // FIXME: Remove legacy rounding. 57 57 m_layoutBounds = { InlineLayoutUnit(roundToInt(layoutBounds.ascent)), InlineLayoutUnit(roundToInt(layoutBounds.descent)) }; 58 } 59 60 void LineBox::InlineLevelBox::setLogicalTop(InlineLayoutUnit logicalTop) 61 { 62 // FIXME: Remove legacy rounding. 63 m_logicalRect.setTop(roundToInt(logicalTop)); 64 } 65 66 void LineBox::InlineLevelBox::setLogicalHeight(InlineLayoutUnit logicalHeight) 67 { 68 // FIXME: Remove legacy rounding. 69 m_logicalRect.setHeight(roundToInt(logicalHeight)); 58 70 } 59 71 -
trunk/Source/WebCore/layout/inlineformatting/InlineLineBox.h
r269299 r269912 112 112 InlineLayoutUnit logicalHeight() const { return m_logicalRect.height(); } 113 113 114 void setLogicalTop(InlineLayoutUnit logicalTop) { m_logicalRect.setTop(logicalTop); }115 114 void setLogicalWidth(InlineLayoutUnit logicalWidth) { m_logicalRect.setWidth(logicalWidth); } 116 void setLogicalHeight(InlineLayoutUnit logicalHeight) { m_logicalRect.setHeight(logicalHeight); } 115 void setLogicalHeight(InlineLayoutUnit); 116 void setLogicalTop(InlineLayoutUnit); 117 117 void setBaseline(InlineLayoutUnit); 118 118 void setDescent(InlineLayoutUnit); -
trunk/Source/WebCore/layout/integration/LayoutIntegrationLineLayout.cpp
r269825 r269912 133 133 134 134 auto baseline = replacedOrInlineBlock.baselinePosition(AlphabeticBaseline, false /* firstLine */, HorizontalLine, PositionOnContainingLine); 135 replacedBox.setBaseline( baseline);135 replacedBox.setBaseline(roundToInt(baseline)); 136 136 } 137 137
Note: See TracChangeset
for help on using the changeset viewer.