RESOLVED FIXED251758
Allow Length to be used with Markable<>
https://bugs.webkit.org/show_bug.cgi?id=251758
Summary Allow Length to be used with Markable<>
Simon Fraser (smfr)
Reported 2023-02-05 11:01:00 PST
Allow Length to be used with Markable<> to optimize padding.
Attachments
Patch (6.09 KB, patch)
2023-02-05 11:03 PST, Simon Fraser (smfr)
ews-feeder: commit-queue-
Patch (6.55 KB, patch)
2023-02-06 14:59 PST, Simon Fraser (smfr)
no flags
Radar WebKit Bug Importer
Comment 1 2023-02-05 11:01:28 PST
Simon Fraser (smfr)
Comment 2 2023-02-05 11:03:08 PST
Darin Adler
Comment 3 2023-02-05 22:19:50 PST
Comment on attachment 464852 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=464852&action=review I’ll review again (or someone else can after tests are passing. > Source/WebCore/platform/Length.h:329 > + if (isEmptyValue() && other.isEmptyValue()) > + return true; I think you’d want to go further and make sure that if either is an empty value you don’t compare with the other. Like: if (isEmptyValue() || other.isEmptyValue()) return isEmptyValue() && other.isEmptyValue(); And maybe do this check early before any other checks. > Source/WebCore/platform/Length.h:330 > + I don’t think adding the blank lines makes this easier to read.
Simon Fraser (smfr)
Comment 4 2023-02-06 14:59:37 PST
Darin Adler
Comment 5 2023-02-06 16:04:31 PST
Did you see my comment about empty value comparison? I noticed the new patch doesn’t yet take my advice, but I also don’t see a comment from you saying why not.
Simon Fraser (smfr)
Comment 6 2023-02-06 17:51:30 PST
(In reply to Darin Adler from comment #5) > Did you see my comment about empty value comparison? I noticed the new patch > doesn’t yet take my advice, but I also don’t see a comment from you saying > why not. I did not! I will revise the patch.
Ahmad Saleem
Comment 7 2024-09-06 14:28:45 PDT
EWS
Comment 8 2024-09-07 01:51:18 PDT
Committed 283293@main (73d6aa835129): <https://commits.webkit.org/283293@main> Reviewed commits have been landed. Closing PR #33261 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.