| Summary: | [iOS] Using CSS viewport units causes incorrect layout | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Enrica Casucci <enrica> | ||||||
| Component: | WebKit2 | Assignee: | Enrica Casucci <enrica> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | benjamin, darin, sam, thorton | ||||||
| Priority: | P2 | ||||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 146090 | ||||||||
| Attachments: |
|
||||||||
|
Description
Enrica Casucci
2015-05-20 15:20:27 PDT
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. |