зеркало из https://github.com/mozilla/gecko-dev.git
Abort early from ReorderFrames in case of an empty line frame, to avoid crashing later. bug=367015, r+sr=bzbarsky.
This commit is contained in:
Родитель
4a83314ad4
Коммит
9f346e2996
|
@ -619,6 +619,8 @@ nsBidiPresUtils::ReorderFrames(nsPresContext* aPresContext,
|
|||
// If this line consists of a line frame, reorder the line frame's children.
|
||||
if (aFirstFrameOnLine->GetType() == nsGkAtoms::lineFrame) {
|
||||
aFirstFrameOnLine = aFirstFrameOnLine->GetFirstChild(nsnull);
|
||||
if (!aFirstFrameOnLine)
|
||||
return;
|
||||
// All children of the line frame are on the first line. Setting aNumFramesOnLine
|
||||
// to -1 makes InitLogicalArrayFromLine look at all of them.
|
||||
aNumFramesOnLine = -1;
|
||||
|
|
Загрузка…
Ссылка в новой задаче