Chromium Code Reviews| Index: Source/core/rendering/RenderBlockLineLayout.cpp |
| diff --git a/Source/core/rendering/RenderBlockLineLayout.cpp b/Source/core/rendering/RenderBlockLineLayout.cpp |
| index 51aa715df0427e990dba499109370ac8f06f0039..7d99fd172eb431515c5bdf15e3c542c43f2b05e9 100644 |
| --- a/Source/core/rendering/RenderBlockLineLayout.cpp |
| +++ b/Source/core/rendering/RenderBlockLineLayout.cpp |
| @@ -495,7 +495,7 @@ static inline void setLogicalWidthForTextRun(RootInlineBox* lineBox, BidiRun* ru |
| lastEndOffset = wordMeasurement.endOffset; |
| if (kerningIsEnabled && lastEndOffset == run->m_stop) { |
| int wordLength = lastEndOffset - wordMeasurement.startOffset; |
| - measuredWidth += renderer->width(wordMeasurement.startOffset, wordLength, xPos, lineInfo.isFirstLine()); |
| + measuredWidth += renderer->width(wordMeasurement.startOffset, wordLength, xPos, LTR, lineInfo.isFirstLine()); |
|
leviw_travelin_and_unemployed
2014/01/07 01:57:33
Why is this different than the call below?
|
| if (i > 0 && wordLength == 1 && renderer->characterAt(wordMeasurement.startOffset) == ' ') |
| measuredWidth += renderer->style()->wordSpacing(); |
| } else |
| @@ -514,7 +514,7 @@ static inline void setLogicalWidthForTextRun(RootInlineBox* lineBox, BidiRun* ru |
| } |
| if (!measuredWidth) |
| - measuredWidth = renderer->width(run->m_start, run->m_stop - run->m_start, xPos, lineInfo.isFirstLine(), &fallbackFonts, &glyphOverflow); |
| + measuredWidth = renderer->width(run->m_start, run->m_stop - run->m_start, xPos, run->reversed(false) ? RTL : LTR, lineInfo.isFirstLine(), &fallbackFonts, &glyphOverflow); |
|
eseidel
2014/01/07 02:52:57
I thought that run had a direction() accessor in a
|
| run->m_box->setLogicalWidth(measuredWidth + hyphenWidth); |
| if (!fallbackFonts.isEmpty()) { |