RESOLVED FIXED230431
RenderListMarker::imageChanged RenderBox image handling
https://bugs.webkit.org/show_bug.cgi?id=230431
Summary RenderListMarker::imageChanged RenderBox image handling
Gabriel Nava Marino
Reported 2021-09-17 15:38:53 PDT
RenderListMarker is a RenderBox. RenderBox is a RenderElement which can have image updates from style changes (i.e. RenderStyle has maskBoxImage). Thus the following comment is outdated and no longer applies: // A list marker can't have a background or border image, so no need to call the base class method. We should call the base class imageChanged method, which includes additional logic for handling RenderBox image updates, and handle image changes appropriately in RenderListMarker.
Attachments
Patch (2.23 KB, patch)
2021-09-17 16:02 PDT, Gabriel Nava Marino
no flags
Patch (3.51 KB, patch)
2021-09-20 19:15 PDT, Gabriel Nava Marino
no flags
Patch (5.60 KB, patch)
2021-09-21 12:00 PDT, Gabriel Nava Marino
ews-feeder: commit-queue-
Patch (5.69 KB, patch)
2021-09-21 13:36 PDT, Gabriel Nava Marino
no flags
Patch (3.93 KB, patch)
2021-09-21 15:49 PDT, Gabriel Nava Marino
no flags
Gabriel Nava Marino
Comment 1 2021-09-17 16:02:23 PDT
Darin Adler
Comment 2 2021-09-17 17:10:56 PDT
Comment on attachment 438528 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=438528&action=review > Source/WebCore/ChangeLog:9 > + No new tests (OOPS!). Why no tests? Seems like we can and should make a test for whatever problem this caused. > Source/WebCore/rendering/RenderListMarker.cpp:1803 > + if (m_image) { > + if (o == m_image->data()) { Let’s not nest this so much: if (m_image && o == m_image->data()) { ...
Gabriel Nava Marino
Comment 3 2021-09-20 19:15:25 PDT
Gabriel Nava Marino
Comment 4 2021-09-20 19:16:25 PDT
(In reply to Darin Adler from comment #2) > Comment on attachment 438528 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=438528&action=review > > > Source/WebCore/ChangeLog:9 > > + No new tests (OOPS!). > > Why no tests? Seems like we can and should make a test for whatever problem > this caused. I have added a new test to help catch this issue. > > > Source/WebCore/rendering/RenderListMarker.cpp:1803 > > + if (m_image) { > > + if (o == m_image->data()) { > > Let’s not nest this so much: > > if (m_image && o == m_image->data()) { > ... I have updated the patch to remove the unnecessary level of nesting. Thank you for your feedback Darin!
Gabriel Nava Marino
Comment 5 2021-09-21 12:00:49 PDT
Gabriel Nava Marino
Comment 6 2021-09-21 13:36:35 PDT
Gabriel Nava Marino
Comment 7 2021-09-21 15:49:21 PDT
EWS
Comment 8 2021-09-22 10:19:42 PDT
Committed r282880 (242009@main): <https://commits.webkit.org/242009@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 438873 [details].
Radar WebKit Bug Importer
Comment 9 2021-09-22 10:20:22 PDT
Note You need to log in before you can comment on or make changes to this bug.