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

Unified Diff: Source/WebCore/css/CSSPrimitiveValue.cpp

Issue 10698133: Merge 121599 - Allow non-borders to be adjusted to less than 1 when zoomed out (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 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
Index: Source/WebCore/css/CSSPrimitiveValue.cpp
===================================================================
--- Source/WebCore/css/CSSPrimitiveValue.cpp (revision 122237)
+++ Source/WebCore/css/CSSPrimitiveValue.cpp (working copy)
@@ -540,12 +540,7 @@
if (computingFontSize || isFontRelativeLength())
return result;
- // Any original result that was >= 1 should not be allowed to fall below 1. This keeps border lines from
- // vanishing.
- double zoomedResult = result * multiplier;
- if (zoomedResult < 1.0 && result >= 1.0)
- return 1.0;
- return zoomedResult;
+ return result * multiplier;
}
void CSSPrimitiveValue::setFloatValue(unsigned short, double, ExceptionCode& ec)

Powered by Google App Engine
This is Rietveld 408576698