Replace LayoutObject::skipInvalidationWhenLaidOutChildren() with paintedOutputOfObjectHasNoEffect

We don't need to check if the layout is laid out because of children,
but just check if it will paint anything and if its painting is
affected by geometry change.

Removed neededLayoutBecauseOfChildren logic and replaced
skipInvalidationWhenLaiedOutChildren() with
paintedOutputOfObjectHasNoEffect().

Also cleaned up selection paint invalidation.

BUG=451090

Review-Url: https://codereview.chromium.org/2203933002
Cr-Commit-Position: refs/heads/master@{#409965}
13 files changed