Following Position constructor and family should take const Node&, since node parameter can not
be null.
Note: We should take care call sites of Position(Node*, int offset) where we sometimes pass
null node.
- Position(Node*, PositionAnchorType)
- Position(Node*, int offset)
- EditingPositionOf(Node*, int offset)
- BeforeNode(Node*)
- AfterNode(Node*)
- FirstPositionInNode(Node*)
- LastPositionInNode(Node*)
- FirstPositionInOrBeforeNode(Node*)
- LastPositionInOrBeforeNode(Node*)
Following Position constructor and family should take const Node&, since node parameter can not
be null.
Note: We should take care call sites of Position(Node*, int offset) where we sometimes pass
null node.
- Position(Node*, PositionAnchorType)
- Position(Node*, int offset)
- EditingPositionOf(Node*, int offset)
- BeforeNode(Node*)
- AfterNode(Node*)
- FirstPositionInNode(Node*)
- LastPositionInNode(Node*)
- FirstPositionInOrBeforeNode(Node*)
- LastPositionInOrBeforeNode(Node*)
We should change VisiblePositon version of them too:
AfterNode(Node*);
BeforeNode(Node*);
- FirstPositionInNode(Node*);
- InParentAfterNode(const Node&);
- InParentBeforeNode(const Node&);
- LastPositionInNode(Node*);
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.
Sorry for the inconvenience if the bug really should have been left as Available.
For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Comment 1 by bugdroid1@chromium.org
, Jun 21 2017