Bug 1278452 - Remove an unnecessary null check in layout/generic/. r=heycam.

mLineContainer is dereferenced shortly before and after the check, so it's
obviously not useful.
This commit is contained in:
Nicholas Nethercote
2016-06-07 14:45:38 +10:00
parent 6e1e244887
commit 07e48a1ba0

View File

@@ -1871,7 +1871,7 @@ BuildTextRunsScanner::BuildTextRunForFrames(void* aTextBuffer)
uint32_t nextBreakIndex = 0;
nsTextFrame* nextBreakBeforeFrame = GetNextBreakBeforeFrame(&nextBreakIndex);
bool isSVG = mLineContainer->IsSVGText();
bool enabledJustification = mLineContainer &&
bool enabledJustification =
(mLineContainer->StyleText()->mTextAlign == NS_STYLE_TEXT_ALIGN_JUSTIFY ||
mLineContainer->StyleText()->mTextAlignLast == NS_STYLE_TEXT_ALIGN_JUSTIFY);