Lebesgue decompositions and the Gleason--Whitney property for operator algebras