| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
HTMLSelectElement* OwnerElement() const { return nearest_ancestor_select_; }This seems less than ideal -- having `OwnerElement` paired with `OwnerDataListElement` seems a bit confusing. I think it would be nice to still write `OwnerSelectElement` at the bulk of the callers spread around the codebase.
I can see two options for how to do this:
(1) just add a third method like `OwnerElementForList` or maybe just `OwnerElement`, and only use it in the `OptionList` code, or
(2) make the method an additional template parameter to `ElementList`
template <typename OwnerType, typename T>here (and above) does it make sense to use `ItemType` rather than just `T`?
enum class ElementListIteratorStartingPoint {Is there a reason this needs to move outside the `ElementListIterator` class?
(Is it fixing something that could have been fixed by adding the `typename` keyword someplace?)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
HTMLSelectElement* OwnerElement() const { return nearest_ancestor_select_; }This seems less than ideal -- having `OwnerElement` paired with `OwnerDataListElement` seems a bit confusing. I think it would be nice to still write `OwnerSelectElement` at the bulk of the callers spread around the codebase.
I can see two options for how to do this:
(1) just add a third method like `OwnerElementForList` or maybe just `OwnerElement`, and only use it in the `OptionList` code, or
(2) make the method an additional template parameter to `ElementList`
I renamed OwnerElement to OwnerElementForList, I kind of liked that better than having duplicate methods although maybe its harder to read in other places now
template <typename OwnerType, typename T>here (and above) does it make sense to use `ItemType` rather than just `T`?
Done
enum class ElementListIteratorStartingPoint {Is there a reason this needs to move outside the `ElementListIterator` class?
(Is it fixing something that could have been fixed by adding the `typename` keyword someplace?)
it was because i had to add template arguments to usages of the class namespace in other places so I thought it would be better to just move it outside of the class, but i moved it back in and added templates arguments to the other references to make it work
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
HTMLSelectElement* OwnerElement() const { return nearest_ancestor_select_; }Joey ArharThis seems less than ideal -- having `OwnerElement` paired with `OwnerDataListElement` seems a bit confusing. I think it would be nice to still write `OwnerSelectElement` at the bulk of the callers spread around the codebase.
I can see two options for how to do this:
(1) just add a third method like `OwnerElementForList` or maybe just `OwnerElement`, and only use it in the `OptionList` code, or
(2) make the method an additional template parameter to `ElementList`
I renamed OwnerElement to OwnerElementForList, I kind of liked that better than having duplicate methods although maybe its harder to read in other places now
OK, not quite what I was hoping for but I guess it's okay. (I'd have preferred just having duplicate one-line methods so the bulk of the callers could still say `OwnerSelectElement`.)
Joey ArharIs there a reason this needs to move outside the `ElementListIterator` class?
(Is it fixing something that could have been fixed by adding the `typename` keyword someplace?)
it was because i had to add template arguments to usages of the class namespace in other places so I thought it would be better to just move it outside of the class, but i moved it back in and added templates arguments to the other references to make it work
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
HTMLSelectElement* OwnerElement() const { return nearest_ancestor_select_; }Joey ArharThis seems less than ideal -- having `OwnerElement` paired with `OwnerDataListElement` seems a bit confusing. I think it would be nice to still write `OwnerSelectElement` at the bulk of the callers spread around the codebase.
I can see two options for how to do this:
(1) just add a third method like `OwnerElementForList` or maybe just `OwnerElement`, and only use it in the `OptionList` code, or
(2) make the method an additional template parameter to `ElementList`
David BaronI renamed OwnerElement to OwnerElementForList, I kind of liked that better than having duplicate methods although maybe its harder to read in other places now
OK, not quite what I was hoping for but I guess it's okay. (I'd have preferred just having duplicate one-line methods so the bulk of the callers could still say `OwnerSelectElement`.)
ok, i made duplicate methods and reverted changes which renamed from ownerselectelement to ownerelementforlist
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |