Home
last modified time | relevance | path

Searched refs:LayoutUnit (Results 1 – 25 of 193) sorted by relevance

12345678

/external/chromium_org/third_party/WebKit/Source/platform/
DLayoutUnitTest.cpp43 ASSERT_EQ(LayoutUnit(INT_MIN).toInt(), intMinForLayoutUnit); in TEST()
44 ASSERT_EQ(LayoutUnit(INT_MIN / 2).toInt(), intMinForLayoutUnit); in TEST()
45 ASSERT_EQ(LayoutUnit(intMinForLayoutUnit - 1).toInt(), intMinForLayoutUnit); in TEST()
46 ASSERT_EQ(LayoutUnit(intMinForLayoutUnit).toInt(), intMinForLayoutUnit); in TEST()
47 ASSERT_EQ(LayoutUnit(intMinForLayoutUnit + 1).toInt(), intMinForLayoutUnit + 1); in TEST()
48 ASSERT_EQ(LayoutUnit(intMinForLayoutUnit / 2).toInt(), intMinForLayoutUnit / 2); in TEST()
49 ASSERT_EQ(LayoutUnit(-10000).toInt(), -10000); in TEST()
50 ASSERT_EQ(LayoutUnit(-1000).toInt(), -1000); in TEST()
51 ASSERT_EQ(LayoutUnit(-100).toInt(), -100); in TEST()
52 ASSERT_EQ(LayoutUnit(-10).toInt(), -10); in TEST()
[all …]
DLayoutUnit.h62 class LayoutUnit {
64 LayoutUnit() : m_value(0) { } in LayoutUnit() function
65 LayoutUnit(int value) { setValue(value); } in LayoutUnit() function
66 LayoutUnit(unsigned short value) { setValue(value); } in LayoutUnit() function
67 LayoutUnit(unsigned value) { setValue(value); } in LayoutUnit() function
68 LayoutUnit(unsigned long value) { m_value = clampTo<int>(value * kFixedPointDenominator); } in LayoutUnit() function
69 LayoutUnit(unsigned long long value) { m_value = clampTo<int>(value * kFixedPointDenominator); } in LayoutUnit() function
70LayoutUnit(float value) { m_value = clampTo<float>(value * kFixedPointDenominator, static_cast<flo… in LayoutUnit() function
71LayoutUnit(double value) { m_value = clampTo<double>(value * kFixedPointDenominator, static_cast<d… in LayoutUnit() function
73 static LayoutUnit fromFloatCeil(float value) in fromFloatCeil()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderFlexibleBox.h51 … virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) OVERRIDE FINAL;
62 …virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidt…
79 typedef HashMap<const RenderBox*, LayoutUnit> InflexibleFlexItemSize;
93 void setCrossAxisExtent(LayoutUnit);
94 LayoutUnit crossAxisExtentForChild(RenderBox* child) const;
95 LayoutUnit mainAxisExtentForChild(RenderBox* child) const;
96 LayoutUnit crossAxisExtent() const;
97 LayoutUnit mainAxisExtent() const;
98 LayoutUnit crossAxisContentExtent() const;
99 LayoutUnit mainAxisContentExtent(LayoutUnit contentLogicalHeight);
[all …]
DRenderBlock.h95 …virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositionMode = PositionOnCont…
98 LayoutUnit minLineHeightForReplacedRenderer(bool isFirstLine, LayoutUnit replacedHeight) const;
111 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0);
157LayoutUnit availableLogicalWidthForLineInRegion(LayoutUnit position, bool shouldIndentText, Render…
159 …return max<LayoutUnit>(0, logicalRightOffsetForLineInRegion(position, shouldIndentText, region, lo…
162LayoutUnit logicalRightOffsetForLineInRegion(LayoutUnit position, bool shouldIndentText, RenderReg…
166LayoutUnit logicalLeftOffsetForLineInRegion(LayoutUnit position, bool shouldIndentText, RenderRegi…
170LayoutUnit startOffsetForLineInRegion(LayoutUnit position, bool shouldIndentText, RenderRegion* re…
175LayoutUnit endOffsetForLineInRegion(LayoutUnit position, bool shouldIndentText, RenderRegion* regi…
181LayoutUnit availableLogicalWidthForLine(LayoutUnit position, bool shouldIndentText, LayoutUnit log…
[all …]
DRenderBlockFlow.h60 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) OVERRIDE;
62 …virtual void computeOverflow(LayoutUnit oldClientAfterEdge, bool recomputeFloats = false) OVERRIDE;
75LayoutUnit logicalTopForFloat(const FloatingObject* floatingObject) const { return isHorizontalWri… in logicalTopForFloat()
76LayoutUnit logicalBottomForFloat(const FloatingObject* floatingObject) const { return isHorizontal… in logicalBottomForFloat()
77LayoutUnit logicalLeftForFloat(const FloatingObject* floatingObject) const { return isHorizontalWr… in logicalLeftForFloat()
78LayoutUnit logicalRightForFloat(const FloatingObject* floatingObject) const { return isHorizontalW… in logicalRightForFloat()
79LayoutUnit logicalWidthForFloat(const FloatingObject* floatingObject) const { return isHorizontalW… in logicalWidthForFloat()
80LayoutUnit logicalHeightForFloat(const FloatingObject* floatingObject) const { return isHorizontal… in logicalHeightForFloat()
88 void setLogicalTopForFloat(FloatingObject* floatingObject, LayoutUnit logicalTop) in setLogicalTopForFloat()
95 void setLogicalLeftForFloat(FloatingObject* floatingObject, LayoutUnit logicalLeft) in setLogicalLeftForFloat()
[all …]
DRenderBox.h65 LayoutUnit x() const { return m_frameRect.x(); } in x()
66 LayoutUnit y() const { return m_frameRect.y(); } in y()
67 LayoutUnit width() const { return m_frameRect.width(); } in width()
68 LayoutUnit height() const { return m_frameRect.height(); } in height()
75 LayoutUnit top() const { return topLeftLocation().y(); } in top()
76 LayoutUnit left() const { return topLeftLocation().x(); } in left()
78 void setX(LayoutUnit x) { m_frameRect.setX(x); } in setX()
79 void setY(LayoutUnit y) { m_frameRect.setY(y); } in setY()
80 void setWidth(LayoutUnit width) { m_frameRect.setWidth(width); } in setWidth()
81 void setHeight(LayoutUnit height) { m_frameRect.setHeight(height); } in setHeight()
[all …]
DRenderMultiColumnSet.h51 LayoutUnit computedColumnWidth() const { return m_computedColumnWidth; } in computedColumnWidth()
52 LayoutUnit computedColumnHeight() const { return m_computedColumnHeight; } in computedColumnHeight()
54 void setComputedColumnWidthAndCount(LayoutUnit width, unsigned count) in setComputedColumnWidthAndCount()
60 LayoutUnit heightAdjustedForSetOffset(LayoutUnit height) const;
62 …void updateMinimumColumnHeight(LayoutUnit height) { m_minimumColumnHeight = std::max(height, m_min… in updateMinimumColumnHeight()
63 LayoutUnit minimumColumnHeight() const { return m_minimumColumnHeight; } in minimumColumnHeight()
66 LayoutUnit forcedBreakOffset() const { return m_forcedBreakOffset; } in forcedBreakOffset()
67LayoutUnit maximumDistanceBetweenForcedBreaks() const { return m_maximumDistanceBetweenForcedBreak… in maximumDistanceBetweenForcedBreaks()
74 void addForcedBreak(LayoutUnit offsetFromFirstPage) in addForcedBreak()
77 LayoutUnit distanceFromLastBreak = offsetFromFirstPage - m_forcedBreakOffset; in addForcedBreak()
[all …]
DRootInlineBox.h52 LayoutUnit lineTop() const { return m_lineTop; } in lineTop()
53 LayoutUnit lineBottom() const { return m_lineBottom; } in lineBottom()
55 LayoutUnit lineTopWithLeading() const { return m_lineTopWithLeading; } in lineTopWithLeading()
56 LayoutUnit lineBottomWithLeading() const { return m_lineBottomWithLeading; } in lineBottomWithLeading()
58LayoutUnit paginationStrut() const { return m_fragmentationData ? m_fragmentationData->m_paginatio… in paginationStrut()
59 …void setPaginationStrut(LayoutUnit strut) { ensureLineFragmentationData()->m_paginationStrut = str… in setPaginationStrut()
64LayoutUnit paginatedLineWidth() const { return m_fragmentationData ? m_fragmentationData->m_pagina… in paginatedLineWidth()
65 …void setPaginatedLineWidth(LayoutUnit width) { ensureLineFragmentationData()->m_paginatedLineWidth… in setPaginatedLineWidth()
70 LayoutUnit selectionTop() const;
71 LayoutUnit selectionBottom() const;
[all …]
DInlineFlowBox.h117 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutUnit lineBottom);
118 …& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBo…
125LayoutUnit marginBorderPaddingLogicalLeft() const { return marginLogicalLeft() + borderLogicalLeft… in marginBorderPaddingLogicalLeft()
126LayoutUnit marginBorderPaddingLogicalRight() const { return marginLogicalRight() + borderLogicalRi… in marginBorderPaddingLogicalRight()
127 LayoutUnit marginLogicalLeft() const in marginLogicalLeft()
133 LayoutUnit marginLogicalRight() const in marginLogicalRight()
174 LayoutUnit getFlowSpacingLogicalWidth();
185 …void computeLogicalBoxHeights(RootInlineBox*, LayoutUnit& maxPositionTop, LayoutUnit& maxPositionB…
190 …BoxesInBlockDirection(LayoutUnit logicalTop, LayoutUnit maxHeight, int maxAscent, bool strictMode,…
191LayoutUnit& lineTopIncludingMargins, LayoutUnit& lineBottomIncludingMargins, bool& hasAnnotationsB…
[all …]
DRenderBoxModelObject.h77 virtual LayoutUnit offsetLeft() const;
78 virtual LayoutUnit offsetTop() const;
79 virtual LayoutUnit offsetWidth() const = 0;
80 virtual LayoutUnit offsetHeight() const = 0;
95 LayoutUnit computedCSSPaddingTop() const { return computedCSSPadding(style()->paddingTop()); } in computedCSSPaddingTop()
96LayoutUnit computedCSSPaddingBottom() const { return computedCSSPadding(style()->paddingBottom());… in computedCSSPaddingBottom()
97 LayoutUnit computedCSSPaddingLeft() const { return computedCSSPadding(style()->paddingLeft()); } in computedCSSPaddingLeft()
98LayoutUnit computedCSSPaddingRight() const { return computedCSSPadding(style()->paddingRight()); } in computedCSSPaddingRight()
99LayoutUnit computedCSSPaddingBefore() const { return computedCSSPadding(style()->paddingBefore());… in computedCSSPaddingBefore()
100LayoutUnit computedCSSPaddingAfter() const { return computedCSSPadding(style()->paddingAfter()); } in computedCSSPaddingAfter()
[all …]
DRenderMultiColumnSet.cpp43 , m_maxColumnHeight(LayoutUnit::max()) in RenderMultiColumnSet()
44 , m_minSpaceShortage(LayoutUnit::max()) in RenderMultiColumnSet()
60 LayoutUnit RenderMultiColumnSet::heightAdjustedForSetOffset(LayoutUnit height) const in heightAdjustedForSetOffset()
63LayoutUnit contentLogicalTop = logicalTop() - multicolBlock->borderBefore() - multicolBlock->paddi… in heightAdjustedForSetOffset()
66 …return max(height, LayoutUnit(1)); // Let's avoid zero height, as that would probably cause an inf… in heightAdjustedForSetOffset()
69 LayoutUnit RenderMultiColumnSet::pageLogicalTopForOffset(LayoutUnit offset) const in pageLogicalTopForOffset()
71LayoutUnit portionLogicalTop = (isHorizontalWritingMode() ? flowThreadPortionRect().y() : flowThre… in pageLogicalTopForOffset()
76 void RenderMultiColumnSet::setAndConstrainColumnHeight(LayoutUnit newHeight) in setAndConstrainColumnHeight()
87 LayoutUnit oldColumnHeight = m_computedColumnHeight; in calculateBalancedHeight()
88 LayoutUnit currentMinSpaceShortage = m_minSpaceShortage; in calculateBalancedHeight()
[all …]
DRenderFlowThread.h80 …virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentCo…
103 LayoutUnit pageLogicalTopForOffset(LayoutUnit);
104 LayoutUnit pageLogicalWidthForOffset(LayoutUnit);
105 LayoutUnit pageLogicalHeightForOffset(LayoutUnit);
106LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule = IncludePageBoundary);
108 virtual void setPageBreak(LayoutUnit /*offset*/, LayoutUnit /*spaceShortage*/) { } in setPageBreak() argument
109 virtual void updateMinimumPageHeight(LayoutUnit /*offset*/, LayoutUnit /*minHeight*/) { } in updateMinimumPageHeight() argument
115 …RenderRegion* regionAtBlockOffset(LayoutUnit, bool extendLastRegion = false, RegionAutoGenerationP…
127 LayoutUnit contentLogicalWidthOfFirstRegion() const;
128 LayoutUnit contentLogicalHeightOfFirstRegion() const;
[all …]
DRenderFlexibleBox.cpp43 …LineContext(LayoutUnit crossAxisOffset, LayoutUnit crossAxisExtent, size_t numberOfChildren, Layou… in LineContext()
51 LayoutUnit crossAxisOffset;
52 LayoutUnit crossAxisExtent;
54 LayoutUnit maxAscent;
58 Violation(RenderBox* child, LayoutUnit childSize) in Violation()
65 LayoutUnit childSize;
93 void RenderFlexibleBox::computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxL… in computeIntrinsicLogicalWidths()
102 LayoutUnit margin = marginIntrinsicLogicalWidthForChild(child); in computeIntrinsicLogicalWidths()
104LayoutUnit minPreferredLogicalWidth = hasOrthogonalWritingMode ? child->logicalHeight() : child->m… in computeIntrinsicLogicalWidths()
105LayoutUnit maxPreferredLogicalWidth = hasOrthogonalWritingMode ? child->logicalHeight() : child->m… in computeIntrinsicLogicalWidths()
[all …]
DFloatingObjects.h64 LayoutUnit x() const { ASSERT(isPlaced()); return m_frameRect.x(); } in x()
65 LayoutUnit maxX() const { ASSERT(isPlaced()); return m_frameRect.maxX(); } in maxX()
66 LayoutUnit y() const { ASSERT(isPlaced()); return m_frameRect.y(); } in y()
67 LayoutUnit maxY() const { ASSERT(isPlaced()); return m_frameRect.maxY(); } in maxY()
68 LayoutUnit width() const { return m_frameRect.width(); } in width()
69 LayoutUnit height() const { return m_frameRect.height(); } in height()
71 void setX(LayoutUnit x) { ASSERT(!isInPlacedTree()); m_frameRect.setX(x); } in setX()
72 void setY(LayoutUnit y) { ASSERT(!isInPlacedTree()); m_frameRect.setY(y); } in setY()
73 void setWidth(LayoutUnit width) { ASSERT(!isInPlacedTree()); m_frameRect.setWidth(width); } in setWidth()
74 void setHeight(LayoutUnit height) { ASSERT(!isInPlacedTree()); m_frameRect.setHeight(height); } in setHeight()
[all …]
DRenderOverflow.h53 void setMinYLayoutOverflow(LayoutUnit overflow) { m_layoutOverflow.setY(overflow); } in setMinYLayoutOverflow()
54 …void setMaxYLayoutOverflow(LayoutUnit overflow) { m_layoutOverflow.setHeight(overflow - m_layoutOv… in setMaxYLayoutOverflow()
55 void setMinXLayoutOverflow(LayoutUnit overflow) { m_layoutOverflow.setX(overflow); } in setMinXLayoutOverflow()
56 …void setMaxXLayoutOverflow(LayoutUnit overflow) { m_layoutOverflow.setWidth(overflow - m_layoutOve… in setMaxXLayoutOverflow()
58 void setMinYVisualOverflow(LayoutUnit overflow) { m_visualOverflow.setY(overflow); } in setMinYVisualOverflow()
59 …void setMaxYVisualOverflow(LayoutUnit overflow) { m_visualOverflow.setHeight(overflow - m_layoutOv… in setMaxYVisualOverflow()
60 void setMinXVisualOverflow(LayoutUnit overflow) { m_visualOverflow.setX(overflow); } in setMinXVisualOverflow()
61 …void setMaxXVisualOverflow(LayoutUnit overflow) { m_visualOverflow.setWidth(overflow - m_layoutOve… in setMaxXVisualOverflow()
63 void move(LayoutUnit dx, LayoutUnit dy);
72 LayoutUnit layoutClientAfterEdge() const { return m_layoutClientAfterEdge; } in layoutClientAfterEdge()
[all …]
DColumnInfo.h52 LayoutUnit desiredColumnWidth() const { return m_desiredColumnWidth; } in desiredColumnWidth()
53 void setDesiredColumnWidth(LayoutUnit width) { m_desiredColumnWidth = width; } in setDesiredColumnWidth()
67 LayoutUnit columnHeight() const { return m_columnHeight; } in columnHeight()
71 void setColumnCountAndHeight(int count, LayoutUnit height) in setColumnCountAndHeight()
76 void setColumnHeight(LayoutUnit height) { m_columnHeight = height; } in setColumnHeight()
78 …void updateMinimumColumnHeight(LayoutUnit height) { m_minimumColumnHeight = std::max(height, m_min… in updateMinimumColumnHeight()
79 LayoutUnit minimumColumnHeight() const { return m_minimumColumnHeight; } in minimumColumnHeight()
82 LayoutUnit forcedBreakOffset() const { return m_forcedBreakOffset; } in forcedBreakOffset()
83LayoutUnit maximumDistanceBetweenForcedBreaks() const { return m_maximumDistanceBetweenForcedBreak… in maximumDistanceBetweenForcedBreaks()
90 void addForcedBreak(LayoutUnit offsetFromFirstPage) in addForcedBreak()
[all …]
DRenderBlockFlow.cpp56 LayoutUnit margins[2];
59 COMPILE_ASSERT(sizeof(RenderBlockFlow::MarginValues) == sizeof(LayoutUnit[4]), MarginValues_should_…
90 LayoutUnit m_positiveMargin;
91 LayoutUnit m_negativeMargin;
94 MarginInfo(RenderBlockFlow*, LayoutUnit beforeBorderPadding, LayoutUnit afterBorderPadding);
106 void setPositiveMargin(LayoutUnit p) { ASSERT(!m_discardMargin); m_positiveMargin = p; } in setPositiveMargin()
107 void setNegativeMargin(LayoutUnit n) { ASSERT(!m_discardMargin); m_negativeMargin = n; } in setNegativeMargin()
108 void setPositiveMarginIfLarger(LayoutUnit p) in setPositiveMarginIfLarger()
114 void setNegativeMarginIfLarger(LayoutUnit n) in setNegativeMarginIfLarger()
121 …void setMargin(LayoutUnit p, LayoutUnit n) { ASSERT(!m_discardMargin); m_positiveMargin = p; m_neg… in setMargin()
[all …]
DRenderGrid.h50 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) OVERRIDE;
57 const Vector<LayoutUnit>& columnPositions() const { return m_columnPositions; } in columnPositions()
58 const Vector<LayoutUnit>& rowPositions() const { return m_rowPositions; } in rowPositions()
62 …virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidt…
76 …void computedUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData&, LayoutUnit& availa…
77 LayoutUnit computeUsedBreadthOfMinLength(GridTrackSizingDirection, const GridLength&) const;
78LayoutUnit computeUsedBreadthOfMaxLength(GridTrackSizingDirection, const GridLength&, LayoutUnit u…
79 LayoutUnit computeUsedBreadthOfSpecifiedLength(GridTrackSizingDirection, const Length&) const;
80 …ntBasedTrackSizingFunctions(GridTrackSizingDirection, GridSizingData&, LayoutUnit& availableLogica…
98 …typedef LayoutUnit (RenderGrid::* SizingFunction)(RenderBox*, GridTrackSizingDirection, Vector<Gri…
[all …]
DRenderFieldset.cpp71 LayoutUnit logicalLeft; in layoutSpecialExcludedChild()
92 LayoutUnit centeredWidth = logicalWidth() - logicalWidthForChild(legend); in layoutSpecialExcludedChild()
104 LayoutUnit fieldsetBorderBefore = borderBefore(); in layoutSpecialExcludedChild()
105 LayoutUnit legendLogicalHeight = logicalHeightForChild(legend); in layoutSpecialExcludedChild()
107 LayoutUnit legendLogicalTop; in layoutSpecialExcludedChild()
108 LayoutUnit collapsedLegendExtent; in layoutSpecialExcludedChild()
116 …collapsedLegendExtent = max<LayoutUnit>(fieldsetBorderBefore, legendLogicalTop + legendLogicalHeig… in layoutSpecialExcludedChild()
152 LayoutUnit yOff = (legend->y() > 0) ? LayoutUnit() : (legend->height() - borderTop()) / 2; in paintBoxDecorations()
156 LayoutUnit xOff = (legend->x() > 0) ? LayoutUnit() : (legend->width() - borderLeft()) / 2; in paintBoxDecorations()
177 LayoutUnit clipTop = paintRect.y(); in paintBoxDecorations()
[all …]
DRenderRegion.h73 …rBoxRegionInfo* setRenderBoxRegionInfo(const RenderBox*, LayoutUnit logicalLeftInset, LayoutUnit l…
91 virtual LayoutUnit pageLogicalWidth() const;
92 virtual LayoutUnit pageLogicalHeight() const;
93 virtual LayoutUnit maxPageLogicalHeight() const;
95 LayoutUnit logicalTopOfFlowThreadContentRect(const LayoutRect&) const;
96 LayoutUnit logicalBottomOfFlowThreadContentRect(const LayoutRect&) const;
97LayoutUnit logicalTopForFlowThreadContent() const { return logicalTopOfFlowThreadContentRect(flowT… in logicalTopForFlowThreadContent()
98LayoutUnit logicalBottomForFlowThreadContent() const { return logicalBottomOfFlowThreadContentRect… in logicalBottomForFlowThreadContent()
105 virtual LayoutUnit logicalHeightOfAllFlowThreadContent() const;
109 const LayoutUnit& computedAutoHeight() const in computedAutoHeight()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/geometry/
DLayoutBoxExtent.h44 LayoutBoxExtent(LayoutUnit top, LayoutUnit right, LayoutUnit bottom, LayoutUnit left) in LayoutBoxExtent()
47 inline LayoutUnit top() const { return m_top; } in top()
48 inline LayoutUnit right() const { return m_right; } in right()
49 inline LayoutUnit bottom() const { return m_bottom; } in bottom()
50 inline LayoutUnit left() const { return m_left; } in left()
52 inline void setTop(LayoutUnit value) { m_top = value; } in setTop()
53 inline void setRight(LayoutUnit value) { m_right = value; } in setRight()
54 inline void setBottom(LayoutUnit value) { m_bottom = value; } in setBottom()
55 inline void setLeft(LayoutUnit value) { m_left = value; } in setLeft()
57 LayoutUnit logicalTop(WritingMode) const;
[all …]
DLayoutRect.h48 LayoutRect(LayoutUnit x, LayoutUnit y, LayoutUnit width, LayoutUnit height) in LayoutRect()
65 LayoutUnit x() const { return m_location.x(); } in x()
66 LayoutUnit y() const { return m_location.y(); } in y()
67 LayoutUnit maxX() const { return x() + width(); } in maxX()
68 LayoutUnit maxY() const { return y() + height(); } in maxY()
69 LayoutUnit width() const { return m_size.width(); } in width()
70 LayoutUnit height() const { return m_size.height(); } in height()
79 void setX(LayoutUnit x) { m_location.setX(x); } in setX()
80 void setY(LayoutUnit y) { m_location.setY(y); } in setY()
81 void setWidth(LayoutUnit width) { m_size.setWidth(width); } in setWidth()
[all …]
DLayoutBoxExtent.cpp38 LayoutUnit LayoutBoxExtent::logicalTop(WritingMode writingMode) const in logicalTop()
43 LayoutUnit LayoutBoxExtent::logicalBottom(WritingMode writingMode) const in logicalBottom()
48 LayoutUnit LayoutBoxExtent::logicalLeft(WritingMode writingMode) const in logicalLeft()
53 LayoutUnit LayoutBoxExtent::logicalRight(WritingMode writingMode) const in logicalRight()
58 LayoutUnit LayoutBoxExtent::before(WritingMode writingMode) const in before()
74 LayoutUnit LayoutBoxExtent::after(WritingMode writingMode) const in after()
90 LayoutUnit LayoutBoxExtent::start(WritingMode writingMode, TextDirection direction) const in start()
97 LayoutUnit LayoutBoxExtent::end(WritingMode writingMode, TextDirection direction) const in end()
104 void LayoutBoxExtent::setBefore(WritingMode writingMode, LayoutUnit value) in setBefore()
125 void LayoutBoxExtent::setAfter(WritingMode writingMode, LayoutUnit value) in setAfter()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/
DShapeInfo.h71 void setShapeSize(LayoutUnit logicalWidth, LayoutUnit logicalHeight) in setShapeSize()
102 SegmentList computeSegmentsForLine(LayoutUnit lineTop, LayoutUnit lineHeight) const;
104LayoutUnit shapeLogicalTop() const { return computedShapeLogicalBoundingBox().y() + logicalTopOffs… in shapeLogicalTop()
105LayoutUnit shapeLogicalBottom() const { return computedShapeLogicalBoundingBox().maxY() + logicalT… in shapeLogicalBottom()
106LayoutUnit shapeLogicalLeft() const { return computedShapeLogicalBoundingBox().x() + logicalLeftOf… in shapeLogicalLeft()
107LayoutUnit shapeLogicalRight() const { return computedShapeLogicalBoundingBox().maxX() + logicalLe… in shapeLogicalRight()
108 LayoutUnit shapeLogicalWidth() const { return computedShapeLogicalBoundingBox().width(); } in shapeLogicalWidth()
109 LayoutUnit shapeLogicalHeight() const { return computedShapeLogicalBoundingBox().height(); } in shapeLogicalHeight()
111 LayoutUnit logicalLineTop() const { return m_shapeLineTop + logicalTopOffset(); } in logicalLineTop()
112LayoutUnit logicalLineBottom() const { return m_shapeLineTop + m_lineHeight + logicalTopOffset(); } in logicalLineBottom()
[all …]
DShapeOutsideInfo.cpp58 …Flow* containingBlock, const FloatingObject* floatingObject, LayoutUnit lineTop, LayoutUnit lineHe… in updateDeltasForContainingBlockLine()
60LayoutUnit shapeTop = containingBlock->logicalTopForFloat(floatingObject) + std::max(LayoutUnit(),… in updateDeltasForContainingBlockLine()
61 LayoutUnit floatRelativeLineTop = lineTop - shapeTop; in updateDeltasForContainingBlockLine()
68 LayoutUnit floatMarginBoxWidth = containingBlock->logicalWidthForFloat(floatingObject); in updateDeltasForContainingBlockLine()
73LayoutUnit rawLeftMarginBoxDelta = segments.first().logicalLeft + containingBlock->marginStartForC… in updateDeltasForContainingBlockLine()
74 …m_leftMarginBoxDelta = clampTo<LayoutUnit>(rawLeftMarginBoxDelta, LayoutUnit(), floatMarginBoxWidt… in updateDeltasForContainingBlockLine()
76LayoutUnit rawRightMarginBoxDelta = segments.last().logicalRight - containingBlock->logicalWidthFo… in updateDeltasForContainingBlockLine()
77 …m_rightMarginBoxDelta = clampTo<LayoutUnit>(rawRightMarginBoxDelta, -floatMarginBoxWidth, LayoutUn… in updateDeltasForContainingBlockLine()

12345678