To improve source code readability of core/editing, I would like to
sanitize or cleanup function parameters, see EditingUtilizies.h and
VisibleUnits.h.
Some functions have confusing parameters:
- weak constness, e.g. some functions take |Node*| instead of |const Node*| event if these function uses |Node| readonly.
- Default parameters
- Overload; some function has too many overloads
To improve source code readability of core/editing, I would like to
sanitize or cleanup function parameters, see EditingUtilizies.h and
VisibleUnits.h.
To reduce confusion we should change parameters to take:
- |const Node&| instead of |Node*|, |const Node*|; constness and avoid null check
- Avoid default parameter
- Overload; some function has too many overloads
Comment 1 by yosin@chromium.org
, Sep 19 2017Cc: ice...@yandex-team.ru