Bug 176276 - [Canvas] Split CanvasRenderingContext2D.idl into separate IDLs to match current HTML spec
Summary: [Canvas] Split CanvasRenderingContext2D.idl into separate IDLs to match curre...
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: InRadar
Depends on:
Blocks:
 
Reported: 2017-09-02 08:55 PDT by Sam Weinig
Modified: 2017-09-27 12:53 PDT (History)
8 users (show)

See Also:


Attachments
Patch (210.55 KB, patch)
2017-09-02 15:03 PDT, Sam Weinig
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-elcapitan (1.48 MB, application/zip)
2017-09-02 16:22 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews105 for mac-elcapitan-wk2 (1.59 MB, application/zip)
2017-09-02 16:28 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews114 for mac-elcapitan (2.26 MB, application/zip)
2017-09-02 16:44 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews123 for ios-simulator-wk2 (1.35 MB, application/zip)
2017-09-02 16:52 PDT, Build Bot
no flags Details
Patch (276.18 KB, patch)
2017-09-02 17:39 PDT, Sam Weinig
no flags Details | Formatted Diff | Diff
Patch (282.31 KB, patch)
2017-09-02 17:46 PDT, Sam Weinig
dino: review+
commit-queue: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Weinig 2017-09-02 08:55:53 PDT
[Canvas] Split CanvasRenderingContext2D.idl into seperate IDLs to match current HTML spec
Comment 1 Sam Weinig 2017-09-02 15:03:16 PDT Comment hidden (obsolete)
Comment 2 Build Bot 2017-09-02 16:22:40 PDT Comment hidden (obsolete)
Comment 3 Build Bot 2017-09-02 16:22:41 PDT Comment hidden (obsolete)
Comment 4 Build Bot 2017-09-02 16:27:58 PDT Comment hidden (obsolete)
Comment 5 Build Bot 2017-09-02 16:28:00 PDT Comment hidden (obsolete)
Comment 6 Build Bot 2017-09-02 16:44:04 PDT Comment hidden (obsolete)
Comment 7 Build Bot 2017-09-02 16:44:06 PDT Comment hidden (obsolete)
Comment 8 Build Bot 2017-09-02 16:52:03 PDT Comment hidden (obsolete)
Comment 9 Build Bot 2017-09-02 16:52:05 PDT Comment hidden (obsolete)
Comment 10 Sam Weinig 2017-09-02 17:39:02 PDT Comment hidden (obsolete)
Comment 11 Sam Weinig 2017-09-02 17:46:03 PDT
Created attachment 319750 [details]
Patch
Comment 12 WebKit Commit Bot 2017-09-03 14:19:33 PDT
Comment on attachment 319750 [details]
Patch

Rejecting attachment 319750 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'apply-attachment', '--no-update', '--non-interactive', 319750, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
anvas/recording-2d-expected.txt
patching file LayoutTests/js/dom/global-constructors-attributes-dedicated-worker-expected.txt
patching file LayoutTests/platform/mac-wk1/js/dom/global-constructors-attributes-dedicated-worker-expected.txt
patching file LayoutTests/platform/wpe/js/dom/global-constructors-attributes-dedicated-worker-expected.txt

Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force', '--reviewer', u'Dean Jackson']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

Full output: http://webkit-queues.webkit.org/results/4443715
Comment 13 Sam Weinig 2017-09-04 17:23:06 PDT
Committed r221598: <http://trac.webkit.org/changeset/221598>
Comment 14 Joseph Pecoraro 2017-09-05 11:59:50 PDT
Comment on attachment 319750 [details]
Patch

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

> Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp:589
> +    CanvasLineJoin join;
> +    if (stringValue == "round")
> +        join = CanvasLineJoin::Round;
> +    if (stringValue == "bevel")
> +        join = CanvasLineJoin::Bevel;
> +    if (stringValue == "miter")
> +        join = CanvasLineJoin::Miter;
> +    else
> +        return;

Something seems wrong here. Should this be an else/if chain? Otherwise `round` and `bevel` do nothing above.
Comment 15 Sam Weinig 2017-09-06 09:32:37 PDT
(In reply to Joseph Pecoraro from comment #14)
> Comment on attachment 319750 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=319750&action=review
> 
> > Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp:589
> > +    CanvasLineJoin join;
> > +    if (stringValue == "round")
> > +        join = CanvasLineJoin::Round;
> > +    if (stringValue == "bevel")
> > +        join = CanvasLineJoin::Bevel;
> > +    if (stringValue == "miter")
> > +        join = CanvasLineJoin::Miter;
> > +    else
> > +        return;
> 
> Something seems wrong here. Should this be an else/if chain? Otherwise
> `round` and `bevel` do nothing above.

Good find Joe! Filed https://bugs.webkit.org/show_bug.cgi?id=176461 to track and fix this.
Comment 16 Radar WebKit Bug Importer 2017-09-27 12:53:32 PDT
<rdar://problem/34694219>