It's offside when the flagged player in some way affects the game or the defenders/goalkeeper behaviour, but Ronaldo in that case didn't. He was like a good meter away from getting anywere close to the ball and Savic didn't even know he was there. It's called passive offside.
so standing on 5 meters at center of the goal and jumping to head it in goal with no other attacking player near is not affecting goalkeeper? Ok. Thnx.