Created attachment 253465 [details] Test case Run the attached test case on Safari on iPad. You'll see the text is very small because the initial scale is computed incorrectly. rdar://problem/20924495
Created attachment 253467 [details] Patch
Iād love to help by reviewing this, but seems like Ben or Tim should review.
Comment on attachment 253467 [details] Patch I cannot think of a case where that would break something...but it seems wrong to use shouldIgnoreScalingConstraints() in the case initialScaleIgnoringContentSize(). That means the end results will depend on the shouldIgnoreScalingConstraints() heuristic, which seems wrong. You should pass shouldIgnoreScalingConstraints() as an argument to initialScaleFromSize() to make sure it is fully independent from the content size.
I want to implement what Ben suggested.
Committed revision 184681.