Correctly interperate from angle for conic gradients
Created attachment 349221 [details] Patch
<rdar://problem/44158271>
interperate is not a word
Created attachment 349224 [details] Patch
Comment on attachment 349224 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=349224&action=review > Source/WebCore/css/CSSGradientValue.cpp:1439 > - angle = m_angle->floatValue(CSSPrimitiveValue::CSS_DEG); > + angle = m_angle->floatValue(CSSPrimitiveValue::CSS_RAD); How do you know this is radians? It looks like consumeAngle() can use whatever units the source specified.
Because this is what is fed to CG, and CG wants radians. It's the only thing it's used for.
Comment on attachment 349224 [details] Patch Clearing flags on attachment: 349224 Committed r235868: <https://trac.webkit.org/changeset/235868>
All reviewed patches have been landed. Closing bug.
(In reply to Megan Gardner from comment #6) > Because this is what is fed to CG, and CG wants radians. It's the only thing > it's used for. But this is cross-platform code. I think ConicData needs to rename 'angle' to 'angleRadians' or at least have a comments saying that it's Radians. Ideally, we'd have a typedef.
Follow up fix for Simon's naming request https://trac.webkit.org/changeset/235877/webkit