Changeset 267418 in webkit
- Timestamp:
- Sep 22, 2020, 10:33:21 AM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
layout/FormattingState.h (modified) (1 diff)
-
layout/LayoutState.h (modified) (1 diff)
-
layout/tableformatting/TableFormattingContextGeometry.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r267414 r267418 1 2020-09-22 Zalan Bujtas <zalan@apple.com> 2 3 [LFC] FormattingState should never be copied. 4 https://bugs.webkit.org/show_bug.cgi?id=216833 5 6 Reviewed by Antti Koivisto. 7 8 Even when running a throw-away layout, we should not copy the state object but instead generate a new one for the subtree. 9 These objects should never be copied in general. 10 11 * layout/FormattingState.h: 12 * layout/LayoutState.h: 13 * layout/tableformatting/TableFormattingContextGeometry.cpp: 14 (WebCore::Layout::TableFormattingContext::Geometry::usedBaselineForCell): 15 1 16 2020-09-22 Youenn Fablet <youenn@apple.com> 2 17 -
trunk/Source/WebCore/layout/FormattingState.h
r267076 r267418 41 41 42 42 class FormattingState { 43 WTF_MAKE_NONCOPYABLE(FormattingState); 43 44 WTF_MAKE_ISO_ALLOCATED(FormattingState); 44 45 public: -
trunk/Source/WebCore/layout/LayoutState.h
r267076 r267418 47 47 48 48 class LayoutState : public CanMakeWeakPtr<LayoutState> { 49 WTF_MAKE_NONCOPYABLE(LayoutState); 49 50 WTF_MAKE_ISO_ALLOCATED(LayoutState); 50 51 public: -
trunk/Source/WebCore/layout/tableformatting/TableFormattingContextGeometry.cpp
r267308 r267418 150 150 for (auto& cellDescendant : descendantsOfType<ContainerBox>(cellBox)) { 151 151 if (cellDescendant.establishesInlineFormattingContext()) { 152 auto inlineFormattingStateForCell = layoutState().establishedInlineFormattingState(cellDescendant);152 auto& inlineFormattingStateForCell = layoutState().establishedInlineFormattingState(cellDescendant); 153 153 if (!inlineFormattingStateForCell.lines().isEmpty()) 154 154 return inlineFormattingStateForCell.lines()[0].baseline();
Note:
See TracChangeset
for help on using the changeset viewer.