RESOLVED FIXED 166793
[WebIDL] Remove custom bindings from CanvasRenderingContext2D
https://bugs.webkit.org/show_bug.cgi?id=166793
Summary [WebIDL] Remove custom bindings from CanvasRenderingContext2D
Sam Weinig
Reported 2017-01-06 18:34:44 PST
[WebIDL] Remove custom bindings from CanvasRenderingContext2D
Attachments
Patch (13.08 KB, patch)
2017-01-06 18:37 PST, Sam Weinig
darin: review+
Sam Weinig
Comment 1 2017-01-06 18:37:16 PST
Darin Adler
Comment 2 2017-01-06 20:33:44 PST
Comment on attachment 298245 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=298245&action=review > Source/WebCore/ChangeLog:29 > + Move existing setStrokeStyle/setFillStyle functions (which take CanvasStyle's) > + down, and implement new ones that operate on Variants, matching the spec. What does it mean to "move the existing functions down"? I guess you mean you made them private. > Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp:1653 > +void CanvasRenderingContext2D::setStrokeStyle(CanvasStyle style) Not sure you really need to move these in the source file, especially since I assume you aren’t otherwise changing them in this patch. > Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp:1709 > + if (auto* gradiant = style.canvasGradient()) Spelling error here, gradient has an "e". > Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp:1725 > + [this] (const RefPtr<CanvasGradient>& gradiant) { this->setStrokeStyle(CanvasStyle(*gradiant)); }, Spelling error here, gradient has an "e". > Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp:1739 > + [this] (const RefPtr<CanvasGradient>& gradiant) { this->setFillStyle(CanvasStyle(*gradiant)); }, Spelling error here, gradient has an "e".
Sam Weinig
Comment 3 2017-01-06 22:20:43 PST
Note You need to log in before you can comment on or make changes to this bug.