Bug 251042 - Editing - Code refactoring to avoid several calls to hasEditableStyle() in loop
Summary: Editing - Code refactoring to avoid several calls to hasEditableStyle() in loop
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-01-23 14:27 PST by Ahmad Saleem
Modified: 2023-01-24 01:45 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2023-01-23 14:27:13 PST
Hi Team,

I came across this possible merge, which is to avoid looping and reduce calls to hasEditableStyle() in VisibleUnits.cpp:

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/editing/VisibleUnits.cpp#1121 & https://searchfox.org/wubkat/source/Source/WebCore/editing/VisibleUnits.cpp#1178

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/85355b065acfc6ffbf960afa2d8e175104c556fa

It is just a refactoring to reduce calls, so I think it would be fine to land without any dedicated testcase.

Thanks!
Comment 1 EWS 2023-01-24 01:44:40 PST
Committed 259267@main (e2e91f349dc7): <https://commits.webkit.org/259267@main>

Reviewed commits have been landed. Closing PR #8993 and removing active labels.
Comment 2 Radar WebKit Bug Importer 2023-01-24 01:45:30 PST
<rdar://problem/104592394>