Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r220795 - Move first-letter renderer mutation code out of Rende…
…rBlock and into RenderTreeUpdater https://bugs.webkit.org/show_bug.cgi?id=175627 Reviewed by Andreas Kling. Render tree should not mutate itself. We already fixed this for first-letter, supporting code can now move to RenderTreeUpdater too. * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * rendering/RenderBlock.cpp: (WebCore::styleForFirstLetter): Deleted. (WebCore::isPunctuationForFirstLetter): Deleted. (WebCore::shouldSkipForFirstLetter): Deleted. (WebCore::RenderBlock::updateFirstLetterStyle): Deleted. (WebCore::RenderBlock::createFirstLetterRenderer): Deleted. (WebCore::RenderBlock::updateFirstLetter): Deleted. * rendering/RenderBlock.h: * rendering/RenderRubyRun.cpp: (WebCore::RenderRubyRun::updateFirstLetter): Deleted. * rendering/RenderRubyRun.h: * rendering/RenderTable.cpp: (WebCore::RenderTable::updateFirstLetter): Deleted. * rendering/RenderTable.h: Virtual overrides just disabled first letter for some RenderBlock subclasses. This is now achieved via supportsFirstLetter test in the first letter updater. * rendering/TextAutoSizing.cpp: (WebCore::TextAutoSizingValue::adjustTextNodeSizes): * rendering/svg/RenderSVGText.cpp: (WebCore::RenderSVGText::updateFirstLetter): Deleted. * rendering/svg/RenderSVGText.h: * style/RenderTreeUpdater.cpp: (WebCore::RenderTreeUpdater::popParent): * style/RenderTreeUpdater.h: * style/RenderTreeUpdaterFirstLetter.cpp: Added. (WebCore::styleForFirstLetter): (WebCore::isPunctuationForFirstLetter): (WebCore::shouldSkipForFirstLetter): (WebCore::updateFirstLetterStyle): (WebCore::createFirstLetterRenderer): (WebCore::supportsFirstLetter): (WebCore::RenderTreeUpdater::FirstLetter::update): * style/RenderTreeUpdaterFirstLetter.h: Added.
- Loading branch information
1 parent
f09890e
commit 98455aa
Showing
15 changed files
with
348 additions
and
225 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
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
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
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
Oops, something went wrong.