Changeset 238963 in webkit
- Timestamp:
- Dec 7, 2018 12:10:14 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 26 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r238961 r238963 1 2018-12-07 Antti Koivisto <antti@apple.com> 2 3 Rename LayoutState to RenderLayoutState 4 https://bugs.webkit.org/show_bug.cgi?id=192504 5 6 Reviewed by Zalan Bujtas. 7 8 The name is better used in LFC. 9 10 * Sources.txt: 11 * WebCore.xcodeproj/project.pbxproj: 12 * page/FrameViewLayoutContext.cpp: 13 (WebCore::FrameViewLayoutContext::layoutState const): 14 (WebCore::FrameViewLayoutContext::pushLayoutState): 15 (WebCore::FrameViewLayoutContext::pushLayoutStateForPaginationIfNeeded): 16 * page/FrameViewLayoutContext.h: 17 * rendering/LayoutState.cpp: Removed. 18 * rendering/LayoutState.h: Removed. 19 * rendering/RenderBlock.cpp: 20 * rendering/RenderBlock.h: 21 * rendering/RenderBlockFlow.cpp: 22 (WebCore::RenderBlockFlow::checkForPaginationLogicalHeightChange): 23 * rendering/RenderBlockLineLayout.cpp: 24 * rendering/RenderBox.cpp: 25 * rendering/RenderEmbeddedObject.cpp: 26 * rendering/RenderFragmentedFlow.cpp: 27 * rendering/RenderGrid.cpp: 28 * rendering/RenderImage.cpp: 29 * rendering/RenderInline.cpp: 30 * rendering/RenderLayoutState.cpp: Copied from Source/WebCore/rendering/LayoutState.cpp. 31 (WebCore::RenderLayoutState::RenderLayoutState): 32 (WebCore::RenderLayoutState::computeOffsets): 33 (WebCore::RenderLayoutState::computeClipRect): 34 (WebCore::RenderLayoutState::computePaginationInformation): 35 (WebCore::RenderLayoutState::pageLogicalOffset const): 36 (WebCore::RenderLayoutState::computeLineGridPaginationOrigin): 37 (WebCore::RenderLayoutState::propagateLineGridInfo): 38 (WebCore::RenderLayoutState::establishLineGrid): 39 (WebCore::RenderLayoutState::addLayoutDelta): 40 (WebCore::RenderLayoutState::layoutDeltaMatches const): 41 (WebCore::LayoutState::LayoutState): Deleted. 42 (WebCore::LayoutState::computeOffsets): Deleted. 43 (WebCore::LayoutState::computeClipRect): Deleted. 44 (WebCore::LayoutState::computePaginationInformation): Deleted. 45 (WebCore::LayoutState::pageLogicalOffset const): Deleted. 46 (WebCore::LayoutState::computeLineGridPaginationOrigin): Deleted. 47 (WebCore::LayoutState::propagateLineGridInfo): Deleted. 48 (WebCore::LayoutState::establishLineGrid): Deleted. 49 (WebCore::LayoutState::addLayoutDelta): Deleted. 50 (WebCore::LayoutState::layoutDeltaMatches const): Deleted. 51 * rendering/RenderLayoutState.h: Copied from Source/WebCore/rendering/LayoutState.h. 52 (WebCore::RenderLayoutState::RenderLayoutState): 53 (WebCore::LayoutState::LayoutState): Deleted. 54 (WebCore::LayoutState::isPaginated const): Deleted. 55 (WebCore::LayoutState::pageLogicalHeight const): Deleted. 56 (WebCore::LayoutState::pageLogicalHeightChanged const): Deleted. 57 (WebCore::LayoutState::lineGrid const): Deleted. 58 (WebCore::LayoutState::lineGridOffset const): Deleted. 59 (WebCore::LayoutState::lineGridPaginationOrigin const): Deleted. 60 (WebCore::LayoutState::paintOffset const): Deleted. 61 (WebCore::LayoutState::layoutOffset const): Deleted. 62 (WebCore::LayoutState::pageOffset const): Deleted. 63 (WebCore::LayoutState::needsBlockDirectionLocationSetBeforeLayout const): Deleted. 64 (WebCore::LayoutState::renderer const): Deleted. 65 (WebCore::LayoutState::clipRect const): Deleted. 66 (WebCore::LayoutState::isClipped const): Deleted. 67 (WebCore::LayoutState::layoutDelta const): Deleted. 68 * rendering/RenderListBox.cpp: 69 * rendering/RenderMediaControlElements.cpp: 70 * rendering/RenderMultiColumnFlow.cpp: 71 * rendering/RenderTable.cpp: 72 * rendering/RenderTableRow.cpp: 73 * rendering/RenderTableSection.cpp: 74 * rendering/RenderVTTCue.cpp: 75 * rendering/RenderView.cpp: 76 * rendering/RenderView.h: 77 * rendering/RootInlineBox.cpp: 78 * rendering/svg/RenderSVGRoot.cpp: 79 (WebCore::RenderSVGRoot::layout): 80 1 81 2018-12-07 Antti Koivisto <antti@apple.com> 2 82 -
trunk/Source/WebCore/Sources.txt
r238872 r238963 1918 1918 rendering/LayoutDisallowedScope.cpp 1919 1919 rendering/LayoutRepainter.cpp 1920 rendering/LayoutState.cpp1921 1920 rendering/MarkedText.cpp 1922 1921 rendering/OrderIterator.cpp … … 1957 1956 rendering/RenderLayerFilters.cpp 1958 1957 rendering/RenderLayerModelObject.cpp 1958 rendering/RenderLayoutState.cpp 1959 1959 rendering/RenderLineBoxList.cpp 1960 1960 rendering/RenderLineBreak.cpp -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r238902 r238963 808 808 2D8B92FF203D13E1009C868F /* UnifiedSource530.cpp in Sources */ = {isa = PBXBuildFile; fileRef = DE5F85D31FA23859006DB63B /* UnifiedSource530.cpp */; }; 809 809 2D8FEBDD143E3EF70072502B /* CSSCrossfadeValue.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D8FEBDB143E3EF70072502B /* CSSCrossfadeValue.h */; }; 810 2D9066070BE141D400956998 /* LayoutState.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D9066050BE141D400956998 /*LayoutState.h */; settings = {ATTRIBUTES = (Private, ); }; };810 2D9066070BE141D400956998 /* RenderLayoutState.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D9066050BE141D400956998 /* RenderLayoutState.h */; settings = {ATTRIBUTES = (Private, ); }; }; 811 811 2D92A79A2134AD7900F493FD /* QuickLookSoftLink.mm in Sources */ = {isa = PBXBuildFile; fileRef = 443917FD1A91B2F8006E04F2 /* QuickLookSoftLink.mm */; }; 812 812 2D92A79D2134AF9500F493FD /* UserAgentIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = A3AF9D8320325691006CAD06 /* UserAgentIOS.mm */; }; … … 6653 6653 2D8FEBDA143E3EF70072502B /* CSSCrossfadeValue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CSSCrossfadeValue.cpp; sourceTree = "<group>"; }; 6654 6654 2D8FEBDB143E3EF70072502B /* CSSCrossfadeValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSSCrossfadeValue.h; sourceTree = "<group>"; }; 6655 2D9066040BE141D400956998 /* LayoutState.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path =LayoutState.cpp; sourceTree = "<group>"; };6656 2D9066050BE141D400956998 /* LayoutState.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path =LayoutState.h; sourceTree = "<group>"; };6655 2D9066040BE141D400956998 /* RenderLayoutState.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = RenderLayoutState.cpp; sourceTree = "<group>"; }; 6656 2D9066050BE141D400956998 /* RenderLayoutState.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = RenderLayoutState.h; sourceTree = "<group>"; }; 6657 6657 2D90660C0665D937006B6F1A /* DataTransferMac.mm */ = {isa = PBXFileReference; fileEncoding = 30; indentWidth = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DataTransferMac.mm; sourceTree = "<group>"; tabWidth = 8; usesTabs = 0; }; 6658 6658 2D93AEE119DF5641002A86C3 /* ServicesOverlayController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ServicesOverlayController.h; sourceTree = "<group>"; }; … … 26508 26508 A120ACA113F9984600FE4AC7 /* LayoutRepainter.cpp */, 26509 26509 A120ACA013F9983700FE4AC7 /* LayoutRepainter.h */, 26510 2D9066040BE141D400956998 /* LayoutState.cpp */,26511 2D9066050BE141D400956998 /* LayoutState.h */,26512 26510 9BA273F3172206BB0097CE47 /* LogicalSelectionOffsetCaches.h */, 26513 26511 CE1866421F72E5B400A0CAB6 /* MarkedText.cpp */, … … 26596 26594 3C244FE5A375AC633F88BE6F /* RenderLayerModelObject.cpp */, 26597 26595 3C244FE4A375AC633F88BE6F /* RenderLayerModelObject.h */, 26596 2D9066040BE141D400956998 /* RenderLayoutState.cpp */, 26597 2D9066050BE141D400956998 /* RenderLayoutState.h */, 26598 26598 BC33FB1A0F30EE85002CDD7C /* RenderLineBoxList.cpp */, 26599 26599 0BE030A10F3112FB003C1A46 /* RenderLineBoxList.h */, … … 27994 27994 CDE595971BF26E2100A1CBE8 /* CDMSessionMediaSourceAVFObjC.h in Headers */, 27995 27995 5FA904CA178E61F5004C8A2D /* CertificateInfo.h in Headers */, 27996 27997 27996 91B8F0B521953D65000C2B00 /* CertificateInfoBase.h in Headers */, 27997 FE36FD1516C7826500F887C1 /* ChangeVersionData.h in Headers */, 27998 27998 97BC69DD1505F076001B74AC /* ChangeVersionWrapper.h in Headers */, 27999 27999 FD315FFF12B0267600C1A359 /* ChannelMergerNode.h in Headers */, … … 29996 29996 11310CF320BA4A370065A8D0 /* LayoutReplaced.h in Headers */, 29997 29997 141DC054164834B900371E5A /* LayoutSize.h in Headers */, 29998 2D9066070BE141D400956998 /* LayoutState.h in Headers */,29998 2D9066070BE141D400956998 /* RenderLayoutState.h in Headers */, 29999 29999 11310CF220BA4A320065A8D0 /* LayoutTreeBuilder.h in Headers */, 30000 30000 141DC0481648348F00371E5A /* LayoutUnit.h in Headers */, -
trunk/Source/WebCore/page/FrameViewLayoutContext.cpp
r238791 r238963 33 33 #include "InspectorInstrumentation.h" 34 34 #include "LayoutDisallowedScope.h" 35 #include "LayoutState.h"36 35 #include "Logging.h" 37 36 #include "RenderElement.h" 37 #include "RenderLayoutState.h" 38 38 #include "RenderView.h" 39 39 #include "RuntimeEnabledFeatures.h" … … 585 585 #endif 586 586 587 LayoutState* FrameViewLayoutContext::layoutState() const587 RenderLayoutState* FrameViewLayoutContext::layoutState() const 588 588 { 589 589 if (m_layoutStateStack.isEmpty()) … … 597 597 ASSERT(!layoutState()); 598 598 599 m_layoutStateStack.append(std::make_unique< LayoutState>(root));599 m_layoutStateStack.append(std::make_unique<RenderLayoutState>(root)); 600 600 } 601 601 … … 604 604 if (layoutState()) 605 605 return false; 606 m_layoutStateStack.append(std::make_unique< LayoutState>(layoutRoot,LayoutState::IsPaginated::Yes));606 m_layoutStateStack.append(std::make_unique<RenderLayoutState>(layoutRoot, RenderLayoutState::IsPaginated::Yes)); 607 607 return true; 608 608 } … … 614 614 if (!layoutState || !needsFullRepaint() || layoutState->isPaginated() || renderer.enclosingFragmentedFlow() 615 615 || layoutState->lineGrid() || (renderer.style().lineGrid() != RenderStyle::initialLineGrid() && renderer.isRenderBlockFlow())) { 616 m_layoutStateStack.append(std::make_unique< LayoutState>(m_layoutStateStack, renderer, offset, pageHeight, pageHeightChanged));616 m_layoutStateStack.append(std::make_unique<RenderLayoutState>(m_layoutStateStack, renderer, offset, pageHeight, pageHeightChanged)); 617 617 return true; 618 618 } -
trunk/Source/WebCore/page/FrameViewLayoutContext.h
r238463 r238963 38 38 class LayoutScope; 39 39 class LayoutSize; 40 class LayoutState;41 40 class RenderBlockFlow; 42 41 class RenderBox; 43 42 class RenderObject; 44 43 class RenderElement; 44 class RenderLayoutState; 45 45 class RenderView; 46 46 … … 94 94 void flushAsynchronousTasks(); 95 95 96 LayoutState* layoutState() const;96 RenderLayoutState* layoutState() const; 97 97 // Returns true if layoutState should be used for its cached offset and clip. 98 98 bool isPaintOffsetCacheEnabled() const { return !m_paintOffsetCacheDisableCount && layoutState(); } … … 108 108 bool layoutDeltaMatches(const LayoutSize& delta); 109 109 #endif 110 using LayoutStateStack = Vector<std::unique_ptr< LayoutState>>;110 using LayoutStateStack = Vector<std::unique_ptr<RenderLayoutState>>; 111 111 112 112 private: -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r238463 r238963 56 56 #include "RenderIterator.h" 57 57 #include "RenderLayer.h" 58 #include "RenderLayoutState.h" 58 59 #include "RenderListMarker.h" 59 60 #include "RenderMenuList.h" -
trunk/Source/WebCore/rendering/RenderBlock.h
r238463 r238963 32 32 namespace WebCore { 33 33 34 class LayoutState;35 34 class LineLayoutState; 36 35 class LogicalSelectionOffsetCaches; -
trunk/Source/WebCore/rendering/RenderBlockFlow.cpp
r238504 r238963 36 36 #include "InlineTextBox.h" 37 37 #include "LayoutRepainter.h" 38 #include "LayoutState.h"39 38 #include "Logging.h" 40 39 #include "RenderCombineText.h" … … 43 42 #include "RenderIterator.h" 44 43 #include "RenderLayer.h" 44 #include "RenderLayoutState.h" 45 45 #include "RenderLineBreak.h" 46 46 #include "RenderListItem.h" … … 3843 3843 3844 3844 // FIXME: This is a hack to always make sure we have a page logical height, if said height 3845 // is known. The page logical height thing in LayoutState is meaningless for flow3845 // is known. The page logical height thing in RenderLayoutState is meaningless for flow 3846 3846 // thread-based pagination (page height isn't necessarily uniform throughout the flow 3847 3847 // thread), but as long as it is used universally as a means to determine whether page -
trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp
r238504 r238963 34 34 #include "InlineTextBox.h" 35 35 #include "InlineTextBoxStyle.h" 36 #include "LayoutState.h"37 36 #include "LineLayoutState.h" 38 37 #include "Logging.h" … … 40 39 #include "RenderFragmentContainer.h" 41 40 #include "RenderFragmentedFlow.h" 41 #include "RenderLayoutState.h" 42 42 #include "RenderLineBreak.h" 43 43 #include "RenderRubyBase.h" -
trunk/Source/WebCore/rendering/RenderBox.cpp
r238463 r238963 48 48 #include "HitTestResult.h" 49 49 #include "InlineElementBox.h" 50 #include "LayoutState.h"51 50 #include "Page.h" 52 51 #include "PaintInfo.h" … … 62 61 #include "RenderLayer.h" 63 62 #include "RenderLayerCompositor.h" 63 #include "RenderLayoutState.h" 64 64 #include "RenderMultiColumnFlow.h" 65 65 #include "RenderTableCell.h" -
trunk/Source/WebCore/rendering/RenderEmbeddedObject.cpp
r237266 r238963 43 43 #include "HTMLPlugInElement.h" 44 44 #include "HitTestResult.h" 45 #include "LayoutState.h"46 45 #include "LocalizedStrings.h" 47 46 #include "MouseEvent.h" … … 51 50 #include "PlatformMouseEvent.h" 52 51 #include "PluginViewBase.h" 52 #include "RenderLayoutState.h" 53 53 #include "RenderTheme.h" 54 54 #include "RenderView.h" -
trunk/Source/WebCore/rendering/RenderFragmentedFlow.cpp
r238463 r238963 34 34 #include "HitTestResult.h" 35 35 #include "InlineElementBox.h" 36 #include "LayoutState.h"37 36 #include "Node.h" 38 37 #include "PODIntervalTree.h" … … 42 41 #include "RenderLayer.h" 43 42 #include "RenderLayerCompositor.h" 43 #include "RenderLayoutState.h" 44 44 #include "RenderTableCell.h" 45 45 #include "RenderTableSection.h" -
trunk/Source/WebCore/rendering/RenderGrid.cpp
r238551 r238963 33 33 #include "GridTrackSizingAlgorithm.h" 34 34 #include "LayoutRepainter.h" 35 #include "LayoutState.h"36 35 #include "RenderChildIterator.h" 37 36 #include "RenderLayer.h" 37 #include "RenderLayoutState.h" 38 38 #include "RenderTreeBuilder.h" 39 39 #include "RenderView.h" -
trunk/Source/WebCore/rendering/RenderImage.cpp
r238566 r238963 46 46 #include "HitTestResult.h" 47 47 #include "InlineElementBox.h" 48 #include "LayoutState.h"49 48 #include "Page.h" 50 49 #include "PaintInfo.h" 51 50 #include "RenderFragmentedFlow.h" 52 51 #include "RenderImageResourceStyleImage.h" 52 #include "RenderLayoutState.h" 53 53 #include "RenderTheme.h" 54 54 #include "RenderView.h" -
trunk/Source/WebCore/rendering/RenderInline.cpp
r237266 r238963 31 31 #include "InlineElementBox.h" 32 32 #include "InlineTextBox.h" 33 #include "LayoutState.h"34 33 #include "RenderBlock.h" 35 34 #include "RenderChildIterator.h" … … 39 38 #include "RenderIterator.h" 40 39 #include "RenderLayer.h" 40 #include "RenderLayoutState.h" 41 41 #include "RenderLineBreak.h" 42 42 #include "RenderListMarker.h" -
trunk/Source/WebCore/rendering/RenderLayoutState.cpp
r238962 r238963 25 25 26 26 #include "config.h" 27 #include " LayoutState.h"27 #include "RenderLayoutState.h" 28 28 29 29 #include "RenderFragmentedFlow.h" … … 36 36 namespace WebCore { 37 37 38 LayoutState::LayoutState(RenderElement& renderer, IsPaginated isPaginated)38 RenderLayoutState::RenderLayoutState(RenderElement& renderer, IsPaginated isPaginated) 39 39 : m_clipped(false) 40 40 , m_isPaginated(isPaginated == IsPaginated::Yes) … … 65 65 } 66 66 67 LayoutState::LayoutState(const FrameViewLayoutContext::LayoutStateStack& layoutStateStack, RenderBox& renderer, const LayoutSize& offset, LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged)67 RenderLayoutState::RenderLayoutState(const FrameViewLayoutContext::LayoutStateStack& layoutStateStack, RenderBox& renderer, const LayoutSize& offset, LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged) 68 68 : m_clipped(false) 69 69 , m_isPaginated(false) … … 85 85 } 86 86 87 void LayoutState::computeOffsets(constLayoutState& ancestor, RenderBox& renderer, LayoutSize offset)87 void RenderLayoutState::computeOffsets(const RenderLayoutState& ancestor, RenderBox& renderer, LayoutSize offset) 88 88 { 89 89 bool fixed = renderer.isFixedPositioned(); … … 116 116 } 117 117 118 void LayoutState::computeClipRect(constLayoutState& ancestor, RenderBox& renderer)118 void RenderLayoutState::computeClipRect(const RenderLayoutState& ancestor, RenderBox& renderer) 119 119 { 120 120 m_clipped = !renderer.isFixedPositioned() && ancestor.isClipped(); … … 134 134 } 135 135 136 void LayoutState::computePaginationInformation(const FrameViewLayoutContext::LayoutStateStack& layoutStateStack, RenderBox& renderer, LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged)136 void RenderLayoutState::computePaginationInformation(const FrameViewLayoutContext::LayoutStateStack& layoutStateStack, RenderBox& renderer, LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged) 137 137 { 138 138 auto* ancestor = layoutStateStack.isEmpty() ? nullptr : layoutStateStack.last().get(); … … 171 171 } 172 172 173 LayoutUnit LayoutState::pageLogicalOffset(RenderBox* child, LayoutUnit childLogicalOffset) const173 LayoutUnit RenderLayoutState::pageLogicalOffset(RenderBox* child, LayoutUnit childLogicalOffset) const 174 174 { 175 175 if (child->isHorizontalWritingMode()) … … 178 178 } 179 179 180 void LayoutState::computeLineGridPaginationOrigin(const RenderMultiColumnFlow& multicol)180 void RenderLayoutState::computeLineGridPaginationOrigin(const RenderMultiColumnFlow& multicol) 181 181 { 182 182 if (!isPaginated() || !pageLogicalHeight()) … … 219 219 } 220 220 221 void LayoutState::propagateLineGridInfo(constLayoutState& ancestor, RenderBox& renderer)221 void RenderLayoutState::propagateLineGridInfo(const RenderLayoutState& ancestor, RenderBox& renderer) 222 222 { 223 223 // Disable line grids for objects we don't support. For now this includes overflow:scroll/auto, inline blocks and … … 231 231 } 232 232 233 void LayoutState::establishLineGrid(const FrameViewLayoutContext::LayoutStateStack& layoutStateStack, RenderBlockFlow& renderer)233 void RenderLayoutState::establishLineGrid(const FrameViewLayoutContext::LayoutStateStack& layoutStateStack, RenderBlockFlow& renderer) 234 234 { 235 235 // First check to see if this grid has been established already. … … 258 258 } 259 259 260 void LayoutState::addLayoutDelta(LayoutSize delta)260 void RenderLayoutState::addLayoutDelta(LayoutSize delta) 261 261 { 262 262 m_layoutDelta += delta; … … 268 268 269 269 #if !ASSERT_DISABLED 270 bool LayoutState::layoutDeltaMatches(LayoutSize delta) const270 bool RenderLayoutState::layoutDeltaMatches(LayoutSize delta) const 271 271 { 272 272 return (delta.width() == m_layoutDelta.width() || m_layoutDeltaXSaturated) && (delta.height() == m_layoutDelta.height() || m_layoutDeltaYSaturated); -
trunk/Source/WebCore/rendering/RenderLayoutState.h
r238962 r238963 39 39 class RenderObject; 40 40 41 class LayoutState {42 WTF_MAKE_NONCOPYABLE( LayoutState); WTF_MAKE_FAST_ALLOCATED;41 class RenderLayoutState { 42 WTF_MAKE_NONCOPYABLE(RenderLayoutState); WTF_MAKE_FAST_ALLOCATED; 43 43 44 44 public: 45 LayoutState()45 RenderLayoutState() 46 46 : m_clipped(false) 47 47 , m_isPaginated(false) … … 53 53 { 54 54 } 55 LayoutState(const FrameViewLayoutContext::LayoutStateStack&, RenderBox&, const LayoutSize& offset, LayoutUnit pageHeight, bool pageHeightChanged);55 RenderLayoutState(const FrameViewLayoutContext::LayoutStateStack&, RenderBox&, const LayoutSize& offset, LayoutUnit pageHeight, bool pageHeightChanged); 56 56 enum class IsPaginated { No, Yes }; 57 explicit LayoutState(RenderElement&, IsPaginated = IsPaginated::No);57 explicit RenderLayoutState(RenderElement&, IsPaginated = IsPaginated::No); 58 58 59 59 bool isPaginated() const { return m_isPaginated; } … … 90 90 91 91 private: 92 void computeOffsets(const LayoutState& ancestor, RenderBox&, LayoutSize offset);93 void computeClipRect(const LayoutState& ancestor, RenderBox&);92 void computeOffsets(const RenderLayoutState& ancestor, RenderBox&, LayoutSize offset); 93 void computeClipRect(const RenderLayoutState& ancestor, RenderBox&); 94 94 // FIXME: webkit.org/b/179440 these functions should be part of the pagination code/FrameViewLayoutContext. 95 95 void computePaginationInformation(const FrameViewLayoutContext::LayoutStateStack&, RenderBox&, LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged); 96 void propagateLineGridInfo(const LayoutState& ancestor, RenderBox&);96 void propagateLineGridInfo(const RenderLayoutState& ancestor, RenderBox&); 97 97 void establishLineGrid(const FrameViewLayoutContext::LayoutStateStack&, RenderBlockFlow&); 98 98 void computeLineGridPaginationOrigin(const RenderMultiColumnFlow&); -
trunk/Source/WebCore/rendering/RenderListBox.cpp
r238001 r238963 47 47 #include "HTMLSelectElement.h" 48 48 #include "HitTestResult.h" 49 #include "LayoutState.h"50 49 #include "NodeRenderStyle.h" 51 50 #include "Page.h" 52 51 #include "PaintInfo.h" 53 52 #include "RenderLayer.h" 53 #include "RenderLayoutState.h" 54 54 #include "RenderScrollbar.h" 55 55 #include "RenderText.h" -
trunk/Source/WebCore/rendering/RenderMediaControlElements.cpp
r232178 r238963 31 31 #include "RenderMediaControlElements.h" 32 32 33 #include "LayoutState.h"34 33 #include "MediaControlElements.h" 34 #include "RenderLayoutState.h" 35 35 #include "RenderTheme.h" 36 36 #include "RenderView.h" -
trunk/Source/WebCore/rendering/RenderMultiColumnFlow.cpp
r238463 r238963 28 28 29 29 #include "HitTestResult.h" 30 #include "LayoutState.h"31 30 #include "RenderIterator.h" 31 #include "RenderLayoutState.h" 32 32 #include "RenderMultiColumnSet.h" 33 33 #include "RenderMultiColumnSpannerPlaceholder.h" -
trunk/Source/WebCore/rendering/RenderTable.cpp
r238463 r238963 36 36 #include "HTMLTableElement.h" 37 37 #include "LayoutRepainter.h" 38 #include "LayoutState.h"39 38 #include "RenderBlockFlow.h" 40 39 #include "RenderChildIterator.h" … … 42 41 #include "RenderIterator.h" 43 42 #include "RenderLayer.h" 43 #include "RenderLayoutState.h" 44 44 #include "RenderTableCaption.h" 45 45 #include "RenderTableCell.h" -
trunk/Source/WebCore/rendering/RenderTableRow.cpp
r234619 r238963 29 29 #include "HTMLNames.h" 30 30 #include "HitTestResult.h" 31 #include "LayoutState.h"32 31 #include "PaintInfo.h" 32 #include "RenderLayoutState.h" 33 33 #include "RenderTableCell.h" 34 34 #include "RenderTreeBuilder.h" -
trunk/Source/WebCore/rendering/RenderTableSection.cpp
r238463 r238963 29 29 #include "HitTestResult.h" 30 30 #include "HTMLNames.h" 31 #include "LayoutState.h"32 31 #include "PaintInfo.h" 33 32 #include "RenderChildIterator.h" 33 #include "RenderLayoutState.h" 34 34 #include "RenderTableCell.h" 35 35 #include "RenderTableCol.h" -
trunk/Source/WebCore/rendering/RenderVTTCue.cpp
r224546 r238963 30 30 #include "RenderVTTCue.h" 31 31 32 #include "LayoutState.h"33 32 #include "RenderInline.h" 33 #include "RenderLayoutState.h" 34 34 #include "RenderView.h" 35 35 #include "TextTrackCueGeneric.h" -
trunk/Source/WebCore/rendering/RenderView.cpp
r238463 r238963 35 35 #include "HitTestResult.h" 36 36 #include "ImageQualityController.h" 37 #include "LayoutState.h"38 37 #include "NodeTraversal.h" 39 38 #include "Page.h" … … 44 43 #include "RenderLayerBacking.h" 45 44 #include "RenderLayerCompositor.h" 45 #include "RenderLayoutState.h" 46 46 #include "RenderMultiColumnFlow.h" 47 47 #include "RenderMultiColumnSet.h" -
trunk/Source/WebCore/rendering/RenderView.h
r237255 r238963 34 34 35 35 class ImageQualityController; 36 class LayoutState;37 36 class RenderLayerCompositor; 37 class RenderLayoutState; 38 38 class RenderQuote; 39 39 … … 211 211 void flushAccumulatedRepaintRegion() const; 212 212 213 void layoutContent(const LayoutState&);213 void layoutContent(const RenderLayoutState&); 214 214 215 215 bool isScrollableOrRubberbandableBox() const override; -
trunk/Source/WebCore/rendering/RootInlineBox.cpp
r238359 r238963 30 30 #include "HitTestResult.h" 31 31 #include "InlineTextBox.h" 32 #include "LayoutState.h"33 32 #include "LogicalSelectionOffsetCaches.h" 34 33 #include "PaintInfo.h" 35 34 #include "RenderFragmentedFlow.h" 36 35 #include "RenderInline.h" 36 #include "RenderLayoutState.h" 37 37 #include "RenderRubyBase.h" 38 38 #include "RenderRubyRun.h" -
trunk/Source/WebCore/rendering/svg/RenderSVGRoot.cpp
r238071 r238963 29 29 #include "HitTestResult.h" 30 30 #include "LayoutRepainter.h" 31 #include "LayoutState.h"32 31 #include "Page.h" 33 32 #include "RenderIterator.h" 34 33 #include "RenderLayer.h" 34 #include "RenderLayoutState.h" 35 35 #include "RenderSVGResource.h" 36 36 #include "RenderSVGResourceContainer.h" … … 146 146 m_resourcesNeedingToInvalidateClients.clear(); 147 147 148 // Arbitrary affine transforms are incompatible with LayoutState.148 // Arbitrary affine transforms are incompatible with RenderLayoutState. 149 149 LayoutStateDisabler layoutStateDisabler(view().frameView().layoutContext()); 150 150
Note: See TracChangeset
for help on using the changeset viewer.