Index: Source/core/rendering/RenderBlockLineLayout.cpp |
diff --git a/Source/core/rendering/RenderBlockLineLayout.cpp b/Source/core/rendering/RenderBlockLineLayout.cpp |
index 422ed0570f28bc1d741e12f2dda20ba40e633ac1..1bf42a52170c526083b946336dc87c83a9c487dc 100644 |
--- a/Source/core/rendering/RenderBlockLineLayout.cpp |
+++ b/Source/core/rendering/RenderBlockLineLayout.cpp |
@@ -1057,9 +1057,9 @@ BidiRun* RenderBlockFlow::computeInlineDirectionPositionsForSegment(RootInlineBo |
toInlineTextBox(r->m_box)->setCanHaveLeadingExpansion(true); |
unsigned opportunitiesInRun; |
if (rt->is8Bit()) |
- opportunitiesInRun = Font::expansionOpportunityCount(rt->characters8() + r->m_start, r->m_stop - r->m_start, r->m_box->direction(), isAfterExpansion); |
+ opportunitiesInRun = Font::expansionOpportunityCount(rt->characters8() + r->m_start, r->m_stop - r->m_start, r->m_box->direction(), isAfterExpansion, (textJustify == TextJustifyDistribute)); |
leviw_travelin_and_unemployed
2013/11/04 19:37:58
I still think this is really ugly :-/ If the conce
dw.im
2013/11/05 10:26:10
Hmm...
I'm not sure what could I do for this..
1s
leviw_travelin_and_unemployed
2013/11/05 19:07:24
I won't block this patch for this, I just think it
|
else |
- opportunitiesInRun = Font::expansionOpportunityCount(rt->characters16() + r->m_start, r->m_stop - r->m_start, r->m_box->direction(), isAfterExpansion); |
+ opportunitiesInRun = Font::expansionOpportunityCount(rt->characters16() + r->m_start, r->m_stop - r->m_start, r->m_box->direction(), isAfterExpansion, (textJustify == TextJustifyDistribute)); |
expansionOpportunities.append(opportunitiesInRun); |
expansionOpportunityCount += opportunitiesInRun; |
} |