| Summary: | Subpixel layout: LayoutUnit::fromFloatFloor needs flooring the CSS pixel value. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | zalan <zalan> |
| Component: | Layout and Rendering | Assignee: | zalan <zalan> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | jonlee, simon.fraser, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | |||
| Bug Blocks: | 126283 | ||
|
Description
zalan
2014-01-08 14:01:04 PST
fast/regions/overflow-region-transform.html Needs some debugging to see what the issues are. the current behavior is correct as snapping any user generated input (even after a transform) would generate false results. 1. user clicks at position x,y 2. after applying the render transform, it gets the value of 11.6px float. 3. the pixelsnaped value is -> 12(*64)=768, while normal rounding value is -> round(11.6*64)=742. 4. This pixelsnapped value would make the hittest code find the layer painted at 768/64=12px, while the user clicked at 11.6px (after transform) |