There is no single "relevant function" (which is why the documentation exists in the file header). Although there is a single function that applies the scale transform, the implications of the "virtual pixel" behavior are more keenly felt in other functions. There is already brief documentation in the code where the markup is constructed, as that is the point at which the "virtual pixel" behavior has the biggest impact.