WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
65717
Remove LegacyDefaultOptionalArguments flag from Document.idl
https://bugs.webkit.org/show_bug.cgi?id=65717
Summary
Remove LegacyDefaultOptionalArguments flag from Document.idl
Mark Pilgrim (Google)
Reported
2011-08-04 14:19:09 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 Document.idl. 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
(15.62 KB, patch)
2011-08-04 14:19 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mark Pilgrim (Google)
Comment 1
2011-08-04 14:19:50 PDT
Created
attachment 102979
[details]
Patch
Adam Barth
Comment 2
2011-08-04 14:30:01 PDT
Comment on
attachment 102979
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=102979&action=review
> Source/WebCore/dom/Document.idl:46 > - [ReturnsNew] EntityReference createEntityReference(in DOMString name) > + [ReturnsNew] EntityReference createEntityReference(in [Optional=CallWithDefaultValue] DOMString name)
Crazy. I have no idea what ReturnsNew means.
> Source/WebCore/dom/Document.idl:332 > + [ReturnsNew, EnabledAtRuntime] Touch createTouch(in [Optional=CallWithDefaultValue] DOMWindow window, > + in [Optional=CallWithDefaultValue] EventTarget target, > + in [Optional=CallWithDefaultValue] long identifier, > + in [Optional=CallWithDefaultValue] long pageX, > + in [Optional=CallWithDefaultValue] long pageY, > + in [Optional=CallWithDefaultValue] long screenX, > + in [Optional=CallWithDefaultValue] long screenY, > + in [Optional=CallWithDefaultValue] long webkitRadiusX, > + in [Optional=CallWithDefaultValue] long webkitRadiusY, > + in [Optional=CallWithDefaultValue] float webkitRotationAngle, > + in [Optional=CallWithDefaultValue] float webkitForce)
This API seems poorly designed, but that's another story. What does it mean to have prefixed argument names?
Mark Pilgrim (Google)
Comment 3
2011-08-04 16:36:41 PDT
(In reply to
comment #2
)
> (From update of
attachment 102979
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=102979&action=review
> > > Source/WebCore/dom/Document.idl:46 > > - [ReturnsNew] EntityReference createEntityReference(in DOMString name) > > + [ReturnsNew] EntityReference createEntityReference(in [Optional=CallWithDefaultValue] DOMString name) > > Crazy. I have no idea what ReturnsNew means.
In NativeToJSValue, it adds an extra ", true" parameter when calling toV8(). No idea what that does though.
WebKit Review Bot
Comment 4
2011-08-04 17:39:41 PDT
Comment on
attachment 102979
[details]
Patch Clearing flags on attachment: 102979 Committed
r92436
: <
http://trac.webkit.org/changeset/92436
>
WebKit Review Bot
Comment 5
2011-08-04 17:39:45 PDT
All reviewed patches have been landed. Closing bug.
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