Revert of Remove clearing of pending invalidation sets. (patchset #2 id:20001 of https://codereview.chromium.org/1507653002/ )

Reason for revert:
Suspect root cause of crash in blink::StyleInvalidator::pushInvalidationSetsForElement

http://crbug.com/568502

Original issue's description:
> Remove clearing of pending invalidation sets.
>
> In preparation for making SubtreeStyleChange not affect the sibling
> forest.
>
> We can skip scheduling descendant invalidation sets for elements whose
> styleChangeType is SubtreeStyleChange. However, with sibling invalidation
> sets, we still need to schedule invalidations for invalidating the
> sibling forest when we change SubtreeStyleChange to be a strict subtree
> recalc.
>
> We may not clear pending invalidations on detach either, unless the node
> was actually removed from the dom tree, since there might be pending
> sibling invalidations.
>
> R=dstockwell@chromium.org,ericwilligers@chromium.org
> BUG=557440
>
> Committed: https://crrev.com/c0735df3d8f8efa24af168a6e8d5c02a7be0641c
> Cr-Commit-Position: refs/heads/master@{#364064}

TBR=dstockwell@chromium.org,ericwilligers@chromium.org,rune@opera.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=557440

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

Cr-Commit-Position: refs/heads/master@{#364416}
2 files changed