OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) | 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. |
5 * Copyright (C) 2014 Opera Software ASA. All rights reserved. | |
fs
2014/04/17 15:33:48
Should probably be dropped now. (I don't see any c
Krzysztof Olczyk
2014/09/30 15:41:47
Done.
| |
5 * | 6 * |
6 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
10 * | 11 * |
11 * This library is distributed in the hope that it will be useful, | 12 * This library is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 * Library General Public License for more details. | 15 * Library General Public License for more details. |
(...skipping 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1655 // right | 1656 // right |
1656 radiiSum = radii.topRight().height() + radii.bottomRight().height(); | 1657 radiiSum = radii.topRight().height() + radii.bottomRight().height(); |
1657 if (radiiSum > rect.height()) | 1658 if (radiiSum > rect.height()) |
1658 factor = std::min(rect.height() / radiiSum, factor); | 1659 factor = std::min(rect.height() / radiiSum, factor); |
1659 | 1660 |
1660 ASSERT(factor <= 1); | 1661 ASSERT(factor <= 1); |
1661 return factor; | 1662 return factor; |
1662 } | 1663 } |
1663 | 1664 |
1664 } // namespace WebCore | 1665 } // namespace WebCore |
OLD | NEW |