Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
https://bugs.webkit.org/show_bug.cgi?id=48001
Reviewed by Dan Bernstein. Make boxes place themselves properly in the block direction. Get basic painting working for spans and add a test that verifies that span painting and replaced element painting (like images) works correctly. Added fast/blockflow/basic-vertical-line.html WebCore: * rendering/InlineBox.cpp: (WebCore::InlineBox::logicalHeight): * rendering/InlineFlowBox.cpp: (WebCore::InlineFlowBox::placeBoxesInInlineDirection): (WebCore::InlineFlowBox::adjustMaxAscentAndDescent): (WebCore::verticalPositionForBox): (WebCore::InlineFlowBox::computeLogicalBoxHeights): (WebCore::InlineFlowBox::placeBoxesInBlockDirection): (WebCore::InlineFlowBox::flipLinesInBlockDirection): (WebCore::InlineFlowBox::paintBoxDecorations): (WebCore::InlineFlowBox::paintMask): * rendering/InlineFlowBox.h: * rendering/style/RenderStyle.h: (WebCore::InheritedFlags::isFlippedLinesWritingMode): LayoutTests: * fast/blockflow/basic-vertical-line.html: Added. * platform/mac/fast/blockflow/basic-vertical-line-expected.checksum: Added. * platform/mac/fast/blockflow/basic-vertical-line-expected.png: Added. * platform/mac/fast/blockflow/basic-vertical-line-expected.txt: Added. Canonical link: https://commits.webkit.org/60723@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@70172 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
10 changed files
with
140 additions
and
41 deletions.
There are no files selected for viewing
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
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
@@ -0,0 +1,8 @@ | ||
<div style="-webkit-writing-mode: vertical-lr; height:300px; border:2px solid maroon"> | ||
<span style="border-top: 5px solid black; border-bottom:5px solid black; padding-top:5px; padding-bottom:5px"><img style="height:200px;width:100px;background-color:green"></span> | ||
<br> | ||
<span style="border-top: 5px solid black; border-bottom:5px solid black; padding-top:5px; padding-bottom:5px"><img style="height:200px;width:100px;background-color:green"></span> | ||
<br> | ||
<span style="border-top: 5px solid black; border-bottom:5px solid black; padding-top:5px; padding-bottom:5px"><img style="height:200px;width:100px;background-color:green"></span> | ||
</div> | ||
|
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
@@ -0,0 +1 @@ | ||
f149a6f8dd8b17bffdc42eb7cbd66e40 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
@@ -0,0 +1,19 @@ | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x600 | ||
RenderBlock {HTML} at (0,0) size 800x600 | ||
RenderBody {BODY} at (8,8) size 784x584 | ||
RenderBlock {DIV} at (0,0) size 316x304 [border: (2px solid #800000)] | ||
RenderInline {SPAN} at (0,0) size 220x18 [border: (5px solid #000000) none (5px solid #000000) none] | ||
RenderImage {IMG} at (6,12) size 100x200 [bgcolor=#008000] | ||
RenderText {#text} at (2,222) size 4x18 | ||
text run at (2,222) width 4: " " | ||
RenderBR {BR} at (6,226) size 0x0 | ||
RenderInline {SPAN} at (0,0) size 220x18 [border: (5px solid #000000) none (5px solid #000000) none] | ||
RenderImage {IMG} at (110,12) size 100x200 [bgcolor=#008000] | ||
RenderText {#text} at (106,222) size 4x18 | ||
text run at (106,222) width 4: " " | ||
RenderBR {BR} at (110,226) size 0x0 | ||
RenderInline {SPAN} at (0,0) size 220x18 [border: (5px solid #000000) none (5px solid #000000) none] | ||
RenderImage {IMG} at (214,12) size 100x200 [bgcolor=#008000] | ||
RenderText {#text} at (0,0) size 0x0 |
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
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
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
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
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