Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(885)

Issue 2771093003: Performance fix for high dpi devices. (Closed)

Created:
3 years, 9 months ago by Karl Øygard
Modified:
3 years, 9 months ago
Reviewers:
rune
CC:
chromium-reviews, blink-reviews, blink-reviews-style_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (10 generated)
rune
lgtm, make a note in the description that the content box size cannot be negative ...
3 years, 9 months ago (2017-03-24 13:22:59 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2771093003/1
3 years, 9 months ago (2017-03-27 11:38:46 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-27 13:29:58 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/dd547f46cfb46ea92f554aa842d0...

Powered by Google App Engine
This is Rietveld 408576698