Etymology
Today it means: In a self-congratulating manner. Full definition →
From self-congratulating + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.