Title: [115121] branches/subpixellayout/Source/WebCore/rendering/LayoutTypes.h
Revision
115121
Author
[email protected]
Date
2012-04-24 15:20:07 -0700 (Tue, 24 Apr 2012)

Log Message

Fix clampToLayoutUnit on branch.

Modified Paths


Diff

Modified: branches/subpixellayout/Source/WebCore/rendering/LayoutTypes.h (115120 => 115121)


--- branches/subpixellayout/Source/WebCore/rendering/LayoutTypes.h	2012-04-24 22:14:22 UTC (rev 115120)
+++ branches/subpixellayout/Source/WebCore/rendering/LayoutTypes.h	2012-04-24 22:20:07 UTC (rev 115121)
@@ -147,7 +147,7 @@
 
 inline LayoutUnit clampToLayoutUnit(double value)
 {
-    return clampTo<FractionalLayoutUnit>(value);
+    return clampTo<FractionalLayoutUnit>(value, FractionalLayoutUnit::min(), FractionalLayoutUnit::max());
 }
 
 inline IntRect pixelSnappedIntRect(LayoutPoint location, LayoutSize size)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to