-
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.
https://bugs.webkit.org/show_bug.cgi?id=273729 rdar://problem/127532669 Reviewed by Alan Baradlay. Refactor BreakLines.h to * Distinguish public vs private functions * Name things in understandable ways that are relevant to line-breaking concepts rather than low-level behaviors in helper functions (like IgnoreNBSP...) * Use templates rather than repetitive function names with slight variations * Source/WebCore/layout/formattingContexts/inline/text/TextUtil.cpp: (WebCore::Layout::TextUtil::findNextBreakablePosition): update callers * Source/WebCore/rendering/BreakLines.h: (WebCore::isBreakableSpace): renaming (WebCore::needsLineBreakIterator): renaming (WebCore::nextBreakablePosition): templating (WebCore::nextBreakableSpace): renaming (WebCore::nextCharacter): renaming (WebCore::isBreakable): update callers (WebCore::nextBreakablePositionKeepingAllWords): Deleted. (WebCore::nextBreakablePositionKeepingAllWordsIgnoringNBSP): Deleted. (WebCore::nextBreakablePositionIgnoringNBSP): Deleted. (WebCore::nextBreakablePositionWithoutShortcut): Deleted. (WebCore::nextBreakablePositionIgnoringNBSPWithoutShortcut): Deleted. (WebCore::nextBreakablePositionBreakCharacter): Deleted. Canonical link: https://commits.webkit.org/278393@main
- Loading branch information
Showing
2 changed files
with
71 additions
and
87 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
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