⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 203510 in webkit


Ignore:
Timestamp:
Jul 21, 2016, 10:20:44 AM (10 years ago)
Author:
Chris Dumez
Message:

Drop [TreatNullAs=EmptyString] from CanvasRenderingContext2D.globalCompositeOperation
​https://bugs.webkit.org/show_bug.cgi?id=160026

Reviewed by Sam Weinig.

Source/WebCore:

Drop [TreatNullAs=EmptyString] from CanvasRenderingContext2D.globalCompositeOperation
attribute as it does not match the specification:

It does not change web-exposed behavior because assigning to "" or "null"
gets ignored as those are not valid operations.

Test: fast/canvas/context-globalCompositeOperation-null.html

  • html/canvas/CanvasRenderingContext2D.idl:

LayoutTests:

Add test coverage.

  • fast/canvas/context-globalCompositeOperation-null-expected.txt: Added.
  • fast/canvas/context-globalCompositeOperation-null.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r203509 r203510  
     12016-07-21  Chris Dumez  <cdumez@apple.com>
     2
     3        Drop [TreatNullAs=EmptyString] from CanvasRenderingContext2D.globalCompositeOperation
     4        https://bugs.webkit.org/show_bug.cgi?id=160026
     5
     6        Reviewed by Sam Weinig.
     7
     8        Add test coverage.
     9
     10        * fast/canvas/context-globalCompositeOperation-null-expected.txt: Added.
     11        * fast/canvas/context-globalCompositeOperation-null.html: Added.
     12
    1132016-07-21  Carlos Alberto Lopez Perez  <clopez@igalia.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r203505 r203510  
     12016-07-21  Chris Dumez  <cdumez@apple.com>
     2
     3        Drop [TreatNullAs=EmptyString] from CanvasRenderingContext2D.globalCompositeOperation
     4        https://bugs.webkit.org/show_bug.cgi?id=160026
     5
     6        Reviewed by Sam Weinig.
     7
     8        Drop [TreatNullAs=EmptyString] from CanvasRenderingContext2D.globalCompositeOperation
     9        attribute as it does not match the specification:
     10        - https://html.spec.whatwg.org/multipage/scripting.html#canvascompositing
     11
     12        It does not change web-exposed behavior because assigning to "" or "null"
     13        gets ignored as those are not valid operations.
     14
     15        Test: fast/canvas/context-globalCompositeOperation-null.html
     16
     17        * html/canvas/CanvasRenderingContext2D.idl:
     18
    1192016-07-21  Carlos Garcia Campos  <cgarcia@igalia.com>
    220
  • trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.idl

    r201724 r203510  
    4444    attribute unrestricted float globalAlpha;
    4545
    46     // FIXME: This should not have [TreatNullAs=EmptyString].
    47     [TreatNullAs=EmptyString] attribute DOMString globalCompositeOperation;
     46    attribute DOMString globalCompositeOperation;
    4847
    4948    [RaisesException] CanvasGradient createLinearGradient(float x0, float y0, float x1, float y1);
Note: See TracChangeset for help on using the changeset viewer.