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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 2782153002: Fix for performance regression on high dpi devices. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index 5ee3f334ad1f134cde7815fa0ea7f2ad23faa902..12a1ffac605679b1800ce9203b106515813337db 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -1490,7 +1490,9 @@ FloatRoundedRect ComputedStyle::getRoundedInnerBorderFor(
bool includeLogicalRightEdge) const {
LayoutRect innerRect(borderRect);
innerRect.expand(insets);
- innerRect.size().clampNegativeToZero();
+ LayoutSize innerRectSize = innerRect.size();
+ innerRectSize.clampNegativeToZero();
+ innerRect.setSize(innerRectSize);
FloatRoundedRect roundedRect(pixelSnappedIntRect(innerRect));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698