Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Factor selection state computation out of LegacyInlineTextBox
https://bugs.webkit.org/show_bug.cgi?id=226718 Reviewed by Alan Bujtas. Move the code to SelectionRangeData. * layout/integration/LayoutIntegrationRunIteratorModernPath.h: (WebCore::LayoutIntegration::RunIteratorModernPath::selectableRange const): * rendering/HighlightData.cpp: (WebCore::HighlightData::highlightStateForRenderer): (WebCore::HighlightData::highlightStateForTextBox): (WebCore::HighlightData::rangeForTextBox): * rendering/HighlightData.h: (WebCore::HighlightData::HighlightData): * rendering/LegacyInlineTextBox.cpp: (WebCore::LegacyInlineTextBox::selectionState): (WebCore::LegacyInlineTextBox::selectableRange const): (WebCore::LegacyInlineTextBox::selectionStartEnd const): (WebCore::LegacyInlineTextBox::highlightStartEnd const): (WebCore::LegacyInlineTextBox::verifySelectionState const): Deleted. (WebCore::LegacyInlineTextBox::clampedStartEndForState const): Deleted. * rendering/LegacyInlineTextBox.h: * rendering/SelectionRangeData.cpp: (WebCore::SelectionRangeData::SelectionRangeData): * rendering/TextBoxSelectableRange.h: Canonical link: https://commits.webkit.org/238559@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@278561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
99 additions
and 56 deletions.
- +29 −0 Source/WebCore/ChangeLog
- +2 −1 Source/WebCore/layout/integration/LayoutIntegrationRunIteratorModernPath.h
- +50 −0 Source/WebCore/rendering/HighlightData.cpp
- +10 −0 Source/WebCore/rendering/HighlightData.h
- +5 −51 Source/WebCore/rendering/LegacyInlineTextBox.cpp
- +0 −3 Source/WebCore/rendering/LegacyInlineTextBox.h
- +2 −1 Source/WebCore/rendering/SelectionRangeData.cpp
- +1 −0 Source/WebCore/rendering/TextBoxSelectableRange.h
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
@@ -209,7 +209,8 @@ class RunIteratorModernPath { | ||
return { | ||
start(), | ||
length(), | ||
run().style().hyphenString().length(), | ||
run().isLineBreak() | ||
}; | ||
} | ||
|
||
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
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
@@ -134,9 +134,6 @@ class LegacyInlineTextBox : public LegacyInlineBox { | ||
void extractLine() final; | ||
void attachLine() final; | ||
|
||
public: | ||
RenderObject::HighlightState selectionState() final; | ||
|
||
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