Changeset 209903 in webkit
- Timestamp:
- Dec 15, 2016 8:37:28 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r209901 r209903 1 2016-12-15 Zalan Bujtas <zalan@apple.com> 2 3 Change ::computeLogicalHeight's computedValues out argument to the return value. 4 https://bugs.webkit.org/show_bug.cgi?id=165789 5 6 Reviewed by Simon Fraser. 7 8 No change in functionality. 9 10 * html/shadow/SliderThumbElement.cpp: 11 (WebCore::RenderSliderContainer::computeLogicalHeight): 12 * html/shadow/mac/ImageControlsButtonElementMac.cpp: 13 (WebCore::RenderImageControlsButton::computeLogicalHeight): 14 * html/shadow/mac/ImageControlsRootElementMac.cpp: 15 (WebCore::RenderImageControls::computeLogicalHeight): 16 * rendering/RenderBlock.cpp: 17 (WebCore::RenderBlock::computeBlockPreferredLogicalWidths): 18 (WebCore::RenderBlock::estimateRegionRangeForBoxChild): 19 * rendering/RenderBlockFlow.cpp: 20 (WebCore::RenderBlockFlow::checkForPaginationLogicalHeightChange): 21 * rendering/RenderBox.cpp: 22 (WebCore::RenderBox::updateLogicalHeight): 23 (WebCore::RenderBox::computeLogicalHeight): 24 (WebCore::RenderBox::computePercentageLogicalHeight): 25 (WebCore::RenderBox::computeReplacedLogicalHeightUsing): 26 (WebCore::RenderBox::availableLogicalHeightUsing): 27 * rendering/RenderBox.h: 28 (WebCore::RenderBox::ComputedMarginValues::ComputedMarginValues): Deleted. 29 (WebCore::RenderBox::LogicalExtentComputedValues::LogicalExtentComputedValues): Deleted. 30 * rendering/RenderFlexibleBox.cpp: 31 (WebCore::RenderFlexibleBox::mainAxisContentExtent): 32 * rendering/RenderFlowThread.cpp: 33 (WebCore::RenderFlowThread::computeLogicalHeight): 34 * rendering/RenderFlowThread.h: 35 * rendering/RenderListBox.cpp: 36 (WebCore::RenderListBox::computeLogicalHeight): 37 * rendering/RenderListBox.h: 38 * rendering/RenderMeter.cpp: 39 (WebCore::RenderMeter::computeLogicalHeight): 40 * rendering/RenderMeter.h: 41 * rendering/RenderMultiColumnFlowThread.cpp: 42 (WebCore::RenderMultiColumnFlowThread::computeLogicalHeight): 43 * rendering/RenderMultiColumnFlowThread.h: 44 * rendering/RenderMultiColumnSet.cpp: 45 (WebCore::RenderMultiColumnSet::computeLogicalHeight): 46 * rendering/RenderMultiColumnSet.h: 47 * rendering/RenderProgress.cpp: 48 (WebCore::RenderProgress::computeLogicalHeight): 49 * rendering/RenderProgress.h: 50 * rendering/RenderTextControl.cpp: 51 (WebCore::RenderTextControl::computeLogicalHeight): 52 * rendering/RenderTextControl.h: 53 * rendering/RenderView.cpp: 54 (WebCore::RenderView::computeLogicalHeight): 55 * rendering/RenderView.h: 56 * rendering/svg/RenderSVGForeignObject.cpp: 57 (WebCore::RenderSVGForeignObject::computeLogicalHeight): 58 * rendering/svg/RenderSVGForeignObject.h: 59 1 60 2016-12-15 Chris Dumez <cdumez@apple.com> 2 61 -
trunk/Source/WebCore/html/shadow/SliderThumbElement.cpp
r208985 r209903 120 120 121 121 public: 122 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const override;122 RenderBox::LogicalExtentComputedValues computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const override; 123 123 124 124 private: … … 127 127 }; 128 128 129 void RenderSliderContainer::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const129 RenderBox::LogicalExtentComputedValues RenderSliderContainer::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const 130 130 { 131 131 ASSERT(element()->shadowHost()); … … 147 147 trackHeight *= zoomFactor; 148 148 149 RenderBox::computeLogicalHeight(trackHeight, logicalTop, computedValues); 150 return; 149 return RenderBox::computeLogicalHeight(trackHeight, logicalTop); 151 150 } 152 151 #endif 153 152 if (isVertical) 154 153 logicalHeight = RenderSlider::defaultTrackLength; 155 RenderBox::computeLogicalHeight(logicalHeight, logicalTop, computedValues);154 return RenderBox::computeLogicalHeight(logicalHeight, logicalTop); 156 155 } 157 156 -
trunk/Source/WebCore/html/shadow/mac/ImageControlsButtonElementMac.cpp
r205249 r209903 51 51 private: 52 52 void updateLogicalWidth() override; 53 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const override;53 LogicalExtentComputedValues computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const override; 54 54 55 55 const char* renderName() const override { return "RenderImageControlsButton"; } … … 74 74 } 75 75 76 void RenderImageControlsButton::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const76 RenderBox::LogicalExtentComputedValues RenderImageControlsButton::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const 77 77 { 78 RenderBox::computeLogicalHeight(logicalHeight, logicalTop, computedValues); 79 78 auto computedValues = RenderBox::computeLogicalHeight(logicalHeight, logicalTop); 80 79 IntSize frameSize = theme().imageControlsButtonSize(*this); 81 80 computedValues.m_extent = isHorizontalWritingMode() ? frameSize.height() : frameSize.width(); 81 return computedValues; 82 82 } 83 83 -
trunk/Source/WebCore/html/shadow/mac/ImageControlsRootElementMac.cpp
r203302 r209903 44 44 private: 45 45 void updateLogicalWidth() override; 46 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const override;46 LogicalExtentComputedValues computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const override; 47 47 48 48 const char* renderName() const override { return "RenderImageControls"; } … … 70 70 } 71 71 72 void RenderImageControls::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const72 RenderBox::LogicalExtentComputedValues RenderImageControls::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const 73 73 { 74 RenderBox::computeLogicalHeight(logicalHeight, logicalTop, computedValues); 75 74 auto computedValues = RenderBox::computeLogicalHeight(logicalHeight, logicalTop); 76 75 RenderElement* renderer = element()->shadowHost()->renderer(); 77 76 if (!is<RenderImage>(*renderer)) 78 return ;77 return computedValues; 79 78 80 79 computedValues.m_extent = downcast<RenderImage>(*renderer).logicalHeight(); 80 return computedValues; 81 81 } 82 82 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r209427 r209903 2794 2794 if (is<RenderBox>(*child) && child->isHorizontalWritingMode() != isHorizontalWritingMode()) { 2795 2795 auto& childBox = downcast<RenderBox>(*child); 2796 LogicalExtentComputedValues computedValues; 2797 childBox.computeLogicalHeight(childBox.borderAndPaddingLogicalHeight(), 0, computedValues); 2798 childMinPreferredLogicalWidth = childMaxPreferredLogicalWidth = computedValues.m_extent; 2796 childMinPreferredLogicalWidth = childMaxPreferredLogicalWidth = childBox.computeLogicalHeight(childBox.borderAndPaddingLogicalHeight(), 0).m_extent; 2799 2797 } else { 2800 2798 childMinPreferredLogicalWidth = child->minPreferredLogicalWidth(); … … 3640 3638 } 3641 3639 3642 LogicalExtentComputedValues estimatedValues; 3643 box.computeLogicalHeight(RenderFlowThread::maxLogicalHeight(), logicalTopForChild(box), estimatedValues); 3644 3640 auto estimatedValues = box.computeLogicalHeight(RenderFlowThread::maxLogicalHeight(), logicalTopForChild(box)); 3645 3641 LayoutUnit offsetFromLogicalTopOfFirstRegion = box.offsetFromLogicalTopOfFirstPage(); 3646 3642 RenderRegion* startRegion = flowThread->regionAtBlockOffset(this, offsetFromLogicalTopOfFirstRegion, true); -
trunk/Source/WebCore/rendering/RenderBlockFlow.cpp
r209719 r209903 3934 3934 LayoutUnit newColumnHeight; 3935 3935 if (hasDefiniteLogicalHeight() || view().frameView().pagination().mode != Pagination::Unpaginated) { 3936 LogicalExtentComputedValues computedValues; 3937 computeLogicalHeight(LayoutUnit(), logicalTop(), computedValues); 3936 auto computedValues = computeLogicalHeight(LayoutUnit(), logicalTop()); 3938 3937 newColumnHeight = std::max<LayoutUnit>(computedValues.m_extent - borderAndPaddingLogicalHeight() - scrollbarLogicalHeight(), 0); 3939 3938 if (flowThread->columnHeightAvailable() != newColumnHeight) -
trunk/Source/WebCore/rendering/RenderBox.cpp
r209438 r209903 2779 2779 void RenderBox::updateLogicalHeight() 2780 2780 { 2781 LogicalExtentComputedValues computedValues; 2782 computeLogicalHeight(logicalHeight(), logicalTop(), computedValues); 2783 2781 auto computedValues = computeLogicalHeight(logicalHeight(), logicalTop()); 2784 2782 setLogicalHeight(computedValues.m_extent); 2785 2783 setLogicalTop(computedValues.m_position); … … 2788 2786 } 2789 2787 2790 void RenderBox::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const 2791 { 2788 RenderBox::LogicalExtentComputedValues RenderBox::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const 2789 { 2790 LogicalExtentComputedValues computedValues; 2792 2791 computedValues.m_extent = logicalHeight; 2793 2792 computedValues.m_position = logicalTop; … … 2795 2794 // Cell height is managed by the table and inline non-replaced elements do not support a height property. 2796 2795 if (isTableCell() || (isInline() && !isReplaced())) 2797 return ;2796 return computedValues; 2798 2797 2799 2798 Length h; … … 2819 2818 shouldFlipBeforeAfter ? computedValues.m_margins.m_before : computedValues.m_margins.m_after); 2820 2819 } 2821 return ;2820 return computedValues; 2822 2821 } 2823 2822 … … 2903 2902 } 2904 2903 } 2904 return computedValues; 2905 2905 } 2906 2906 … … 3040 3040 // Don't allow this to affect the block' height() member variable, since this 3041 3041 // can get called while the block is still laying out its kids. 3042 LogicalExtentComputedValues computedValues; 3043 cb->computeLogicalHeight(cb->logicalHeight(), 0, computedValues); 3042 auto computedValues = cb->computeLogicalHeight(cb->logicalHeight(), 0); 3044 3043 availableHeight = computedValues.m_extent - cb->borderAndPaddingLogicalHeight() - cb->scrollbarLogicalHeight(); 3045 3044 } else if (cb->isRenderView()) … … 3161 3160 ASSERT_WITH_SECURITY_IMPLICATION(container->isRenderBlock()); 3162 3161 auto& block = downcast<RenderBlock>(*container); 3163 LogicalExtentComputedValues computedValues; 3164 block.computeLogicalHeight(block.logicalHeight(), 0, computedValues); 3162 auto computedValues = block.computeLogicalHeight(block.logicalHeight(), 0); 3165 3163 LayoutUnit newContentHeight = computedValues.m_extent - block.borderAndPaddingLogicalHeight() - block.scrollbarLogicalHeight(); 3166 3164 LayoutUnit newHeight = block.adjustContentBoxLogicalHeightForBoxSizing(newContentHeight); … … 3234 3232 if (is<RenderBlock>(*this) && isOutOfFlowPositioned() && style().height().isAuto() && !(style().top().isAuto() || style().bottom().isAuto())) { 3235 3233 RenderBlock& block = const_cast<RenderBlock&>(downcast<RenderBlock>(*this)); 3236 LogicalExtentComputedValues computedValues; 3237 block.computeLogicalHeight(block.logicalHeight(), 0, computedValues); 3234 auto computedValues = block.computeLogicalHeight(block.logicalHeight(), 0); 3238 3235 LayoutUnit newContentHeight = computedValues.m_extent - block.borderAndPaddingLogicalHeight() - block.scrollbarLogicalHeight(); 3239 3236 return adjustContentBoxLogicalHeightForBoxSizing(newContentHeight); -
trunk/Source/WebCore/rendering/RenderBox.h
r208985 r209903 336 336 337 337 struct ComputedMarginValues { 338 ComputedMarginValues()339 : m_before(0)340 , m_after(0)341 , m_start(0)342 , m_end(0)343 {344 }345 338 LayoutUnit m_before; 346 339 LayoutUnit m_after; … … 349 342 }; 350 343 struct LogicalExtentComputedValues { 351 LogicalExtentComputedValues()352 : m_extent(0)353 , m_position(0)354 {355 }356 357 344 LayoutUnit m_extent; 358 345 LayoutUnit m_position; … … 400 387 virtual void updateLogicalWidth(); 401 388 virtual void updateLogicalHeight(); 402 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const;389 virtual LogicalExtentComputedValues computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const; 403 390 404 391 RenderBoxRegionInfo* renderBoxRegionInfo(RenderRegion*, RenderBoxRegionInfoFlags = CacheRenderBoxRegionInfo) const; -
trunk/Source/WebCore/rendering/RenderFlexibleBox.cpp
r209068 r209903 443 443 { 444 444 if (isColumnFlow()) { 445 LogicalExtentComputedValues computedValues;446 445 LayoutUnit borderPaddingAndScrollbar = borderAndPaddingLogicalHeight() + scrollbarLogicalHeight(); 447 446 if (contentLogicalHeight > LayoutUnit::max() - borderPaddingAndScrollbar) 448 447 contentLogicalHeight -= borderPaddingAndScrollbar; 449 448 LayoutUnit borderBoxLogicalHeight = contentLogicalHeight + borderPaddingAndScrollbar; 450 computeLogicalHeight(borderBoxLogicalHeight, logicalTop(), computedValues);449 auto computedValues = computeLogicalHeight(borderBoxLogicalHeight, logicalTop()); 451 450 if (computedValues.m_extent == LayoutUnit::max()) 452 451 return computedValues.m_extent; -
trunk/Source/WebCore/rendering/RenderFlowThread.cpp
r209756 r209903 345 345 } 346 346 347 void RenderFlowThread::computeLogicalHeight(LayoutUnit, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const 348 { 347 RenderBox::LogicalExtentComputedValues RenderFlowThread::computeLogicalHeight(LayoutUnit, LayoutUnit logicalTop) const 348 { 349 LogicalExtentComputedValues computedValues; 349 350 computedValues.m_position = logicalTop; 350 351 computedValues.m_extent = 0; … … 359 360 // If we reached the maximum size there's no point in going further. 360 361 if (computedValues.m_extent == maxFlowSize) 361 return; 362 } 362 return computedValues; 363 } 364 return computedValues; 363 365 } 364 366 -
trunk/Source/WebCore/rendering/RenderFlowThread.h
r208668 r209903 76 76 77 77 void updateLogicalWidth() final; 78 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const override;78 LogicalExtentComputedValues computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const override; 79 79 80 80 bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override; -
trunk/Source/WebCore/rendering/RenderListBox.cpp
r208985 r209903 259 259 } 260 260 261 void RenderListBox::computeLogicalHeight(LayoutUnit, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const261 RenderBox::LogicalExtentComputedValues RenderListBox::computeLogicalHeight(LayoutUnit, LayoutUnit logicalTop) const 262 262 { 263 263 LayoutUnit height = itemHeight() * size() - rowSpacing + verticalBorderAndPaddingExtent(); 264 RenderBox::computeLogicalHeight(height, logicalTop, computedValues);264 return RenderBox::computeLogicalHeight(height, logicalTop); 265 265 } 266 266 -
trunk/Source/WebCore/rendering/RenderListBox.h
r208985 r209903 86 86 void computePreferredLogicalWidths() override; 87 87 int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const override; 88 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const override;88 LogicalExtentComputedValues computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const override; 89 89 90 90 void layout() override; -
trunk/Source/WebCore/rendering/RenderMeter.cpp
r200041 r209903 59 59 } 60 60 61 void RenderMeter::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const61 RenderBox::LogicalExtentComputedValues RenderMeter::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const 62 62 { 63 RenderBox::computeLogicalHeight(logicalHeight, logicalTop, computedValues); 64 63 auto computedValues = RenderBox::computeLogicalHeight(logicalHeight, logicalTop); 65 64 LayoutRect frame = frameRect(); 66 65 if (isHorizontalWritingMode()) … … 70 69 IntSize frameSize = theme().meterSizeForBounds(*this, snappedIntRect(frame)); 71 70 computedValues.m_extent = isHorizontalWritingMode() ? frameSize.height() : frameSize.width(); 71 return computedValues; 72 72 } 73 73 -
trunk/Source/WebCore/rendering/RenderMeter.h
r208668 r209903 40 40 private: 41 41 void updateLogicalWidth() override; 42 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const override;42 LogicalExtentComputedValues computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const override; 43 43 44 44 const char* renderName() const override { return "RenderMeter"; } -
trunk/Source/WebCore/rendering/RenderMultiColumnFlowThread.cpp
r209259 r209903 500 500 } 501 501 502 void RenderMultiColumnFlowThread::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const502 RenderBox::LogicalExtentComputedValues RenderMultiColumnFlowThread::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const 503 503 { 504 504 // We simply remain at our intrinsic height. 505 computedValues.m_extent = logicalHeight; 506 computedValues.m_position = logicalTop; 505 return { logicalHeight, logicalTop, ComputedMarginValues() }; 507 506 } 508 507 -
trunk/Source/WebCore/rendering/RenderMultiColumnFlowThread.h
r208668 r209903 114 114 void flowThreadRelativeWillBeRemoved(RenderObject&) override; 115 115 void flowThreadDescendantBoxLaidOut(RenderBox*) override; 116 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const override;116 LogicalExtentComputedValues computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const override; 117 117 LayoutUnit initialLogicalWidth() const override; 118 118 void setPageBreak(const RenderBlock*, LayoutUnit offset, LayoutUnit spaceShortage) override; -
trunk/Source/WebCore/rendering/RenderMultiColumnSet.cpp
r208985 r209903 403 403 } 404 404 405 void RenderMultiColumnSet::computeLogicalHeight(LayoutUnit, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const 406 { 407 computedValues.m_extent = m_availableColumnHeight; 408 computedValues.m_position = logicalTop; 405 RenderBox::LogicalExtentComputedValues RenderMultiColumnSet::computeLogicalHeight(LayoutUnit, LayoutUnit logicalTop) const 406 { 407 return { m_availableColumnHeight, logicalTop, ComputedMarginValues() }; 409 408 } 410 409 -
trunk/Source/WebCore/rendering/RenderMultiColumnSet.h
r208668 r209903 136 136 void layout() override; 137 137 138 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const override;138 LogicalExtentComputedValues computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const override; 139 139 140 140 void paintObject(PaintInfo&, const LayoutPoint&) override { } -
trunk/Source/WebCore/rendering/RenderProgress.cpp
r200041 r209903 58 58 } 59 59 60 void RenderProgress::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const60 RenderBox::LogicalExtentComputedValues RenderProgress::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const 61 61 { 62 RenderBox::computeLogicalHeight(logicalHeight, logicalTop, computedValues); 63 62 auto computedValues = RenderBox::computeLogicalHeight(logicalHeight, logicalTop); 64 63 LayoutRect frame = frameRect(); 65 64 if (isHorizontalWritingMode()) … … 69 68 IntSize frameSize = theme().progressBarRectForBounds(*this, snappedIntRect(frame)).size(); 70 69 computedValues.m_extent = isHorizontalWritingMode() ? frameSize.height() : frameSize.width(); 70 return computedValues; 71 71 } 72 72 -
trunk/Source/WebCore/rendering/RenderProgress.h
r208668 r209903 45 45 bool isProgress() const override { return true; } 46 46 bool requiresForcedStyleRecalcPropagation() const override { return true; } 47 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const override;47 LogicalExtentComputedValues computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const override; 48 48 49 49 void animationTimerFired(); -
trunk/Source/WebCore/rendering/RenderTextControl.cpp
r200671 r209903 96 96 } 97 97 98 void RenderTextControl::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const98 RenderBox::LogicalExtentComputedValues RenderTextControl::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const 99 99 { 100 100 TextControlInnerTextElement* innerText = innerTextElement(); … … 110 110 } 111 111 112 RenderBox::computeLogicalHeight(logicalHeight, logicalTop, computedValues);112 return RenderBox::computeLogicalHeight(logicalHeight, logicalTop); 113 113 } 114 114 -
trunk/Source/WebCore/rendering/RenderTextControl.h
r208985 r209903 64 64 virtual LayoutUnit computeControlLogicalHeight(LayoutUnit lineHeight, LayoutUnit nonContentHeight) const = 0; 65 65 66 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const override;66 LogicalExtentComputedValues computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const override; 67 67 RenderObject* layoutSpecialExcludedChild(bool relayoutChildren) override; 68 68 -
trunk/Source/WebCore/rendering/RenderView.cpp
r209438 r209903 213 213 } 214 214 215 void RenderView::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit, LogicalExtentComputedValues& computedValues) const216 { 217 computedValues.m_extent = !shouldUsePrintingLayout() ? LayoutUnit(viewLogicalHeight()) : logicalHeight;215 RenderBox::LogicalExtentComputedValues RenderView::computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit) const 216 { 217 return { !shouldUsePrintingLayout() ? LayoutUnit(viewLogicalHeight()) : logicalHeight, LayoutUnit(), ComputedMarginValues() }; 218 218 } 219 219 -
trunk/Source/WebCore/rendering/RenderView.h
r209438 r209903 58 58 void layout() override; 59 59 void updateLogicalWidth() override; 60 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const override;60 LogicalExtentComputedValues computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const override; 61 61 62 62 LayoutUnit availableLogicalHeight(AvailableLogicalHeightType) const override; -
trunk/Source/WebCore/rendering/svg/RenderSVGForeignObject.cpp
r208985 r209903 123 123 } 124 124 125 void RenderSVGForeignObject::computeLogicalHeight(LayoutUnit, LayoutUnit logicalTop, LogicalExtentComputedValues& computedValues) const125 RenderBox::LogicalExtentComputedValues RenderSVGForeignObject::computeLogicalHeight(LayoutUnit, LayoutUnit logicalTop) const 126 126 { 127 127 // FIXME: Investigate in size rounding issues 128 128 // FIXME: Remove unnecessary rounding when layout is off ints: webkit.org/b/63656 129 129 // FIXME: Is this correct for vertical writing mode? 130 computedValues.m_extent = static_cast<int>(roundf(m_viewport.height())); 131 computedValues.m_position = logicalTop; 130 return { static_cast<int>(roundf(m_viewport.height())), logicalTop, ComputedMarginValues() }; 132 131 } 133 132 -
trunk/Source/WebCore/rendering/svg/RenderSVGForeignObject.h
r208668 r209903 63 63 64 64 void updateLogicalWidth() override; 65 void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const override;65 LogicalExtentComputedValues computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop) const override; 66 66 67 67 const AffineTransform& localToParentTransform() const override;
Note: See TracChangeset
for help on using the changeset viewer.