Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(601)

Issue 157383004: Use LocalStyleChange when changing TD presentation attributes. (Closed)

Created:
6 years, 10 months ago by rune
Modified:
6 years, 10 months ago
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167568

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixed review issues and added test. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -26 lines) Patch
A LayoutTests/fast/table/border-recalc.html View 1 1 chunk +26 lines, -0 lines 0 comments Download
A LayoutTests/fast/table/border-recalc-expected.txt View 1 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/html/HTMLTableElement.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/HTMLTableElement.cpp View 1 3 chunks +10 lines, -26 lines 1 comment Download

Messages

Total messages: 8 (0 generated)
rune
6 years, 10 months ago (2014-02-07 21:38:52 UTC) #1
mstensho (USE GERRIT)
https://codereview.chromium.org/157383004/diff/1/Source/core/html/HTMLTableElement.cpp File Source/core/html/HTMLTableElement.cpp (right): https://codereview.chromium.org/157383004/diff/1/Source/core/html/HTMLTableElement.cpp#newcode258 Source/core/html/HTMLTableElement.cpp:258: || e->hasTagName(trTag) || e->hasTagName(thTag); This looks wrong (both before ...
6 years, 10 months ago (2014-02-10 10:02:06 UTC) #2
rune
https://codereview.chromium.org/157383004/diff/1/Source/core/html/HTMLTableElement.cpp File Source/core/html/HTMLTableElement.cpp (right): https://codereview.chromium.org/157383004/diff/1/Source/core/html/HTMLTableElement.cpp#newcode258 Source/core/html/HTMLTableElement.cpp:258: || e->hasTagName(trTag) || e->hasTagName(thTag); On 2014/02/10 10:02:06, Morten Stenshorne ...
6 years, 10 months ago (2014-02-18 10:53:06 UTC) #3
rune
6 years, 10 months ago (2014-02-18 13:31:35 UTC) #4
mstensho (USE GERRIT)
lgtm (not an owner). Feel free to ignore the issue I raised. This patch generally ...
6 years, 10 months ago (2014-02-18 13:48:46 UTC) #5
ojan
lgtm
6 years, 10 months ago (2014-02-21 03:28:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/157383004/60001
6 years, 10 months ago (2014-02-21 03:29:03 UTC) #7
commit-bot: I haz the power
6 years, 10 months ago (2014-02-21 05:32:12 UTC) #8
Message was sent while issue was closed.
Change committed as 167568

Powered by Google App Engine
This is Rietveld 408576698