`has_anchor_function` in `CalcLengthPercentage` will be used to avoid traversing the calc tree if we know the calc node tree does not have any anchor function. Anchor resolution is done in a separate phase, because layout code queries for `auto` insets without having a full context for the percentage basis. Differential Revision: https://phabricator.services.mozilla.com/D231257