Bug 551632. endsInDiacritic frame property is set but never used. r=smontagu

This commit is contained in:
Robert O'Callahan 2010-03-29 14:46:13 +13:00
parent 1284a86b27
commit 79e3ba391b
2 changed files with 0 additions and 17 deletions

View File

@ -351,7 +351,6 @@ GK_ATOM(enctype, "enctype")
GK_ATOM(end, "end")
GK_ATOM(end_after, "end_after")
GK_ATOM(end_before, "end_before")
GK_ATOM(endsInDiacritic, "EndsInDiacritic") // PRUint32
GK_ATOM(equalsize, "equalsize")
GK_ATOM(error, "error")
GK_ATOM(even, "even")

View File

@ -907,22 +907,6 @@ nsLineLayout::ReflowFrame(nsIFrame* aFrame,
if (frag) {
pfd->SetFlag(PFD_ISNONWHITESPACETEXTFRAME,
!content->TextIsOnlyWhitespace());
// fix for bug 40882
#ifdef IBMBIDI
if (mPresContext->BidiEnabled()) {
if (frag->Is2b()) {
//PRBool isVisual;
//mPresContext->IsVisualMode(isVisual);
PRUnichar ch = /*(isVisual) ?
*(frag->Get2b() + frag->GetLength() - 1) :*/ *frag->Get2b();
if (IS_BIDI_DIACRITIC(ch)) {
mPresContext->PropertyTable()->SetProperty(aFrame,
nsGkAtoms::endsInDiacritic, NS_INT32_TO_PTR(ch),
nsnull, nsnull);
}
}
}
#endif // IBMBIDI
}
}
}