Proof (Fubini's theorem)
Since $f$ is continuous on a compact domain, $f$ is uniformly continuous. Therefore $f$ can be uniformly approximated by step functions, i.e. for each $ε>0$, we can find $f_ε$ that is constant on squares with $|f(z) - f_ε(z)| < ε$ for all $z\in [a,b]\times [c,d]$.
Fubini's theorem clearly holds for constant functions and thus for step functions. Then using the fact that uniform convergence preserves integration, it holds for $f$ as well.