Skip to content

Macroize event handler getters and setters - #3776

Merged
bors-servo merged 1 commit into
servo:masterfrom
tetsuharuohzeki:macro
Oct 23, 2014
Merged

bors-servo merged 1 commit into
servo:masterfrom
tetsuharuohzeki:macro

Conversation

@tetsuharuohzeki

Copy link
Copy Markdown
Contributor

Fix #3755

This doesn't convert some specialized event handlers (e.g. HTMLBodyElement's ones, HTMLElement.GetOnload()).

Comment thread components/script/dom/htmlelement.rs Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jdm Do we have to preserve this special case? I feel that HTMLBodyElement cares this.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we should preserve any non-default behaviour like this.

@jdm jdm closed this Oct 22, 2014
@jdm jdm reopened this Oct 22, 2014
@jdm jdm closed this Oct 22, 2014
@jdm jdm reopened this Oct 22, 2014
@jdm

jdm commented Oct 22, 2014

Copy link
Copy Markdown
Member

Critic's not responding right now. The one change I'd like to make is leave out the EventHandlerNonNull and either don't macro-ize the error evnt handler or add a separate macro for it.

@tetsuharuohzeki

Copy link
Copy Markdown
Contributor Author

updated.

@Manishearth

Copy link
Copy Markdown
Member

Note: #3759 contains event handlers that need macroization if it lands first.

@tetsuharuohzeki

Copy link
Copy Markdown
Contributor Author

???

I split an error_hanler_macro!. I'm apologize to squash commits.

@tetsuharuohzeki

Copy link
Copy Markdown
Contributor Author

I pushed the fixup commit

@jdm

jdm commented Oct 23, 2014

Copy link
Copy Markdown
Member

Looks good. Squash and I'll merge!

@jdm

jdm commented Oct 23, 2014

Copy link
Copy Markdown
Member

Oh wait, please move the macros to /components/script/dom/macros.rs instead of components/plugins.

@tetsuharuohzeki

Copy link
Copy Markdown
Contributor Author

Oh wait, please move the macros to /components/script/dom/macros.rs instead of components/plugins.

I think it's more better to move ~/dom/binding/macros.rs

@tetsuharuohzeki

Copy link
Copy Markdown
Contributor Author

I think it's more better to move ~/dom/binding/macros.rs

Oops, I forgot that we have already had ~/dom/macros.rs. OK. I'll move to it.

@tetsuharuohzeki

Copy link
Copy Markdown
Contributor Author

squashed & moved

bors-servo pushed a commit that referenced this pull request Oct 23, 2014
Fix #3755

This doesn't convert some specialized event handlers (e.g. `HTMLBodyElement`'s ones, `HTMLElement.GetOnload()`).
@bors-servo bors-servo closed this Oct 23, 2014
@bors-servo
bors-servo merged commit 0a84c5d into servo:master Oct 23, 2014
@tetsuharuohzeki
tetsuharuohzeki deleted the macro branch October 23, 2014 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Macroize event handler getters and setters

4 participants