Changeset 278407 in webkit
- Timestamp:
- Jun 3, 2021, 8:23:25 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 deleted
- 9 edited
-
ChangeLog (modified) (1 diff)
-
Sources.txt (modified) (1 diff)
-
WebCore.xcodeproj/project.pbxproj (modified) (3 diffs)
-
editing/VisibleUnits.cpp (modified) (2 diffs)
-
rendering/LegacyInlineBox.cpp (modified) (1 diff)
-
rendering/LegacyInlineFlowBox.h (modified) (2 diffs)
-
rendering/LegacyLineLayout.cpp (modified) (2 diffs)
-
rendering/LegacyRootInlineBox.h (modified) (2 diffs)
-
rendering/RenderLineBoxList.cpp (modified) (1 diff)
-
rendering/TrailingFloatsRootInlineBox.cpp (deleted)
-
rendering/TrailingFloatsRootInlineBox.h (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r278406 r278407 1 2021-06-03 Antti Koivisto <antti@apple.com> 2 3 Remove TrailingFloatsRootInlineBox 4 https://bugs.webkit.org/show_bug.cgi?id=226579 5 6 Reviewed by Sam Weinig. 7 8 Replace it with a bit in LegacyRootInlineBox. 9 10 * Sources.txt: 11 * WebCore.xcodeproj/project.pbxproj: 12 * editing/VisibleUnits.cpp: 13 (WebCore::previousLinePosition): 14 (WebCore::nextLinePosition): 15 * rendering/LegacyInlineBox.cpp: 16 (WebCore::LegacyInlineBox::logicalHeight const): 17 * rendering/LegacyInlineFlowBox.h: 18 (WebCore::LegacyInlineFlowBox::LegacyInlineFlowBox): 19 * rendering/LegacyLineLayout.cpp: 20 (WebCore::LegacyLineLayout::linkToEndLineIfNeeded): 21 * rendering/LegacyRootInlineBox.h: 22 (WebCore::LegacyRootInlineBox::isForTrailingFloats const): 23 (WebCore::LegacyRootInlineBox::setIsForTrailingFloats): 24 (WebCore::LegacyRootInlineBox::isTrailingFloatsRootInlineBox const): Deleted. 25 * rendering/RenderLineBoxList.cpp: 26 (WebCore::RenderLineBoxList::dirtyLinesFromChangedChild): 27 * rendering/TrailingFloatsRootInlineBox.cpp: Removed. 28 * rendering/TrailingFloatsRootInlineBox.h: Removed. 29 1 30 2021-06-03 Miguel Gomez <magomez@igalia.com> 2 31 -
trunk/Source/WebCore/Sources.txt
r278405 r278407 2359 2359 rendering/TextPaintStyle.cpp 2360 2360 rendering/TextPainter.cpp 2361 rendering/TrailingFloatsRootInlineBox.cpp2362 2361 rendering/line/LineBreaker.cpp 2363 2362 rendering/line/LineInfo.cpp -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r278405 r278407 6395 6395 0FFF1B82251BC6630098795A /* DisplayTree.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = DisplayTree.cpp; sourceTree = "<group>"; }; 6396 6396 10FB084A14E15C7E00A3DB98 /* PublicURLManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PublicURLManager.h; sourceTree = "<group>"; }; 6397 1100FC6E1FDB3C4D00DD961B /* TrailingFloatsRootInlineBox.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = TrailingFloatsRootInlineBox.cpp; sourceTree = "<group>"; };6398 6397 11100FC72092764C0081AA6C /* LayoutIterator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LayoutIterator.h; sourceTree = "<group>"; }; 6399 6398 11100FC920927CBC0081AA6C /* LayoutChildIterator.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LayoutChildIterator.h; sourceTree = "<group>"; }; … … 7714 7713 37F818FB0D657606005E1F05 /* WebCoreURLResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebCoreURLResponse.h; sourceTree = "<group>"; }; 7715 7714 37F818FC0D657606005E1F05 /* WebCoreURLResponse.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebCoreURLResponse.mm; sourceTree = "<group>"; }; 7716 37FC96DA1104ED71003E1FAD /* TrailingFloatsRootInlineBox.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TrailingFloatsRootInlineBox.h; sourceTree = "<group>"; };7717 7715 37FD4297118368460093C029 /* TreeDepthLimit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TreeDepthLimit.h; sourceTree = "<group>"; }; 7718 7716 387AE9581E8E92EF0000DE96 /* JSWebGPUSize.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSWebGPUSize.cpp; sourceTree = "<group>"; }; … … 30422 30420 E4C91A0F1802343900A17F6D /* TextPaintStyle.cpp */, 30423 30421 E4C91A0D1802343100A17F6D /* TextPaintStyle.h */, 30424 1100FC6E1FDB3C4D00DD961B /* TrailingFloatsRootInlineBox.cpp */,30425 37FC96DA1104ED71003E1FAD /* TrailingFloatsRootInlineBox.h */,30426 30422 BCA257141293C010007A263D /* VerticalPositionCache.h */, 30427 30423 ); -
trunk/Source/WebCore/editing/VisibleUnits.cpp
r278253 r278407 964 964 line = run.line().previous(); 965 965 // We want to skip zero height boxes. 966 // This could happen in case it is a TrailingFloatsRootInlineBox.966 // This could happen in case it is a LegacyRootInlineBox with trailing floats. 967 967 if (!line || !line->logicalHeight() || !line.firstRun()) 968 968 line = { }; … … 1014 1014 line = run.line().next(); 1015 1015 // We want to skip zero height boxes. 1016 // This could happen in case it is a TrailingFloatsRootInlineBox.1016 // This could happen in case it is a LegacyRootInlineBox with trailing floats. 1017 1017 if (!line || !line->logicalHeight() || !line.firstRun()) 1018 1018 line = { }; -
trunk/Source/WebCore/rendering/LegacyInlineBox.cpp
r278405 r278407 132 132 return virtualLogicalHeight(); 133 133 134 if (is<LegacyRootInlineBox>(*this) && downcast<LegacyRootInlineBox>(*this).isForTrailingFloats()) 135 return 0; 136 134 137 const RenderStyle& lineStyle = this->lineStyle(); 135 138 if (renderer().isTextOrLineBreak()) -
trunk/Source/WebCore/rendering/LegacyInlineFlowBox.h
r278405 r278407 51 51 , m_hasAnnotationsAfter(false) 52 52 , m_isFirstAfterPageBreak(false) 53 , m_isForTrailingFloats(false) 53 54 #if !ASSERT_WITH_SECURITY_IMPLICATION_DISABLED 54 55 , m_hasBadChildList(false) … … 333 334 334 335 unsigned m_isFirstAfterPageBreak : 1; 336 unsigned m_isForTrailingFloats : 1; 335 337 336 338 // End of RootInlineBox-specific members. -
trunk/Source/WebCore/rendering/LegacyLineLayout.cpp
r278405 r278407 48 48 #include "SVGRootInlineBox.h" 49 49 #include "Settings.h" 50 #include "TrailingFloatsRootInlineBox.h"51 50 #include "VerticalPositionCache.h" 52 51 #include <wtf/StdLibExtras.h> … … 1661 1660 LayoutUnit bottomVisualOverflow = lastRootBox()->logicalBottomVisualOverflow(); 1662 1661 LayoutUnit bottomLayoutOverflow = lastRootBox()->logicalBottomLayoutOverflow(); 1663 auto newLineBox = makeUnique<TrailingFloatsRootInlineBox>(m_flow); 1662 auto newLineBox = makeUnique<LegacyRootInlineBox>(m_flow); 1663 newLineBox->setIsForTrailingFloats(); 1664 1664 auto trailingFloatsLineBox = newLineBox.get(); 1665 1665 m_lineBoxes.appendLineBox(WTFMove(newLineBox)); -
trunk/Source/WebCore/rendering/LegacyRootInlineBox.h
r278405 r278407 98 98 void setLineBreakPos(unsigned p) { m_lineBreakPos = p; } 99 99 100 bool isForTrailingFloats() const { return m_isForTrailingFloats; } 101 void setIsForTrailingFloats() { m_isForTrailingFloats = true; } 102 100 103 using LegacyInlineBox::endsWithBreak; 101 104 using LegacyInlineBox::setEndsWithBreak; … … 183 186 } 184 187 185 virtual bool isTrailingFloatsRootInlineBox() const { return false; }186 187 188 #if ENABLE(TREE_DEBUGGING) 188 189 void outputLineBox(WTF::TextStream&, bool mark, int depth) const final; -
trunk/Source/WebCore/rendering/RenderLineBoxList.cpp
r278405 r278407 390 390 if (is<RenderInline>(child) && !downcast<RenderInline>(child).firstLineBoxIncludingCulling()) { 391 391 auto* lastRootBox = nextBox->blockFlow().lastRootBox(); 392 if (lastRootBox->is TrailingFloatsRootInlineBox() && !lastRootBox->isDirty())392 if (lastRootBox->isForTrailingFloats() && !lastRootBox->isDirty()) 393 393 lastRootBox->markDirty(); 394 394 }
Note:
See TracChangeset
for help on using the changeset viewer.