Bug 161039 - Remove a few custom bindings
Summary: Remove a few custom bindings
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sam Weinig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-21 18:05 PDT by Sam Weinig
Modified: 2016-08-21 21:06 PDT (History)
5 users (show)

See Also:


Attachments
Patch (22.44 KB, text/plain)
2016-08-21 18:08 PDT, Sam Weinig
no flags Details
Patch (23.86 KB, patch)
2016-08-21 18:27 PDT, Sam Weinig
no flags Details | Formatted Diff | Diff
Patch (23.95 KB, text/plain)
2016-08-21 18:36 PDT, Sam Weinig
no flags Details
Patch (21.21 KB, patch)
2016-08-21 19:17 PDT, Sam Weinig
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Weinig 2016-08-21 18:05:21 PDT
Remove a few custom bindings
Comment 1 Sam Weinig 2016-08-21 18:08:35 PDT
Created attachment 286577 [details]
Patch
Comment 2 Sam Weinig 2016-08-21 18:27:33 PDT
Created attachment 286579 [details]
Patch
Comment 3 Sam Weinig 2016-08-21 18:36:09 PDT
Created attachment 286580 [details]
Patch
Comment 4 Darin Adler 2016-08-21 18:43:00 PDT
Comment on attachment 286580 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=286580&action=review

Looks good! Not sure why it’s not building.

> Source/WebCore/html/canvas/CanvasRenderingContext2D.h:86
> +    const Vector<float>& webkitLineDash() const { return getLineDash(); }
>      void setWebkitLineDash(const Vector<float>&);

Strange that get is inlined but set is not.
Comment 5 Sam Weinig 2016-08-21 19:17:04 PDT
Created attachment 286581 [details]
Patch
Comment 6 Sam Weinig 2016-08-21 19:18:14 PDT
(In reply to comment #4)
> Comment on attachment 286580 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=286580&action=review
> 
> Looks good! Not sure why it’s not building.
> 
> > Source/WebCore/html/canvas/CanvasRenderingContext2D.h:86
> > +    const Vector<float>& webkitLineDash() const { return getLineDash(); }
> >      void setWebkitLineDash(const Vector<float>&);
> 
> Strange that get is inlined but set is not.

Get is identical, set has slightly different semantics, and therefore can't just forward.  If they were both identical, I would remove them, and make the bindings forward, but alas, this is the world we live in.
Comment 7 Sam Weinig 2016-08-21 19:19:15 PDT
I was being greedy trying to do two interfaces at once. Latest patch just fixes the canvas interface.
Comment 8 WebKit Commit Bot 2016-08-21 21:06:38 PDT
Comment on attachment 286581 [details]
Patch

Clearing flags on attachment: 286581

Committed r204700: <http://trac.webkit.org/changeset/204700>
Comment 9 WebKit Commit Bot 2016-08-21 21:06:44 PDT
All reviewed patches have been landed.  Closing bug.