mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 00:50:40 +00:00
bug 646983 - set the correct text length for the PropertyProvider. r=roc
This commit is contained in:
parent
be86b37444
commit
1c17cb53b6
@ -6042,7 +6042,7 @@ nsTextFrame::AddInlineMinWidthForFlow(nsIRenderingContext *aRenderingContext,
|
||||
PRBool hyphenating = frag->GetLength() > 0 &&
|
||||
(mTextRun->GetFlags() & gfxTextRunFactory::TEXT_ENABLE_HYPHEN_BREAKS) != 0;
|
||||
if (hyphenating) {
|
||||
len = GetInFlowContentLength() - iter.GetOriginalOffset();
|
||||
len = GetContentOffset() + 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