2009-11-13 Vitaly Repeshko <vitalyr@chromium.org>
[WebKit-https.git] / WebCore / bindings / scripts / CodeGeneratorV8.pm
index 18141d6e07a6f017d87f23c2da6f991558b8b842..a41f648461419ee7d4db334cec84aa144c38bfd1 100644 (file)
@@ -646,8 +646,8 @@ END
         if ($attrIsPodType) {
             $resultObject = "wrapper";
         }
-        $resultObject = "WTF::getPtr(" . $resultObject . ")";
-        push(@implContentDecls, GenerateSVGContextAssignment($implClassName, $resultObject, "    "));
+        push(@implContentDecls, GenerateSVGContextRetrieval($implClassName, "    "));
+        $result = "V8Proxy::withSVGContext($resultObject, context)";
     }
 
     if ($attrIsPodType) {