Clip incremental invalidation rects for RenderBox

RenderBox::incrementallyInvalidatePaint invalidates according to
border-box delta, not considering the bounds. If the bounds are
clipped by ancestor clipping, the incrementally invalidated rect
may exceed the ancestor clipping.

Clip the incremental invalidation rects by oldBounds and newBounds
to avoid invalidation on unrelated areas.

BUG=411420
TEST=fast/repaint/resize-with-border-clipped.html

Review URL: https://codereview.chromium.org/548523005

git-svn-id: svn://svn.chromium.org/blink/trunk@182081 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Get rid of anonymous table* wrappers when they are no longer needed.

When a renderer is removed, don't just see if an anonymous parent
should be destroyed, but keep looking further up in the ancestry
as well.

BUG=389129

Review URL: https://codereview.chromium.org/540453003

git-svn-id: svn://svn.chromium.org/blink/trunk@182082 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r182069

http://src.chromium.org/viewvc/blink?view=revision&revision=182069

BUG=394133
TBR=wangxianzhu@chromium.org

Review URL: https://codereview.chromium.org/578643002

git-svn-id: svn://svn.chromium.org/blink/trunk@182083 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove invalidations in RenderLayer::removeOnlyThisLayer

When we remove a RenderLayer, it's because of a style change
that should mark the renderer for invalidations anyway. If we
don't, we should fix RenderObject and not rely on RenderLayer.

Review URL: https://codereview.chromium.org/572813003

git-svn-id: svn://svn.chromium.org/blink/trunk@182085 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fully repaint select popups when scrolled.

This used to be done by WebPopupMenuImpl::scroll but broke with
http://crrev.com/498593002.  Because the scrollbar and the area near it are
repainted, narrow popups scroll correctly, but wide popups (with very long
strings) do not.

Review URL: https://codereview.chromium.org/578453002

git-svn-id: svn://svn.chromium.org/blink/trunk@182087 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Temporarily let DocumentMakerController use invalidatePaintForWholeRenderer (patchset #3 id:60001 of https://codereview.chromium.org/499493003/)

Reason for revert:
We have fixed the RenderText invalidation issue (crbug.com/394133).

Original issue's description:
> Temporarily let DocumentMakerController use invalidatePaintForWholeRenderer
> 
> setShouldDoFullPaintInvalidation doesn't work for RenderText yet.
> 
> BUG=405501
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180877

TBR=jchaffraix@chromium.org,esprehn@chromium.org,leviw@chromium.org
BUG=405501

Review URL: https://codereview.chromium.org/574773002

git-svn-id: svn://svn.chromium.org/blink/trunk@182089 bbb929c8-8fbe-4397-9dbb-9b2b20218538