-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize control flow in nextBreakablePosition()
https://bugs.webkit.org/show_bug.cgi?id=273793 rdar://127763823 Reviewed by Alan Baradlay. Reduces conditional checks in nextBreakablePosition by rearranging control flow. (Also renames some key variables for better understandability.) * Source/WebCore/rendering/BreakLines.h: (WebCore::lineBreakTableUnsafeLookup): Create a table lookup inline function. (WebCore::nextBreakablePosition): Reorganize control flow. (WebCore::shouldBreakAfter): Deleted by incorporating into nextBreakablePosition. (WebCore::needsLineBreakIterator): Deleted by dissolving into nextBreakablePosition. Canonical link: https://commits.webkit.org/278548@main
- Loading branch information
Showing
1 changed file
with
50 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters