Both.
Very common problem: interviewers asking questions about who was going to take care of the kids.
Actually happened: an interviewer displayed a picture of himself not wearing pants. That interview was in Chicago; I was in Michigan at the time, thankfully.
I see no correlation between company size and occurrence of this stuff.
I have friends who happen to be both notoriously successful in the tech field and female. They are all extremely touchy about this subject. They are touchy because crazy shit like this happens to them all the time.
There is, I think, no magic solution to this problem other than consistent public declamation, and of course being prepared to fire people who engage in this kind of behavior. People who harass women or act out on the belief that women are inferior to men or somehow likely to have obtained their position through anything other than merit have no place in any company I'm affiliated with.