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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGRect.cpp

Issue 2753013004: Apply SVG styles paint-order, stroke-linejoin, and stroke-linecap on DOM text
Patch Set: Apply SVG styles paint-order, stroke-linejoin, and stroke-linecap on DOM text 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 unified diff | Download patch
OLDNEW
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // = 1.414213562373095... 134 // = 1.414213562373095...
135 // When sqrt(2) exceeds the miterlimit, then the join style switches to 135 // When sqrt(2) exceeds the miterlimit, then the join style switches to
136 // "bevel". When the miterlimit is greater than or equal to sqrt(2) then 136 // "bevel". When the miterlimit is greater than or equal to sqrt(2) then
137 // the join style remains "miter". 137 // the join style remains "miter".
138 // 138 //
139 // An approximation of sqrt(2) is used here because at certain precise 139 // An approximation of sqrt(2) is used here because at certain precise
140 // miterlimits, the join style used might not be correct (e.g. a miterlimit 140 // miterlimits, the join style used might not be correct (e.g. a miterlimit
141 // of 1.4142135 should result in bevel joins, but may be drawn using miter 141 // of 1.4142135 should result in bevel joins, but may be drawn using miter
142 // joins). 142 // joins).
143 return svgStyle.strokeDashArray()->isEmpty() && 143 return svgStyle.strokeDashArray()->isEmpty() &&
144 svgStyle.joinStyle() == MiterJoin && 144 style()->joinStyle() == MiterJoin &&
145 svgStyle.strokeMiterLimit() >= 1.5; 145 svgStyle.strokeMiterLimit() >= 1.5;
146 } 146 }
147 147
148 } // namespace blink 148 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698