[webkit-dev] "ReflectOnly" IDL equivalent
rniwa at webkit.org
Fri Jun 2 11:32:33 PDT 2017
On Fri, Jun 2, 2017 at 9:18 AM, Chris Dumez <cdumez at apple.com> wrote:
> No, I do not believe WebKit supports ReflectOnly and this is not standard
> IDL either.
> The way to do it in WebKit would be to use a regular DOMString attribute, as
> in the specification and implement this logic in the c++ getter for this
> attribute. See HTMLElement::dir() for an example.
> We could also consider adding support for something like ReflectOnly in our
> bindings generator considering that this seems to be used quite a bit in the
> HTML specification and it would decrease code complexity a little.
> I’d actually be in favor of that.
I'd suggest other names like "ReflectEnum" or even "Reflect<EnumType>"
where EnumType is the name of enum that defines the list of values.
"ReflectOnly" doesn't tell us on what "only" applies. If I didn't know
the context, it sounds like something that does less work than regular
- R. Niwa
More information about the webkit-dev