This refactoring is suggested in Bug 30555 and Bug 31393.
Created attachment 43140 [details] Patch v1
Actually, this change seems to fix the wrong test expectation for svg/custom/gradient-stop-style-change-expected . Though I don't know about this test at all, it seems the expectation becomes better (the color was originally #FF0000 (red) and now it is #008000 (green)).
Comment on attachment 43140 [details] Patch v1 r=me
Comment on attachment 43140 [details] Patch v1 Clearing flags on attachment: 43140 Committed r50976: <http://trac.webkit.org/changeset/50976>
All reviewed patches have been landed. Closing bug.