idlehomescreen/xmluirendering/uiengine/src/xnplugindata.cpp
branchRCL_3
changeset 93 b01126ce0bec
parent 88 3321d3e205b6
child 102 ba63c83f4716
--- a/idlehomescreen/xmluirendering/uiengine/src/xnplugindata.cpp	Tue Sep 14 20:58:58 2010 +0300
+++ b/idlehomescreen/xmluirendering/uiengine/src/xnplugindata.cpp	Wed Sep 15 12:00:00 2010 +0300
@@ -499,6 +499,9 @@
     {
     // Don't touch to iOwner, because this plugin might be reused later
     
+    delete iDirtyRegion;
+    iDirtyRegion = NULL;
+    
     // clear all flags, except editable and removable
     TBool removable = iFlags.IsSet( EIsRemovable );
     TBool editable = iFlags.IsSet( EIsEditable );
@@ -652,4 +655,21 @@
         }
     }
 
+// -----------------------------------------------------------------------------
+// -----------------------------------------------------------------------------
+//
+TXnDirtyRegion* CXnPluginData::CreateDirtyRegionL( CXnNode& aRootNode, 
+    CCoeControl& aControl )
+    {
+    delete iDirtyRegion;
+    iDirtyRegion = NULL;
+    iDirtyRegion = new (ELeave) TXnDirtyRegion;
+    iDirtyRegion->iRegion.Clear();
+    iDirtyRegion->iControl = &aControl;
+    iDirtyRegion->iRootNode = &aRootNode;
+    iDirtyRegion->iDirtyList.Reset();
+    iDirtyRegion->iLayoutControl = 0;
+    return iDirtyRegion;
+    }
+    
 // End of file