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

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

Issue 2771093003: Performance fix for 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 515e7e830332126a5ef0a529246acbdf3df656b4..531a20e8daa7291b6910f74c0ff6dcece511650f 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -1516,6 +1516,7 @@ FloatRoundedRect ComputedStyle::getRoundedInnerBorderFor(
bool includeLogicalRightEdge) const {
LayoutRect innerRect(borderRect);
innerRect.expand(insets);
+ innerRect.size().clampNegativeToZero();
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