nsLayoutUtils::ContainsPoint() was added for convenience for hit test on touch/selection carets. Since AccessibleCaret does not use rect inflation, we should remove it if no one use it anymore.
"touchcarettap" should be renamed, or merged into "selectionstatechanged" since "touchcarttap" does not contain the selection visibility and rect information.