DescriptionFix for performance regression on high dpi devices.
ComputedStyle::getRoundedInnerBorderFor() could generate negative
content boxes for boxes with no content and sub pixel borders that
round up (eg. 1.5px-1.99px). Negative content boxes are illegal per
spec, and causes BoxBorderPainter::paintBorderFastPath() to bail,
and performance to be substantially degraded.
This issue would be evident on the paint-offset-changes perftest when
device pixel ratio was set to eg. 1.5. The issue was introduced in
934becac5daa91ea979fb66e4ae21761ca11ebc9
BUG=692955
Review-Url: https://codereview.chromium.org/2771093003
Cr-Commit-Position: refs/heads/master@{#459770}
Committed: https://chromium.googlesource.com/chromium/src/+/dd547f46cfb46ea92f554aa842d06bde19ceef6e
Patch Set 1 #
Messages
Total messages: 13 (10 generated)
|