Mathematics, Fluid Mechanics, Calculus, Differential Equations, Physics.
mathematically this means that the material derivative(explained below) of density is zero, the material derivative considers the change of density with respect to time and space, so the condition that is not sufficient because density could be changing as the fluid moves from one point to another.