am f24bed80: Merge "Fix null deref" into mnc-dev
* commit 'f24bed80e027a2b14652ac9d46900c11312efa6b': Fix null deref
This commit is contained in:
@@ -241,8 +241,12 @@ void RenderNode::prepareTreeImpl(TreeInfo& info, bool functorsNeedLayer) {
|
||||
animatorDirtyMask = mAnimatorManager.animate(info);
|
||||
}
|
||||
|
||||
bool willHaveFunctor = info.mode == TreeInfo::MODE_FULL && mStagingDisplayListData
|
||||
? !mStagingDisplayListData->functors.isEmpty() : !mDisplayListData->functors.isEmpty();
|
||||
bool willHaveFunctor = false;
|
||||
if (info.mode == TreeInfo::MODE_FULL && mStagingDisplayListData) {
|
||||
willHaveFunctor = !mStagingDisplayListData->functors.isEmpty();
|
||||
} else if (mDisplayListData) {
|
||||
willHaveFunctor = !mDisplayListData->functors.isEmpty();
|
||||
}
|
||||
bool childFunctorsNeedLayer = mProperties.prepareForFunctorPresence(
|
||||
willHaveFunctor, functorsNeedLayer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user