RESOLVED FIXED 99521
Remove an unneeded repaint call in RenderTableCell::setCellLogicalWidth
https://bugs.webkit.org/show_bug.cgi?id=99521
Summary Remove an unneeded repaint call in RenderTableCell::setCellLogicalWidth
Julien Chaffraix
Reported 2012-10-16 16:15:06 PDT
This repaint call is superseeded by other repaints in the table layout code which always take care of properly repainting. Patch forthcoming.
Attachments
Proposed removal, includes testing as I didn't find any coverage for such repainting. (5.21 KB, patch)
2012-10-16 16:27 PDT, Julien Chaffraix
darin: review+
Julien Chaffraix
Comment 1 2012-10-16 16:27:08 PDT
Created attachment 169051 [details] Proposed removal, includes testing as I didn't find any coverage for such repainting.
Eric Seidel (no email)
Comment 2 2012-10-16 16:34:33 PDT
Our repaint coverage is very poor.
Simon Fraser (smfr)
Comment 3 2012-10-16 16:37:59 PDT
I want to make it possible to test repaints without pixel testing.
Julien Chaffraix
Comment 4 2012-10-17 10:12:15 PDT
(In reply to comment #2) > Our repaint coverage is very poor. Yeah, that's why I took some time to investigate what is covering for this repaint and added some testing to prove that cells that didn't change logical width (the middle one in the example) still gets properly repainted. (In reply to comment #3) > I want to make it possible to test repaints without pixel testing. That would be sweet.
Darin Adler
Comment 5 2013-01-16 14:21:33 PST
Comment on attachment 169051 [details] Proposed removal, includes testing as I didn't find any coverage for such repainting. View in context: https://bugs.webkit.org/attachment.cgi?id=169051&action=review > Source/WebCore/ChangeLog:16 > + All in all, the existing repainting logic already handles this case properly. The only thing I don’t like about this is that it requires global knowledge to know that this isn’t needed. It’s something you can’t tell by just reading the function itself. It’s nice to have the test coverage to mitigate this, but it would be better if there was some good convention so what each function handles and does not need to handle could be clearer. A concrete way to put that is that I think a comment might be needed to explain why this function does *not* have to deal with repainting. Depending on what our conventions are for this sort of thing in our renderer code.
Ahmad Saleem
Comment 6 2022-09-10 07:17:25 PDT
This is still present: https://github.com/WebKit/WebKit/blob/da7f1abe0ba98769541491ccf549e553b9cd1669/Source/WebCore/rendering/RenderTableCell.cpp#L273 Is this still needed? If yes, I think this r+ patch can be applied even today or if not, I am happy to do updated PR. Appreciate if someone can confirm. Thanks!
Brent Fulgham
Comment 7 2022-09-10 10:28:05 PDT
(In reply to Ahmad Saleem from comment #6) > This is still present: > > https://github.com/WebKit/WebKit/blob/ > da7f1abe0ba98769541491ccf549e553b9cd1669/Source/WebCore/rendering/ > RenderTableCell.cpp#L273 > > Is this still needed? If yes, I think this r+ patch can be applied even > today or if not, I am happy to do updated PR. > > Appreciate if someone can confirm. Thanks! Seems like a good change. Why don’t you put up a PR, and we can let modern EWS chew on it.
Radar WebKit Bug Importer
Comment 8 2022-09-10 10:28:16 PDT
Ahmad Saleem
Comment 9 2022-09-10 13:41:09 PDT
EWS
Comment 10 2022-09-13 07:11:44 PDT
Committed 254440@main (9f03d20e70c3): <https://commits.webkit.org/254440@main> Reviewed commits have been landed. Closing PR #4226 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.