Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07c056d6 authored by Doris Liu's avatar Doris Liu
Browse files

Chcek for valid render content before damaging RenderNode for dirty VD

BUG: 29320878
Change-Id: I847d76467bad92c956a4bb7617627983d64e90f9
parent a3d4baf4
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -421,6 +421,7 @@ void RenderNode::prepareTreeImpl(TreeInfo& info, bool functorsNeedLayer) {
    prepareSubTree(info, childFunctorsNeedLayer, mDisplayList);
    pushLayerUpdate(info);

    if (mDisplayList) {
        for (auto& vectorDrawable : mDisplayList->getVectorDrawables()) {
            // If any vector drawable in the display list needs update, damage the node.
            if (vectorDrawable->isDirty()) {
@@ -428,6 +429,7 @@ void RenderNode::prepareTreeImpl(TreeInfo& info, bool functorsNeedLayer) {
            }
            vectorDrawable->setPropertyChangeWillBeConsumed(true);
        }
    }

    info.damageAccumulator->popTransform();
}