[::marker] Factor list item marker contents into a struct#37170
Conversation
|
EWS run on previous version of this PR (hash f49d75c) Details |
f49d75c to
b6af753
Compare
|
EWS run on previous version of this PR (hash b6af753) Details |
b6af753 to
d7c863e
Compare
|
EWS run on previous version of this PR (hash d7c863e) Details
|
d7c863e to
f7f0ce4
Compare
|
EWS run on previous version of this PR (hash f7f0ce4) Details |
f7f0ce4 to
9c2eceb
Compare
|
EWS run on previous version of this PR (hash 9c2eceb) Details
|
darinadler
left a comment
There was a problem hiding this comment.
Storing the text as two separate strings causes a problem.
9c2eceb to
eff1790
Compare
|
EWS run on previous version of this PR (hash eff1790) Details |
eff1790 to
e349a63
Compare
|
EWS run on previous version of this PR (hash e349a63) Details
|
e349a63 to
6e39997
Compare
|
EWS run on previous version of this PR (hash 6e39997) Details
|
6e39997 to
53eae61
Compare
|
EWS run on previous version of this PR (hash 53eae61) Details
|
53eae61 to
a8c64f7
Compare
|
EWS run on previous version of this PR (hash a8c64f7) Details |
a8c64f7 to
811de65
Compare
|
EWS run on previous version of this PR (hash 811de65) Details
|
811de65 to
0c63f98
Compare
|
EWS run on current version of this PR (hash 0c63f98) Details |
https://bugs.webkit.org/show_bug.cgi?id=283730 rdar://140595246 Reviewed by Dan Glastonbury. Factor them into a struct to make it easier to move out painting/content code from RenderListMarker. Also store the suffix + textWithoutSuffix, instead of generating substrings in various places. * Source/WebCore/accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::stringValue const): * Source/WebCore/rendering/RenderListItem.cpp: (WebCore::RenderListItem::markerTextWithoutSuffix const): (WebCore::RenderListItem::markerTextWithSuffix const): * Source/WebCore/rendering/RenderListItem.h: * Source/WebCore/rendering/RenderListMarker.cpp: (WebCore::textRunForContent): (WebCore::RenderListMarker::paint): (WebCore::RenderListMarker::updateContent): (WebCore::RenderListMarker::computePreferredLogicalWidths): (WebCore::RenderListMarker::updateMargins): (WebCore::RenderListMarker::relativeMarkerRect): (WebCore::RenderListMarker::TextRunWithUnderlyingString::operator const TextRun& const): Deleted. (WebCore::RenderListMarker::textRun const): Deleted. (WebCore::RenderListMarker::textWithoutSuffix const): Deleted. * Source/WebCore/rendering/RenderListMarker.h: (WebCore::ListMarkerTextContent::isEmpty const): (WebCore::ListMarkerTextContent::textWithSuffix const): * Source/WebCore/rendering/RenderTreeAsText.cpp: (WebCore::RenderTreeAsText::writeRenderObject): (WebCore::markerTextForListItem): Canonical link: https://commits.webkit.org/287107@main
0c63f98 to
4881552
Compare
|
Committed 287107@main (4881552): https://commits.webkit.org/287107@main Reviewed commits have been landed. Closing PR #37170 and removing active labels. |
4881552
0c63f98
🧪 ios-wk2-wpt🧪 mac-AS-debug-wk2🛠 🧪 merge