Changeset 267000 in webkit


Ignore:
Timestamp:
Sep 13, 2020 11:47:31 AM (4 years ago)
Author:
commit-queue@webkit.org
Message:

Make CanvasRenderingContext2D functions parameters not default to undefined
https://bugs.webkit.org/show_bug.cgi?id=216438

Patch by Rob Buis <rbuis@igalia.com> on 2020-09-13
Reviewed by Sam Weinig.

Source/WebCore:

Some string parameters default to "undefined", however the code path is the same when
no default is given and implicitly a null string is passed, so remove the default
values.

  • html/canvas/CanvasRenderingContext2D.idl:

LayoutTests:

Adjust expected test result.

  • inspector/canvas/recording-2d-full-expected.txt:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r266989 r267000  
     12020-09-13  Rob Buis  <rbuis@igalia.com>
     2
     3        Make CanvasRenderingContext2D functions parameters not default to undefined
     4        https://bugs.webkit.org/show_bug.cgi?id=216438
     5
     6        Reviewed by Sam Weinig.
     7
     8        Adjust expected test result.
     9
     10        * inspector/canvas/recording-2d-full-expected.txt:
     11
    1122020-09-12  Tyler Wilcock <twilco.o@protonmail.com>
    213
  • trunk/LayoutTests/inspector/canvas/recording-2d-full-expected.txt

    r246016 r267000  
    653653        2: executeFrameFunction
    654654  48: (duration)
    655     0: setCompositeOperation("undefined")
     655    0: setCompositeOperation("")
    656656      swizzleTypes: [String]
    657657      trace:
     
    703703        2: executeFrameFunction
    704704  50: (duration)
    705     0: setLineCap("undefined")
     705    0: setLineCap("")
    706706      swizzleTypes: [String]
    707707      trace:
     
    723723        2: executeFrameFunction
    724724  52: (duration)
    725     0: setLineJoin("undefined")
     725    0: setLineJoin("")
    726726      swizzleTypes: [String]
    727727      trace:
  • trunk/Source/WebCore/ChangeLog

    r266999 r267000  
     12020-09-13  Rob Buis  <rbuis@igalia.com>
     2
     3        Make CanvasRenderingContext2D functions parameters not default to undefined
     4        https://bugs.webkit.org/show_bug.cgi?id=216438
     5
     6        Reviewed by Sam Weinig.
     7
     8        Some string parameters default to "undefined", however the code path is the same when
     9        no default is given and implicitly a null string is passed, so remove the default
     10        values.
     11
     12        * html/canvas/CanvasRenderingContext2D.idl:
     13
    1142020-09-13  Sam Weinig  <weinig@apple.com>
    215
  • trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.idl

    r266523 r267000  
    3535    // Non-standard legacy aliases (Compositing).
    3636    [ImplementedAs=setGlobalAlpha] undefined setAlpha(optional unrestricted float alpha = NaN);
    37     [ImplementedAs=setGlobalCompositeOperation] undefined setCompositeOperation(optional DOMString compositeOperation = "undefined"); // FIXME: Using "undefined" as default parameter value is wrong.
     37    [ImplementedAs=setGlobalCompositeOperation] undefined setCompositeOperation(optional DOMString compositeOperation);
    3838
    3939    // Non-standard functionality (CanvasDrawImage).
     
    6161    // Non-standard legacy aliases (CanvasPathDrawingStyles).
    6262    undefined setLineWidth(optional unrestricted float width = NaN);
    63     undefined setLineCap(optional DOMString cap = "undefined"); // FIXME: Using "undefined" as default parameter value is wrong.
    64     undefined setLineJoin(optional DOMString join = "undefined"); // FIXME: Using "undefined" as default parameter value is wrong.
     63    undefined setLineCap(optional DOMString cap);
     64    undefined setLineJoin(optional DOMString join);
    6565    undefined setMiterLimit(optional unrestricted float limit = NaN);
    6666    attribute sequence<unrestricted float> webkitLineDash;
Note: See TracChangeset for help on using the changeset viewer.