зеркало из https://github.com/mozilla/gecko-dev.git
Don't descend into bidi leaves in InitContinuationStates(). bug=348711 r+sr=roc
This commit is contained in:
Родитель
422f5d5b83
Коммит
abbcddd8ba
|
@ -865,13 +865,15 @@ nsBidiPresUtils::InitContinuationStates(nsIFrame* aFrame,
|
|||
state->mFirstVisualFrame = nsnull;
|
||||
state->mFrameCount = 0;
|
||||
|
||||
// Continue for child frames
|
||||
nsIFrame* frame;
|
||||
for (frame = aFrame->GetFirstChild(nsnull);
|
||||
frame;
|
||||
frame = frame->GetNextSibling()) {
|
||||
InitContinuationStates(frame,
|
||||
aContinuationStates);
|
||||
if (!IsBidiLeaf(aFrame)) {
|
||||
// Continue for child frames
|
||||
nsIFrame* frame;
|
||||
for (frame = aFrame->GetFirstChild(nsnull);
|
||||
frame;
|
||||
frame = frame->GetNextSibling()) {
|
||||
InitContinuationStates(frame,
|
||||
aContinuationStates);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче