KHTML was LGPL, just as with the rest of the KDE libraries. Otherwise Apple wouldn't have been able to fork it in the first place.