HomeSort by relevance Sort by last modified time
    Searched refs:LayoutUnit (Results 1 - 25 of 190) sorted by null

1 2 3 4 5 6 7 8

  /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...]
LayoutUnit.h 62 class LayoutUnit {
64 LayoutUnit() : m_value(0) { }
65 LayoutUnit(int value) { setValue(value); }
66 LayoutUnit(unsigned short value) { setValue(value); }
67 LayoutUnit(unsigned value) { setValue(value); }
68 LayoutUnit(unsigned long value) { m_value = clampTo<int>(value * kFixedPointDenominator); }
69 LayoutUnit(unsigned long long value) { m_value = clampTo<int>(value * kFixedPointDenominator); }
70 LayoutUnit(float value) { m_value = clampTo<float>(value * kFixedPointDenominator, static_cast<float>(INT_MIN), static_cast<float>(INT_MAX)); }
71 LayoutUnit(double value) { m_value = clampTo<double>(value * kFixedPointDenominator, static_cast<double>(INT_MIN), static_cast<double>(INT_MAX)); }
73 static LayoutUnit fromFloatCeil(float value
    [all...]
LengthFunctions.h 31 class LayoutUnit;
  /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 LayoutUnit x() const { return m_location.x(); }
66 LayoutUnit y() const { return m_location.y(); }
67 LayoutUnit maxX() const { return x() + width(); }
68 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/
RenderMultiColumnFlowThread.h 44 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const OVERRIDE;
45 virtual void autoGenerateRegionsToBlockOffset(LayoutUnit) OVERRIDE;
46 virtual LayoutUnit initialLogicalWidth() const OVERRIDE;
47 virtual void setPageBreak(LayoutUnit offset, LayoutUnit spaceShortage) OVERRIDE;
48 virtual void updateMinimumPageHeight(LayoutUnit offset, LayoutUnit minHeight) OVERRIDE;
RenderFlexibleBox.h 51 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) OVERRIDE FINAL;
62 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const OVERRIDE;
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
    [all...]
RenderBoxRegionInfo.h 30 #include "platform/LayoutUnit.h"
38 RenderBoxRegionInfo(LayoutUnit logicalLeft, LayoutUnit logicalWidth, bool isShifted)
44 LayoutUnit logicalLeft() const { return m_logicalLeft; }
45 LayoutUnit logicalWidth() const { return m_logicalWidth; }
47 void shiftLogicalLeft(LayoutUnit delta) { m_logicalLeft += delta; m_isShifted = true; }
52 LayoutUnit m_logicalLeft;
53 LayoutUnit m_logicalWidth;
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 48 bool shouldSwitchDirection(InlineFlowBox*, LayoutUnit) const;
50 void moveBoxesByStep(LayoutUnit);
51 bool switchDirection(bool&, LayoutUnit&);
54 bool initializeLayoutParameters(InlineFlowBox*, LayoutUnit&, LayoutUnit&);
55 void placeBoxInDefaultPosition(LayoutUnit, bool&);
RenderMultiColumnSet.h 51 LayoutUnit computedColumnWidth() const { return m_computedColumnWidth; }
52 LayoutUnit computedColumnHeight() const { return m_computedColumnHeight; }
54 void setComputedColumnWidthAndCount(LayoutUnit width, unsigned count)
60 LayoutUnit heightAdjustedForSetOffset(LayoutUnit height) const;
62 void updateMinimumColumnHeight(LayoutUnit height) { m_minimumColumnHeight = std::max(height, m_minimumColumnHeight); }
63 LayoutUnit minimumColumnHeight() const { return m_minimumColumnHeight; }
66 LayoutUnit forcedBreakOffset() const { return m_forcedBreakOffset; }
67 LayoutUnit maximumDistanceBetweenForcedBreaks() const { return m_maximumDistanceBetweenForcedBreaks; }
74 void addForcedBreak(LayoutUnit offsetFromFirstPage
    [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;
ColumnInfo.h 29 #include "platform/LayoutUnit.h"
52 LayoutUnit desiredColumnWidth() const { return m_desiredColumnWidth; }
53 void setDesiredColumnWidth(LayoutUnit width) { m_desiredColumnWidth = width; }
67 LayoutUnit columnHeight() const { return m_columnHeight; }
71 void setColumnCountAndHeight(int count, LayoutUnit height)
76 void setColumnHeight(LayoutUnit height) { m_columnHeight = height; }
78 void updateMinimumColumnHeight(LayoutUnit height) { m_minimumColumnHeight = std::max(height, m_minimumColumnHeight); }
79 LayoutUnit minimumColumnHeight() const { return m_minimumColumnHeight; }
82 LayoutUnit forcedBreakOffset() const { return m_forcedBreakOffset; }
83 LayoutUnit maximumDistanceBetweenForcedBreaks() const { return m_maximumDistanceBetweenForcedBreaks;
    [all...]
RootInlineBox.h 52 LayoutUnit lineTop() const { return m_lineTop; }
53 LayoutUnit lineBottom() const { return m_lineBottom; }
55 LayoutUnit lineTopWithLeading() const { return m_lineTopWithLeading; }
56 LayoutUnit lineBottomWithLeading() const { return m_lineBottomWithLeading; }
58 LayoutUnit paginationStrut() const { return m_fragmentationData ? m_fragmentationData->m_paginationStrut : LayoutUnit(0); }
59 void setPaginationStrut(LayoutUnit strut) { ensureLineFragmentationData()->m_paginationStrut = strut; }
64 LayoutUnit paginatedLineWidth() const { return m_fragmentationData ? m_fragmentationData->m_paginatedLineWidth : LayoutUnit(0); }
65 void setPaginatedLineWidth(LayoutUnit width) { ensureLineFragmentationData()->m_paginatedLineWidth = width;
    [all...]
RenderBlockFlow.h 60 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0) OVERRIDE;
62 virtual void computeOverflow(LayoutUnit oldClientAfterEdge, bool recomputeFloats = false) OVERRIDE;
75 LayoutUnit logicalTopForFloat(const FloatingObject* floatingObject) const { return isHorizontalWritingMode() ? floatingObject->y() : floatingObject->x(); }
76 LayoutUnit logicalBottomForFloat(const FloatingObject* floatingObject) const { return isHorizontalWritingMode() ? floatingObject->maxY() : floatingObject->maxX(); }
77 LayoutUnit logicalLeftForFloat(const FloatingObject* floatingObject) const { return isHorizontalWritingMode() ? floatingObject->x() : floatingObject->y(); }
78 LayoutUnit logicalRightForFloat(const FloatingObject* floatingObject) const { return isHorizontalWritingMode() ? floatingObject->maxX() : floatingObject->maxY(); }
79 LayoutUnit logicalWidthForFloat(const FloatingObject* floatingObject) const { return isHorizontalWritingMode() ? floatingObject->width() : floatingObject->height(); }
80 LayoutUnit logicalHeightForFloat(const FloatingObject* floatingObject) const { return isHorizontalWritingMode() ? floatingObject->height() : floatingObject->width(); }
88 void setLogicalTopForFloat(FloatingObject* floatingObject, LayoutUnit logicalTop)
95 void setLogicalLeftForFloat(FloatingObject* floatingObject, LayoutUnit logicalLeft
    [all...]
RenderVideo.h 68 virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = ComputeActual) const OVERRIDE;
69 virtual LayoutUnit computeReplacedLogicalHeight() const;
70 virtual LayoutUnit minimumReplacedHeight() const OVERRIDE;
72 virtual LayoutUnit offsetLeft() const;
73 virtual LayoutUnit offsetTop() const;
74 virtual LayoutUnit offsetWidth() const;
75 virtual LayoutUnit offsetHeight() const;
RenderBlock.h 95 virtual LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const OVERRIDE FINAL;
98 LayoutUnit minLineHeightForReplacedRenderer(bool isFirstLine, LayoutUnit replacedHeight) const;
111 virtual void layoutBlock(bool relayoutChildren, LayoutUnit pageLogicalHeight = 0);
157 LayoutUnit availableLogicalWidthForLineInRegion(LayoutUnit position, bool shouldIndentText, RenderRegion* region, LayoutUnit logicalHeight = 0) const
159 return max<LayoutUnit>(0, logicalRightOffsetForLineInRegion(position, shouldIndentText, region, logicalHeight)
162 LayoutUnit logicalRightOffsetForLineInRegion(LayoutUnit position, bool shouldIndentText, RenderRegion* region, LayoutUnit logicalHeight = 0) cons
    [all...]
RenderBox.h 65 LayoutUnit x() const { return m_frameRect.x(); }
66 LayoutUnit y() const { return m_frameRect.y(); }
67 LayoutUnit width() const { return m_frameRect.width(); }
68 LayoutUnit height() const { return m_frameRect.height(); }
75 LayoutUnit top() const { return topLeftLocation().y(); }
76 LayoutUnit left() const { return topLeftLocation().x(); }
78 void setX(LayoutUnit x) { m_frameRect.setX(x); }
79 void setY(LayoutUnit y) { m_frameRect.setY(y); }
80 void setWidth(LayoutUnit width) { m_frameRect.setWidth(width); }
81 void setHeight(LayoutUnit height) { m_frameRect.setHeight(height);
    [all...]
RenderFlowThread.h 80 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logicalTop, LogicalExtentComputedValues&) const OVERRIDE;
103 LayoutUnit pageLogicalTopForOffset(LayoutUnit);
104 LayoutUnit pageLogicalWidthForOffset(LayoutUnit);
105 LayoutUnit pageLogicalHeightForOffset(LayoutUnit);
106 LayoutUnit pageRemainingLogicalHeightForOffset(LayoutUnit, PageBoundaryRule = IncludePageBoundary)
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/css/
CSSLengthFunctions.h 30 class LayoutUnit;
34 int minimumIntValueForLength(const Length&, LayoutUnit maximumValue, RenderView* = 0, bool roundPercentages = false);
35 int intValueForLength(const Length&, LayoutUnit maximumValue, RenderView* = 0, bool roundPercentages = false);
36 LayoutUnit minimumValueForLength(const Length&, LayoutUnit maximumValue, RenderView* = 0, bool roundPercentages = false);
37 LayoutUnit valueForLength(const Length&, LayoutUnit maximumValue, RenderView* = 0, bool roundPercentages = false);
  /external/chromium_org/third_party/WebKit/Source/core/rendering/shapes/
ShapeOutsideInfo.h 44 LayoutUnit leftMarginBoxDelta() const { return m_leftMarginBoxDelta; }
45 LayoutUnit rightMarginBoxDelta() const { return m_rightMarginBoxDelta; }
47 void updateDeltasForContainingBlockLine(const RenderBlockFlow*, const FloatingObject*, LayoutUnit lineTop, LayoutUnit lineHeight);
60 virtual void getIntervals(LayoutUnit lineTop, LayoutUnit lineHeight, SegmentList& segments) const OVERRIDE
68 LayoutUnit m_leftMarginBoxDelta;
69 LayoutUnit m_rightMarginBoxDelta;
70 LayoutUnit m_lineTop;
BoxShape.h 49 virtual void getExcludedIntervals(LayoutUnit logicalTop, LayoutUnit logicalHeight, SegmentList&) const OVERRIDE;
50 virtual void getIncludedIntervals(LayoutUnit logicalTop, LayoutUnit logicalHeight, SegmentList&) const OVERRIDE;
51 virtual bool firstIncludedIntervalLogicalTop(LayoutUnit minLogicalIntervalTop, const LayoutSize& minLogicalIntervalSize, LayoutUnit&) const OVERRIDE;
Shape.h 72 virtual void getIncludedIntervals(LayoutUnit logicalTop, LayoutUnit logicalHeight, SegmentList&) const = 0;
73 virtual void getExcludedIntervals(LayoutUnit logicalTop, LayoutUnit logicalHeight, SegmentList&) const = 0;
74 virtual bool firstIncludedIntervalLogicalTop(LayoutUnit minLogicalIntervalTop, const LayoutSize& minLogicalIntervalSize, LayoutUnit& result) const = 0;
75 bool lineOverlapsShapeMarginBounds(LayoutUnit lineTop, LayoutUnit lineHeight) const { return lineOverlapsBoundingBox(lineTop, lineHeight, shapeMarginLogicalBoundingBox()); }
76 bool lineOverlapsShapePaddingBounds(LayoutUnit lineTop, LayoutUnit lineHeight) const { return lineOverlapsBoundingBox(lineTop, lineHeight, shapePaddingLogicalBoundin (…)
    [all...]
ShapeOutsideInfo.cpp 58 void ShapeOutsideInfo::updateDeltasForContainingBlockLine(const RenderBlockFlow* containingBlock, const FloatingObject* floatingObject, LayoutUnit lineTop, LayoutUnit lineHeight)
60 LayoutUnit shapeTop = containingBlock->logicalTopForFloat(floatingObject) + std::max(LayoutUnit(), containingBlock->marginBeforeForChild(m_renderer));
61 LayoutUnit floatRelativeLineTop = lineTop - shapeTop;
68 LayoutUnit floatMarginBoxWidth = containingBlock->logicalWidthForFloat(floatingObject);
73 LayoutUnit rawLeftMarginBoxDelta = segments.first().logicalLeft + containingBlock->marginStartForChild(m_renderer);
74 m_leftMarginBoxDelta = clampTo<LayoutUnit>(rawLeftMarginBoxDelta, LayoutUnit(), floatMarginBoxWidth);
76 LayoutUnit rawRightMarginBoxDelta = segments.last().logicalRight - containingBlock->logicalWidthForChild(m_re (…)
    [all...]

Completed in 568 milliseconds

1 2 3 4 5 6 7 8