12010-10-25 David Hyatt <hyatt@apple.com>
2
3 Reviewed by NOBODY (OOPS!).
4
5 https://bugs.webkit.org/show_bug.cgi?id=48257
6
7 Make "rl" and "bt" writing-modes work for blocks and lines. InlineTextBox is refactored to compute the correct
8 top left corner and left baseline edge once so that can be passed down to all the painting functions instead of
9 tx and ty.
10
11 adjustment helpers have been added that can be called before painting children or lines and that fix up
12 the coordinates from flipped to physical.
13
14 Added fast/blockflow/english-rl-text.html and fast/blockflow/english-bt-text.html
15
16 * rendering/InlineBox.cpp:
17 (WebCore::InlineBox::adjustForFlippedBlocksWritingMode):
18 * rendering/InlineBox.h:
19 * rendering/InlineFlowBox.cpp:
20 (WebCore::InlineFlowBox::paintBoxDecorations):
21 (WebCore::InlineFlowBox::paintMask):
22 * rendering/InlineTextBox.cpp:
23 (WebCore::paintTextWithShadows):
24 (WebCore::InlineTextBox::paint):
25 (WebCore::InlineTextBox::paintSelection):
26 (WebCore::InlineTextBox::paintCompositionBackground):
27 (WebCore::InlineTextBox::paintDecoration):
28 (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
29 (WebCore::InlineTextBox::paintTextMatchMarker):
30 (WebCore::InlineTextBox::computeRectForReplacementMarker):
31 (WebCore::InlineTextBox::paintDocumentMarkers):
32 (WebCore::InlineTextBox::paintCompositionUnderline):
33 * rendering/InlineTextBox.h:
34 * rendering/RenderBlock.cpp:
35 (WebCore::RenderBlock::paintChildren):
36 (WebCore::RenderBlock::paintFloats):
37 * rendering/RenderBox.cpp:
38 (WebCore::RenderBox::adjustForFlippedBlocksWritingMode):
39 * rendering/RenderBox.h:
40 * rendering/style/RenderStyle.h:
41 (WebCore::InheritedFlags::isFlippedBlocksWritingMode):
42