Use LocalStyleChange when changing TD presentation attributes.

Border and cellpadding attributes on TABLE affects computed styles of TD
elements, but LocalStyleChange on the TD elements should be sufficient to
have changes applied.

The setNeedsStyleRecalc call on the TABLE element is removed since that is
handled via HTMLTableElement::isPresentationAttribute called from
Element::attributeChanged.

Unwind the recursion looking for TD elements using ElementTraversal.

BUG=341987

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167568 bbb929c8-8fbe-4397-9dbb-9b2b20218538
4 files changed
tree: 77014f26ce1caf144254bd9f0a631fcca750eee2
  1. third_party/