Revision: 201007 RCL_3
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 12 Mar 2010 15:47:00 +0200
branchRCL_3
changeset 8 baacd33d915b
parent 6 19f463b3b9b2
child 9 81aabfdef1e5
Revision: 201007 Kit: 201008
svgtopt/SVG/SVGImpl/src/SVGDocumentImpl.cpp
svgtopt/SVG/SVGImpl/src/SVGElementImpl.cpp
svgtopt/SVGEngineJI/inc/SVGjsrconstants.h
svgtopt/SVGEngineJI/src/SvgJavaInterfaceImpl.cpp
svgtopt/VGRenderer/SWVG/src/SWVGSurfaceImpl.cpp
--- a/svgtopt/SVG/SVGImpl/src/SVGDocumentImpl.cpp	Fri Feb 19 23:44:22 2010 +0200
+++ b/svgtopt/SVG/SVGImpl/src/SVGDocumentImpl.cpp	Fri Mar 12 15:47:00 2010 +0200
@@ -609,18 +609,19 @@
 // ==========================================================================
 TDesC* CSvgDocumentImpl::GetId(TInt index)
 {
+				TDesC* id = NULL;
         RPointerArray<TDesC> ids;
 
         FindAllIds( (CSvgElementImpl*)RootElement(), ids );
 
         if (index < ids.Count())
         {
-            return (ids[index]);
+            id = ids[index];
         }
 
         ids.Close();
 
-    return NULL;
+    return id;
 }
 
 // ==========================================================================
--- a/svgtopt/SVG/SVGImpl/src/SVGElementImpl.cpp	Fri Feb 19 23:44:22 2010 +0200
+++ b/svgtopt/SVG/SVGImpl/src/SVGElementImpl.cpp	Fri Mar 12 15:47:00 2010 +0200
@@ -2177,12 +2177,13 @@
                 {
 
                 MGfxPaint* lPaintValue = (MGfxPaint *)((( CPaintCssValueImpl* )lCssValue)->Value());
+				/*
                 if(lPaintValue && lPaintValue->GetColor()== KSvgCurrentColor)
                     {
                     lPaintValue = CurrentColor();
                     aValue = lPaintValue->GetColor();                     
                     }
-                else if(lPaintValue)
+                else*/ if(lPaintValue)
                 	{
                 	aValue = lPaintValue->GetColor();
                 	}
@@ -2309,8 +2310,9 @@
                 }
             if( lParentElement && aValue == KInherit )    
             {
-            tParentValue  = (CIntCssValueImpl *)(lParentElement->iSvgStyleProperties->operator[](aNameId));
-            (*iSvgStyleProperties)[aNameId]= tParentValue;
+            //tParentValue  = (CIntCssValueImpl *)(lParentElement->iSvgStyleProperties->operator[](aNameId));
+            //(*iSvgStyleProperties)[aNameId]= tParentValue;
+			 tValue->SetValueL(tParentValue->Value());
             }
             else
             {
--- a/svgtopt/SVGEngineJI/inc/SVGjsrconstants.h	Fri Feb 19 23:44:22 2010 +0200
+++ b/svgtopt/SVGEngineJI/inc/SVGjsrconstants.h	Fri Mar 12 15:47:00 2010 +0200
@@ -265,7 +265,6 @@
     #define TEXT_UNDER_LINE  363
     #define TEXT_OVER_LINE  364
     #define TEXT_LINE_THROUGH  365
-	#define ATTRIBUTE_INHERIT  -2
 
     // These are actual sizes in 8:8 fixed point, not "choices"
     #define FONT_SIZE_XXSMALL  0x20000
--- a/svgtopt/SVGEngineJI/src/SvgJavaInterfaceImpl.cpp	Fri Feb 19 23:44:22 2010 +0200
+++ b/svgtopt/SVGEngineJI/src/SvgJavaInterfaceImpl.cpp	Fri Mar 12 15:47:00 2010 +0200
@@ -1257,15 +1257,17 @@
     ********************************************************/
     if(aElementHandle)
         {
-        TInt32 lValue = 0;
+        //TInt32 lValue = 0;
+        
         TInt lSvgAttrId = SvgGetAttributeTypeMappingJSRtoSVG(aAttribute);
         if(lSvgAttrId != KSvgUnknownAttribute)
             {
-
+			TInt lValue = SvgEnumerationMappingJSRtoSVG(lSvgAttrId , (TInt)aValue);
+			/*
             lValue = SvgEnumerationMappingJSRtoSVG(lSvgAttrId , (TInt)aValue);
             
             if ( lValue == KErrNotFound && aValue == ATTRIBUTE_INHERIT ) 
-                lValue = KSVGAttributeInherit;
+                lValue = KSVGAttributeInherit;*/
             if(lSvgAttrId == KCSS_ATTR_FONTSIZE)
                 {
                 if(lValue != KErrNotFound)
--- a/svgtopt/VGRenderer/SWVG/src/SWVGSurfaceImpl.cpp	Fri Feb 19 23:44:22 2010 +0200
+++ b/svgtopt/VGRenderer/SWVG/src/SWVGSurfaceImpl.cpp	Fri Mar 12 15:47:00 2010 +0200
@@ -104,7 +104,7 @@
         ret = ::VGISymbianCopyToBitmap(aBitmap, aMask, VGI_COPY_TRANSPARENT_PIXELS);
         }
         
-    return KErrNone;
+    return ret;
     }
 
 TInt CSWVGSurfaceImpl::PrepareToBindClientBuffer()