WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
65737
Remove LegacyDefaultOptionalArguments flag from canvas IDL files
https://bugs.webkit.org/show_bug.cgi?id=65737
Summary
Remove LegacyDefaultOptionalArguments flag from canvas IDL files
Mark Pilgrim (Google)
Reported
2011-08-04 18:42:44 PDT
As discussed in IRC, we are migrating our IDL files away from the interface-level "LegacyDefaultOptionalArguments" flag and onto argument-level [Optional] or [Optional=CallWithDefaultValue] flags. This patch migrates the remaining canvas-related IDL files. It does not change any behavior, i.e. it does not make any arguments required that were previously optional, nor vice-versa. All existing tests pass.
Attachments
Patch
(10.32 KB, patch)
2011-08-04 18:57 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
Patch V1(fix mac build failure)
(3.76 KB, patch)
2011-08-04 22:17 PDT
,
Kenichi Ishibashi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Mark Pilgrim (Google)
Comment 1
2011-08-04 18:57:30 PDT
Created
attachment 103021
[details]
Patch
Adam Barth
Comment 2
2011-08-04 19:00:38 PDT
Comment on
attachment 103021
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=103021&action=review
> Source/WebCore/html/canvas/OESVertexArrayObject.idl:38 > - [StrictTypeChecking] void deleteVertexArrayOES(in WebGLVertexArrayObjectOES arrayObject); > - [StrictTypeChecking] boolean isVertexArrayOES(in WebGLVertexArrayObjectOES arrayObject); > - [StrictTypeChecking] void bindVertexArrayOES(in WebGLVertexArrayObjectOES arrayObject) raises(DOMException); > + [StrictTypeChecking] void deleteVertexArrayOES(in [Optional=CallWithDefaultValue] WebGLVertexArrayObjectOES arrayObject); > + [StrictTypeChecking] boolean isVertexArrayOES(in [Optional=CallWithDefaultValue] WebGLVertexArrayObjectOES arrayObject); > + [StrictTypeChecking] void bindVertexArrayOES(in [Optional=CallWithDefaultValue] WebGLVertexArrayObjectOES arrayObject) raises(DOMException);
Is there any bad interaction between StrictTypeChecking and CallWithDefaultValue?
Mark Pilgrim (Google)
Comment 3
2011-08-04 19:12:11 PDT
(In reply to
comment #2
)
> (From update of
attachment 103021
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=103021&action=review
> > > Source/WebCore/html/canvas/OESVertexArrayObject.idl:38 > > - [StrictTypeChecking] void deleteVertexArrayOES(in WebGLVertexArrayObjectOES arrayObject); > > - [StrictTypeChecking] boolean isVertexArrayOES(in WebGLVertexArrayObjectOES arrayObject); > > - [StrictTypeChecking] void bindVertexArrayOES(in WebGLVertexArrayObjectOES arrayObject) raises(DOMException); > > + [StrictTypeChecking] void deleteVertexArrayOES(in [Optional=CallWithDefaultValue] WebGLVertexArrayObjectOES arrayObject); > > + [StrictTypeChecking] boolean isVertexArrayOES(in [Optional=CallWithDefaultValue] WebGLVertexArrayObjectOES arrayObject); > > + [StrictTypeChecking] void bindVertexArrayOES(in [Optional=CallWithDefaultValue] WebGLVertexArrayObjectOES arrayObject) raises(DOMException); > > Is there any bad interaction between StrictTypeChecking and CallWithDefaultValue?
No. StrictTypeChecking adds some additional type checking after the function declaration is constructed. See line 936 of Source/WebCore/bindings/scripts/CodeGeneratorV8.pm for details. It does not interact with [Optional=CallWithDefaultValue].
Adam Barth
Comment 4
2011-08-04 19:17:30 PDT
Comment on
attachment 103021
[details]
Patch So what happens if you don't supply the argument? It throws a different sort of exception?
WebKit Review Bot
Comment 5
2011-08-04 20:50:31 PDT
Comment on
attachment 103021
[details]
Patch Clearing flags on attachment: 103021 Committed
r92443
: <
http://trac.webkit.org/changeset/92443
>
WebKit Review Bot
Comment 6
2011-08-04 20:50:37 PDT
All reviewed patches have been landed. Closing bug.
Kenichi Ishibashi
Comment 7
2011-08-04 22:17:20 PDT
Created
attachment 103035
[details]
Patch V1(fix mac build failure)
Kenichi Ishibashi
Comment 8
2011-08-04 22:21:33 PDT
Comment on
attachment 103035
[details]
Patch V1(fix mac build failure) Sorry I uploaded the patch to wrong bug id. Please ignore it.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug