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

Changeset 267590 in webkit


Ignore:
Timestamp:
Sep 25, 2020, 1:19:39 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Simplify SVGTests.hasExtension idl
https://bugs.webkit.org/show_bug.cgi?id=216984

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

Simplify SVGTests.hasExtension idl by removing optional and default parameter.
Skipping the parameter will now result in the parameter being a null string,
which gives the same behaviour as before as the method just checks
against non null namespaces.

[1] https://www.w3.org/TR/SVG11/types.html#__svg__SVGTests__hasExtension

  • page/DOMWindow.idl:
  • svg/SVGTests.idl:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r267589 r267590  
     12020-09-25  Rob Buis  <rbuis@igalia.com>
     2
     3        Simplify SVGTests.hasExtension idl
     4        https://bugs.webkit.org/show_bug.cgi?id=216984
     5
     6        Reviewed by Sam Weinig.
     7
     8        Simplify SVGTests.hasExtension idl by removing optional and default parameter.
     9        Skipping the parameter will now result in the parameter being a null string,
     10        which gives the same behaviour as before as the method just checks
     11        against non null namespaces.
     12
     13        [1] https://www.w3.org/TR/SVG11/types.html#__svg__SVGTests__hasExtension
     14
     15        * page/DOMWindow.idl:
     16        * svg/SVGTests.idl:
     17
    1182020-09-25  Chris Dumez  <cdumez@apple.com>
    219
  • trunk/Source/WebCore/page/DOMWindow.idl

    r267095 r267590  
    157157    attribute DOMString defaultStatus;
    158158    [ImplementedAs=defaultStatus] attribute DOMString defaultstatus; // For compatibility with legacy content.
    159     boolean find(optional DOMString string, optional boolean caseSensitive = false, optional boolean backwards = false, optional boolean wrap = false, optional boolean wholeWord = false, optional boolean searchInFrames = false, optional boolean showDialog = false); // FIXME: Using "undefined" as default parameter value is wrong.
     159    boolean find(optional DOMString string, optional boolean caseSensitive = false, optional boolean backwards = false, optional boolean wrap = false, optional boolean wholeWord = false, optional boolean searchInFrames = false, optional boolean showDialog = false);
    160160    [Replaceable] readonly attribute  boolean offscreenBuffering;
    161161    [Replaceable] readonly attribute long screenLeft;
  • trunk/Source/WebCore/svg/SVGTests.idl

    r266678 r267590  
    3434
    3535    [SameObject] readonly attribute SVGStringList requiredFeatures;
    36     // FIXME: Using "undefined" as default parameter value is wrong.
    37     boolean hasExtension(optional DOMString extension = "undefined");
     36    boolean hasExtension(DOMString extension);
    3837};
Note: See TracChangeset for help on using the changeset viewer.