| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 University of Szeged | 2 * Copyright (C) 2011 University of Szeged |
| 3 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> | 3 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> |
| 4 * All rights reserved. | 4 * All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // | 136 // |
| 137 // An approximation of sqrt(2) is used here because at certain precise | 137 // An approximation of sqrt(2) is used here because at certain precise |
| 138 // miterlimits, the join style used might not be correct (e.g. a miterlimit | 138 // miterlimits, the join style used might not be correct (e.g. a miterlimit |
| 139 // of 1.4142135 should result in bevel joins, but may be drawn using miter | 139 // of 1.4142135 should result in bevel joins, but may be drawn using miter |
| 140 // joins). | 140 // joins). |
| 141 return svgStyle.strokeDashArray()->isEmpty() | 141 return svgStyle.strokeDashArray()->isEmpty() |
| 142 && svgStyle.joinStyle() == MiterJoin | 142 && svgStyle.joinStyle() == MiterJoin |
| 143 && svgStyle.strokeMiterLimit() >= 1.5; | 143 && svgStyle.strokeMiterLimit() >= 1.5; |
| 144 } | 144 } |
| 145 | 145 |
| 146 } | 146 } // namespace blink |
| OLD | NEW |