From 720a73f50783d1c209eddd1b2c6be6f04184e214 Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Thu, 31 Mar 2011 09:47:01 +0100 Subject: [PATCH] bug 646561 - pass correct length to PropertyProvider in bidi case. r=roc --- layout/generic/nsTextFrameThebes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/generic/nsTextFrameThebes.cpp b/layout/generic/nsTextFrameThebes.cpp index 34d2a6a9ecfe..6d30ec52cc26 100644 --- a/layout/generic/nsTextFrameThebes.cpp +++ b/layout/generic/nsTextFrameThebes.cpp @@ -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