aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlelement.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-02-26 17:35:43 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2016-02-26 17:35:43 +0530
commitaaad24c5312367921c0d2eab117c3fa587018114 (patch)
tree19859fc0f2aeeb2ab6c7c977e042bb8211453152 /components/script/dom/htmlelement.rs
parentdd2f4f6a11cd294383b544504ab646a7fceabd1b (diff)
parent05547dce5a756a440ea6022665d1947dcd518f3f (diff)
downloadservo-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