Home
last modified time | relevance | path

Searched refs:snapSizeToPixel (Results 1 – 6 of 6) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/platform/
DLayoutUnitTest.cpp109 ASSERT_EQ(snapSizeToPixel(LayoutUnit(1), LayoutUnit(0)), 1); in TEST()
110 ASSERT_EQ(snapSizeToPixel(LayoutUnit(1), LayoutUnit(0.5)), 1); in TEST()
111 ASSERT_EQ(snapSizeToPixel(LayoutUnit(1.5), LayoutUnit(0)), 2); in TEST()
112 ASSERT_EQ(snapSizeToPixel(LayoutUnit(1.5), LayoutUnit(0.49)), 2); in TEST()
113 ASSERT_EQ(snapSizeToPixel(LayoutUnit(1.5), LayoutUnit(0.5)), 1); in TEST()
114 ASSERT_EQ(snapSizeToPixel(LayoutUnit(1.5), LayoutUnit(0.75)), 1); in TEST()
115 ASSERT_EQ(snapSizeToPixel(LayoutUnit(1.5), LayoutUnit(0.99)), 1); in TEST()
116 ASSERT_EQ(snapSizeToPixel(LayoutUnit(1.5), LayoutUnit(1)), 2); in TEST()
118 ASSERT_EQ(snapSizeToPixel(LayoutUnit(0.5), LayoutUnit(1.5)), 0); in TEST()
119 ASSERT_EQ(snapSizeToPixel(LayoutUnit(0.99), LayoutUnit(1.5)), 0); in TEST()
[all …]
DLayoutUnit.h762 inline int snapSizeToPixel(LayoutUnit size, LayoutUnit location) in snapSizeToPixel() function
/external/chromium_org/third_party/WebKit/Source/platform/geometry/
DLayoutRect.h60 …e pixelSnappedSize() const { return IntSize(snapSizeToPixel(m_size.width(), m_location.x()), snapS… in pixelSnappedSize()
74 int pixelSnappedWidth() const { return snapSizeToPixel(width(), x()); } in pixelSnappedWidth()
75 int pixelSnappedHeight() const { return snapSizeToPixel(height(), y()); } in pixelSnappedHeight()
211 snapSizeToPixel(rect.width(), rect.x()), in pixelSnappedIntRect()
212 snapSizeToPixel(rect.height(), rect.y()))); in pixelSnappedIntRect()
220 …return IntRect(left.round(), top.round(), snapSizeToPixel(width, left), snapSizeToPixel(height, to… in pixelSnappedIntRect()
225 …return IntRect(left.round(), top.round(), snapSizeToPixel(right - left, left), snapSizeToPixel(bot… in pixelSnappedIntRectFromEdges()
DLayoutPoint.h183 return IntSize(snapSizeToPixel(s.width(), p.x()), snapSizeToPixel(s.height(), p.y())); in pixelSnappedIntSize()
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderBox.cpp348 return snapSizeToPixel(clientWidth(), x() + clientLeft()); in pixelSnappedClientWidth()
353 return snapSizeToPixel(clientHeight(), y() + clientTop()); in pixelSnappedClientHeight()
358 return snapSizeToPixel(offsetWidth(), x() + clientLeft()); in pixelSnappedOffsetWidth()
363 return snapSizeToPixel(offsetHeight(), y() + clientTop()); in pixelSnappedOffsetHeight()
398 return snapSizeToPixel(scrollWidth(), x() + clientLeft()); in pixelSnappedScrollWidth()
407 return snapSizeToPixel(scrollHeight(), y() + clientTop()); in pixelSnappedScrollHeight()
DRenderBoxModelObject.cpp417 return snapSizeToPixel(offsetWidth(), offsetLeft()); in pixelSnappedOffsetWidth()
422 return snapSizeToPixel(offsetHeight(), offsetTop()); in pixelSnappedOffsetHeight()