diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-02-26 17:35:43 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-02-26 17:35:43 +0530 |
commit | aaad24c5312367921c0d2eab117c3fa587018114 (patch) | |
tree | 19859fc0f2aeeb2ab6c7c977e042bb8211453152 /components/script/dom/htmlelement.rs | |
parent | dd2f4f6a11cd294383b544504ab646a7fceabd1b (diff) | |
parent | 05547dce5a756a440ea6022665d1947dcd518f3f (diff) | |
download | servo-aaad24c5312367921c0d2eab117c3fa587018114.tar.gz servo-aaad24c5312367921c0d2eab117c3fa587018114.zip |
Auto merge of #9747 - danlrobertson:handle_macro, r=Ms2ger
Use macro for boilerplate code in webdriver `handle_*`
Add a macro for the boilerplate code that appears in most of Handler's methods handling a `WebDriverScriptCommand`.
There are at least three steps that appear in most `Hande::handle_*` methods that handle a `WebDriverScriptCommand`, so I created a simple macro that generates the equivalent code.
There are pros and cons to using a macro like this. It does reduce boilerplate code, but it also can make the code harder to read. Please let me know if you have any comments!
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9747)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmlelement.rs')
0 files changed, 0 insertions, 0 deletions