Summary: | Subpixel rendering: border-radius painting falls back to rectangle when the snapped rounded rect becomes non-renderable. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | zalan <zalan> | ||||||||
Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | commit-queue, simon.fraser | ||||||||
Priority: | P2 | Keywords: | InRadar, Regression | ||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
zalan
2014-06-03 15:01:25 PDT
Created attachment 232442 [details]
Test reduction
Created attachment 232444 [details]
Patch
Comment on attachment 232444 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=232444&action=review > Source/WebCore/platform/graphics/RoundedRect.cpp:250 > + adjustedRadii.setTopLeft(LayoutSize(adjustedRadii.topLeft().width() / horizonalRatio, adjustedRadii.topLeft().height() / verticalRatio)); Would be cleaner if we had LayoutSize::scale(x, y) and you scaled by 1/ratio. Created attachment 232556 [details]
Patch
(In reply to comment #4) > (From update of attachment 232444 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=232444&action=review > > > Source/WebCore/platform/graphics/RoundedRect.cpp:250 > > + adjustedRadii.setTopLeft(LayoutSize(adjustedRadii.topLeft().width() / horizonalRatio, adjustedRadii.topLeft().height() / verticalRatio)); > > Would be cleaner if we had LayoutSize::scale(x, y) and you scaled by 1/ratio. We do have it! Fixed. Comment on attachment 232556 [details] Patch Clearing flags on attachment: 232556 Committed r169620: <http://trac.webkit.org/changeset/169620> All reviewed patches have been landed. Closing bug. |