Malfoid fits into this precisely. You can see the tropes being imported from other webcomics and micro-doujins and memes. The fantasy is that her entire emotional life revolves around Harry, the viewer insert. She can be haughty, or angry, or embarrassed, or happy, but all pointed in one direction.