The ShouldHitScrollbars enum and code-path is dead code and no longer used. It was used by Chromium for handling X11 middle-mouse press, but after this code refactored and moved to EventHandler it is no longer needed.
Sorry, it turns out my information was outdated. ShouldHitScrollbars is now again used by the handling of gesture events.