Maintain child dependent ComputedStyle flags if propagation stops.

There are two non-inherited flags in ComputedStyle which may be set as a
result of calculating the computed style of one of its descendants. Those
are the empty state flag, and the explicit inheritance flag. r190990
optimized propagation of inherited properties, but the mentioned flags
were not properly set if the propagation stopped at an element which had
children that would set these flags.

If a child-dependent flag is set in the old style, and there is no need
to inherit properties, and no children which needs a style recalc, copy
the flags from the old to the new ComputedStyle.

If there is no need to inherit properties, but some child needs a style
recalc, return Inherit to re-compute the child-dependent flags from its
children.

R=timloh@chromium.org,esprehn@chromium.org
BUG=487216

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

git-svn-id: svn://svn.chromium.org/blink/trunk@195462 bbb929c8-8fbe-4397-9dbb-9b2b20218538
5 files changed