/* virtual */ BOOL SVGAnimationLogListener::Accept(SVGAnimationWorkplace *potential_animation_workplace) { OP_NEW_DBG("SVGAnimationLogListener", "svg_animation_log"); if (animation_workplace == NULL) { animation_workplace = potential_animation_workplace; URL url = animation_workplace->GetSVGDocumentContext()->GetURL(); OpString filename; filename.AppendFormat(UNI_L("animation-%.0f.log"), g_op_time_info->GetRuntimeMS()); OP_DBG((UNI_L("Animation log started. Output goes to '%s'\n"), filename.CStr())); if (OpStatus::IsError(outfile.Construct(filename, OPFILE_HOME_FOLDER))) return FALSE; if (OpStatus::IsError(outfile.Open(OPFILE_WRITE))) return FALSE; outfile.Print("Animation log v1.0\n"); outfile.Print("URL \"%s\"\n", url.GetName(FALSE, PASSWORD_HIDDEN)); return TRUE; } else { return FALSE; } }