/external/chromium_org/third_party/WebKit/Source/platform/ |
LayoutUnitTest.cpp | 32 #include "platform/LayoutUnit.h" 43 ASSERT_EQ(LayoutUnit(INT_MIN).toInt(), intMinForLayoutUnit); 44 ASSERT_EQ(LayoutUnit(INT_MIN / 2).toInt(), intMinForLayoutUnit); 45 ASSERT_EQ(LayoutUnit(intMinForLayoutUnit - 1).toInt(), intMinForLayoutUnit); 46 ASSERT_EQ(LayoutUnit(intMinForLayoutUnit).toInt(), intMinForLayoutUnit); 47 ASSERT_EQ(LayoutUnit(intMinForLayoutUnit + 1).toInt(), intMinForLayoutUnit + 1); 48 ASSERT_EQ(LayoutUnit(intMinForLayoutUnit / 2).toInt(), intMinForLayoutUnit / 2); 49 ASSERT_EQ(LayoutUnit(-10000).toInt(), -10000); 50 ASSERT_EQ(LayoutUnit(-1000).toInt(), -1000); 51 ASSERT_EQ(LayoutUnit(-100).toInt(), -100) [all...] |
LengthFunctions.h | 32 class LayoutUnit; 36 PLATFORM_EXPORT int intValueForLength(const Length&, LayoutUnit maximumValue); 38 PLATFORM_EXPORT LayoutUnit minimumValueForLength(const Length&, LayoutUnit maximumValue); 39 PLATFORM_EXPORT LayoutUnit roundedMinimumValueForLength(const Length&, LayoutUnit maximumValue); 40 PLATFORM_EXPORT LayoutUnit valueForLength(const Length&, LayoutUnit maximumValue);
|
LayoutUnit.h | 63 class LayoutUnit { 65 LayoutUnit() : m_value(0) { } 66 LayoutUnit(int value) { setValue(value); } 67 LayoutUnit(unsigned short value) { setValue(value); } 68 LayoutUnit(unsigned value) { setValue(value); } 69 LayoutUnit(unsigned long value) { m_value = clampTo<int>(value * kFixedPointDenominator); } 70 LayoutUnit(unsigned long long value) { m_value = clampTo<int>(value * kFixedPointDenominator); } 71 LayoutUnit(float value) { m_value = clampTo<float>(value * kFixedPointDenominator, static_cast<float>(INT_MIN), static_cast<float>(INT_MAX)); } 72 LayoutUnit(double value) { m_value = clampTo<double>(value * kFixedPointDenominator, static_cast<double>(INT_MIN), static_cast<double>(INT_MAX)); } 74 static LayoutUnit fromFloatCeil(float value [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/geometry/ |
LayoutBoxExtent.h | 34 #include "platform/LayoutUnit.h" 44 LayoutBoxExtent(LayoutUnit top, LayoutUnit right, LayoutUnit bottom, LayoutUnit left) 47 inline LayoutUnit top() const { return m_top; } 48 inline LayoutUnit right() const { return m_right; } 49 inline LayoutUnit bottom() const { return m_bottom; } 50 inline LayoutUnit left() const { return m_left; } 52 inline void setTop(LayoutUnit value) { m_top = value; [all...] |
LayoutRect.h | 48 LayoutRect(LayoutUnit x, LayoutUnit y, LayoutUnit width, LayoutUnit height) 65 ALWAYS_INLINE LayoutUnit x() const { return m_location.x(); } 66 ALWAYS_INLINE LayoutUnit y() const { return m_location.y(); } 67 ALWAYS_INLINE LayoutUnit maxX() const { return x() + width(); } 68 ALWAYS_INLINE LayoutUnit maxY() const { return y() + height(); } 69 LayoutUnit width() const { return m_size.width(); } 70 LayoutUnit height() const { return m_size.height(); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
RenderScrollbarPart.h | 51 virtual LayoutUnit marginTop() const OVERRIDE { ASSERT(isIntegerValue(m_marginBox.top())); return m_marginBox.top(); } 52 virtual LayoutUnit marginBottom() const OVERRIDE { ASSERT(isIntegerValue(m_marginBox.bottom())); return m_marginBox.bottom(); } 53 virtual LayoutUnit marginLeft() const OVERRIDE { ASSERT(isIntegerValue(m_marginBox.left())); return m_marginBox.left(); } 54 virtual LayoutUnit marginRight() const OVERRIDE { ASSERT(isIntegerValue(m_marginBox.right())); return m_marginBox.right(); } 73 virtual LayoutUnit paddingTop() const OVERRIDE { return LayoutUnit(); } 74 virtual LayoutUnit paddingBottom() const OVERRIDE { return LayoutUnit(); } 75 virtual LayoutUnit paddingLeft() const OVERRIDE { return LayoutUnit(); } [all...] |
TableLayout.h | 29 class LayoutUnit; 42 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) = 0; 43 virtual void applyPreferredLogicalWidthQuirks(LayoutUnit& minWidth, LayoutUnit& maxWidth) const = 0; 48 // FIXME: Once we enable SATURATED_LAYOUT_ARITHMETHIC, this should just be LayoutUnit::nearlyMax().
|
RenderVTTCue.h | 47 bool shouldSwitchDirection(InlineFlowBox*, LayoutUnit) const; 49 void moveBoxesByStep(LayoutUnit); 50 bool switchDirection(bool&, LayoutUnit&); 53 bool initializeLayoutParameters(InlineFlowBox*, LayoutUnit&, LayoutUnit&); 54 void placeBoxInDefaultPosition(LayoutUnit, bool&);
|
RenderMultiColumnSet.h | 61 virtual LayoutUnit pageLogicalWidth() const OVERRIDE FINAL { return flowThread()->logicalWidth(); } 62 virtual LayoutUnit pageLogicalHeight() const OVERRIDE FINAL { return m_columnHeight; } 74 LayoutUnit logicalTopInFlowThread() const { return isHorizontalWritingMode() ? flowThreadPortionRect().y() : flowThreadPortionRect().x(); } 75 LayoutUnit logicalBottomInFlowThread() const { return isHorizontalWritingMode() ? flowThreadPortionRect().maxY() : flowThreadPortionRect().maxX(); } 77 LayoutUnit logicalHeightInFlowThread() const { return isHorizontalWritingMode() ? flowThreadPortionRect().height() : flowThreadPortionRect().width(); } 84 LayoutSize flowThreadTranslationAtOffset(LayoutUnit) const; 86 LayoutUnit heightAdjustedForSetOffset(LayoutUnit height) const; 88 void updateMinimumColumnHeight(LayoutUnit height) { m_minimumColumnHeight = std::max(height, m_minimumColumnHeight); } 89 LayoutUnit minimumColumnHeight() const { return m_minimumColumnHeight; [all...] |
ColumnInfo.h | 29 #include "platform/LayoutUnit.h" 50 LayoutUnit desiredColumnWidth() const { return m_desiredColumnWidth; } 51 void setDesiredColumnWidth(LayoutUnit width) { m_desiredColumnWidth = width; } 62 LayoutUnit columnHeight() const { return m_columnHeight; } 66 void setColumnCountAndHeight(int count, LayoutUnit height) 71 void setColumnHeight(LayoutUnit height) { m_columnHeight = height; } 73 void updateMinimumColumnHeight(LayoutUnit height) { m_minimumColumnHeight = std::max(height, m_minimumColumnHeight); } 74 LayoutUnit minimumColumnHeight() const { return m_minimumColumnHeight; } 77 LayoutUnit forcedBreakOffset() const { return m_forcedBreakOffset; } 78 LayoutUnit maximumDistanceBetweenForcedBreaks() const { return m_maximumDistanceBetweenForcedBreaks; [all...] |
FixedTableLayout.h | 36 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minWidth, LayoutUnit& maxWidth) OVERRIDE; 37 virtual void applyPreferredLogicalWidthQuirks(LayoutUnit& minWidth, LayoutUnit& maxWidth) const OVERRIDE;
|
RenderSearchField.h | 40 virtual LayoutUnit computeControlLogicalHeight(LayoutUnit lineHeight, LayoutUnit nonContentHeight) const OVERRIDE; 41 virtual LayoutUnit computeLogicalHeightLimit() const OVERRIDE;
|
RenderBlockFlow.h | 62 virtual void computeOverflow(LayoutUnit oldClientAfterEdge, bool recomputeFloats = false) OVERRIDE; 65 LayoutUnit availableLogicalWidthForLine(LayoutUnit position, bool shouldIndentText, LayoutUnit logicalHeight = 0) const 67 return max<LayoutUnit>(0, logicalRightOffsetForLine(position, shouldIndentText, logicalHeight) - logicalLeftOffsetForLine(position, shouldIndentText, logicalHeight)); 69 LayoutUnit logicalRightOffsetForLine(LayoutUnit position, bool shouldIndentText, LayoutUnit logicalHeight = 0) const 73 LayoutUnit logicalLeftOffsetForLine(LayoutUnit position, bool shouldIndentText, LayoutUnit logicalHeight = 0) cons [all...] |
RenderFlexibleBox.h | 62 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const OVERRIDE; 78 typedef HashMap<const RenderBox*, LayoutUnit> InflexibleFlexItemSize; 92 LayoutUnit crossAxisExtentForChild(RenderBox* child) const; 93 LayoutUnit crossAxisIntrinsicExtentForChild(RenderBox* child) const; 94 LayoutUnit childIntrinsicHeight(RenderBox* child) const; 95 LayoutUnit childIntrinsicWidth(RenderBox* child) const; 96 LayoutUnit mainAxisExtentForChild(RenderBox* child) const; 97 LayoutUnit crossAxisExtent() const; 98 LayoutUnit mainAxisExtent() const [all...] |
RenderMultiColumnFlowThread.h | 112 LayoutUnit columnHeightAvailable() const { return m_columnHeightAvailable; } 113 void setColumnHeightAvailable(LayoutUnit available) { m_columnHeightAvailable = available; } 128 void calculateColumnCountAndWidth(LayoutUnit& width, unsigned& count) const; 133 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const OVERRIDE; 136 virtual void setPageBreak(LayoutUnit offset, LayoutUnit spaceShortage) OVERRIDE; 137 virtual void updateMinimumPageHeight(LayoutUnit offset, LayoutUnit minHeight) OVERRIDE; 138 virtual RenderRegion* regionAtBlockOffset(LayoutUnit) const OVERRIDE [all...] |
RenderFlowThread.h | 74 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const OVERRIDE; 86 LayoutUnit pageLogicalTopForOffset(LayoutUnit); 87 LayoutUnit pageLogicalHeightForOffset(LayoutUnit); 88 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule = IncludePageBoundary); 90 virtual void setPageBreak(LayoutUnit /*offset*/, LayoutUnit /*spaceShortage*/) { [all...] |
RootInlineBox.h | 51 LayoutUnit lineTop() const { return m_lineTop; } 52 LayoutUnit lineBottom() const { return m_lineBottom; } 54 LayoutUnit lineTopWithLeading() const { return m_lineTopWithLeading; } 55 LayoutUnit lineBottomWithLeading() const { return m_lineBottomWithLeading; } 57 LayoutUnit paginationStrut() const { return m_fragmentationData ? m_fragmentationData->m_paginationStrut : LayoutUnit(0); } 58 void setPaginationStrut(LayoutUnit strut) { ensureLineFragmentationData()->m_paginationStrut = strut; } 63 LayoutUnit paginatedLineWidth() const { return m_fragmentationData ? m_fragmentationData->m_paginatedLineWidth : LayoutUnit(0); } 64 void setPaginatedLineWidth(LayoutUnit width) { ensureLineFragmentationData()->m_paginatedLineWidth = width; [all...] |
RenderRegion.h | 67 virtual LayoutUnit pageLogicalWidth() const; 68 virtual LayoutUnit pageLogicalHeight() const; 70 LayoutUnit logicalTopOfFlowThreadContentRect(const LayoutRect&) const; 71 LayoutUnit logicalBottomOfFlowThreadContentRect(const LayoutRect&) const; 72 LayoutUnit logicalTopForFlowThreadContent() const { return logicalTopOfFlowThreadContentRect(flowThreadPortionRect()); }; 73 LayoutUnit logicalBottomForFlowThreadContent() const { return logicalBottomOfFlowThreadContentRect(flowThreadPortionRect()); }; 78 virtual LayoutUnit logicalHeightOfAllFlowThreadContent() const; 83 virtual LayoutUnit pageLogicalTopForOffset(LayoutUnit offset) const; 95 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const OVERRIDE FINAL [all...] |
RenderGrid.h | 53 const Vector<LayoutUnit>& columnPositions() const { return m_columnPositions; } 54 const Vector<LayoutUnit>& rowPositions() const { return m_rowPositions; } 58 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const OVERRIDE; 74 void computeUsedBreadthOfGridTracks(GridTrackSizingDirection, GridSizingData&, LayoutUnit& availableLogicalSpace); 75 LayoutUnit computeUsedBreadthOfMinLength(GridTrackSizingDirection, const GridLength&) const; 76 LayoutUnit computeUsedBreadthOfMaxLength(GridTrackSizingDirection, const GridLength&, LayoutUnit usedBreadth) const; 77 LayoutUnit computeUsedBreadthOfSpecifiedLength(GridTrackSizingDirection, const Length&) const; 78 void resolveContentBasedTrackSizingFunctions(GridTrackSizingDirection, GridSizingData&, LayoutUnit& availableLogicalSpace) [all...] |
RenderVideo.h | 66 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = ComputeActual) const OVERRIDE; 67 virtual LayoutUnit computeReplacedLogicalHeight() const OVERRIDE; 68 virtual LayoutUnit minimumReplacedHeight() const OVERRIDE; 70 virtual LayoutUnit offsetLeft() const OVERRIDE; 71 virtual LayoutUnit offsetTop() const OVERRIDE; 72 virtual LayoutUnit offsetWidth() const OVERRIDE; 73 virtual LayoutUnit offsetHeight() const OVERRIDE;
|
RenderBox.h | 63 LayoutUnit m_overrideLogicalContentHeight; 64 LayoutUnit m_overrideLogicalContentWidth; 90 LayoutUnit x() const { return m_frameRect.x(); } 91 LayoutUnit y() const { return m_frameRect.y(); } 92 LayoutUnit width() const { return m_frameRect.width(); } 93 LayoutUnit height() const { return m_frameRect.height(); } 100 LayoutUnit top() const { return topLeftLocation().y(); } 101 LayoutUnit left() const { return topLeftLocation().x(); } 103 void setX(LayoutUnit x) { m_frameRect.setX(x); } 104 void setY(LayoutUnit y) { m_frameRect.setY(y); [all...] |
RenderTextControlSingleLine.h | 44 virtual LayoutUnit computeLogicalHeightLimit() const; 62 virtual LayoutUnit scrollLeft() const OVERRIDE FINAL; 63 virtual LayoutUnit scrollTop() const OVERRIDE FINAL; 64 virtual LayoutUnit scrollWidth() const OVERRIDE FINAL; 65 virtual LayoutUnit scrollHeight() const OVERRIDE FINAL; 66 virtual void setScrollLeft(LayoutUnit) OVERRIDE FINAL; 67 virtual void setScrollTop(LayoutUnit) OVERRIDE FINAL; 71 virtual LayoutUnit preferredContentLogicalWidth(float charWidth) const OVERRIDE FINAL; 72 virtual LayoutUnit computeControlLogicalHeight(LayoutUnit lineHeight, LayoutUnit nonContentHeight) const OVERRIDE [all...] |
RenderBlock.h | 87 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const OVERRIDE FINAL; 90 LayoutUnit minLineHeightForReplacedRenderer(bool isFirstLine, LayoutUnit replacedHeight) const; 150 LayoutUnit textIndentOffset() const; 155 virtual LayoutUnit availableLogicalWidth() const OVERRIDE FINAL; 160 LayoutUnit blockDirectionOffset(const LayoutSize& offsetFromBlock) const; 161 LayoutUnit inlineDirectionOffset(const LayoutSize& offsetFromBlock) const; 169 RenderObject* selObj, LayoutUnit logicalLeft, LayoutUnit logicalTop, LayoutUnit logicalHeight, const PaintInfo*) [all...] |
LayoutState.h | 45 LayoutState(LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged, RenderView&); 49 LayoutState(RenderBox&, const LayoutSize& offset, LayoutUnit pageLogicalHeight = 0, bool pageHeightLogicalChanged = false, ColumnInfo* = 0); 60 LayoutUnit pageLogicalOffset(const RenderBox&, const LayoutUnit& childLogicalOffset) const; 62 void addForcedColumnBreak(const RenderBox&, const LayoutUnit& childLogicalOffset); 68 m_layoutDeltaXSaturated |= m_layoutDelta.width() == LayoutUnit::max() || m_layoutDelta.width() == LayoutUnit::min(); 69 m_layoutDeltaYSaturated |= m_layoutDelta.height() == LayoutUnit::max() || m_layoutDelta.height() == LayoutUnit::min(); 78 LayoutUnit pageLogicalHeight() const { return m_pageLogicalHeight; [all...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/ |
ShapeOutsideInfo.h | 52 SegmentList computeSegmentsForLine(LayoutUnit lineTop, LayoutUnit lineHeight) const; 54 LayoutUnit shapeLogicalTop() const { return computedShape().shapeMarginLogicalBoundingBox().y() + logicalTopOffset(); } 55 LayoutUnit shapeLogicalBottom() const { return computedShape().shapeMarginLogicalBoundingBox().maxY() + logicalTopOffset(); } 56 LayoutUnit shapeLogicalLeft() const { return computedShape().shapeMarginLogicalBoundingBox().x() + logicalLeftOffset(); } 57 LayoutUnit shapeLogicalRight() const { return computedShape().shapeMarginLogicalBoundingBox().maxX() + logicalLeftOffset(); } 58 LayoutUnit shapeLogicalWidth() const { return computedShape().shapeMarginLogicalBoundingBox().width(); } 59 LayoutUnit shapeLogicalHeight() const { return computedShape().shapeMarginLogicalBoundingBox().height(); } 61 LayoutUnit logicalLineTop() const { return m_referenceBoxLineTop + logicalTopOffset(); } 62 LayoutUnit logicalLineBottom() const { return m_referenceBoxLineTop + m_lineHeight + logicalTopOffset(); [all...] |