Everyone likes their looks to be appreciated by the people they love. It is more fair to the person you fall in love with if you like their looks too.
I personally am a believer that it's possible to learn to see someone as attractive that you hadn't previously because you like who they are so much.
But it's more romantic to say the attraction was mutual from the start.
If you are worried you're shallow and don't want to be, then learn to see the beauty in flaws. You'll find there are a lot more pretty faces out there than you previously thought.
Oh, and to answer the original question - both.