mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 646561 - pass correct length to PropertyProvider in bidi case. r=roc
This commit is contained in:
parent
6bb840f014
commit
687c9f81ff
@ -6073,7 +6073,7 @@ nsTextFrame::AddInlineMinWidthForFlow(nsIRenderingContext *aRenderingContext,
|
||||
PRBool hyphenating = frag->GetLength() > 0 &&
|
||||
(mTextRun->GetFlags() & gfxTextRunFactory::TEXT_ENABLE_HYPHEN_BREAKS) != 0;
|
||||
if (hyphenating) {
|
||||
len = frag->GetLength() - iter.GetOriginalOffset();
|
||||
len = GetInFlowContentLength() - iter.GetOriginalOffset();
|
||||
#ifdef DEBUG
|
||||
// check that the length we're going to pass to PropertyProvider matches
|
||||
// the expected range of text in the run
|
||||
|
Loading…
Reference in New Issue
Block a user