Searched refs:snapSizeToPixel (Results 1 – 6 of 6) sorted by relevance
/external/chromium_org/third_party/WebKit/Source/platform/ |
D | LayoutUnitTest.cpp | 109 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 …]
|
D | LayoutUnit.h | 762 inline int snapSizeToPixel(LayoutUnit size, LayoutUnit location) in snapSizeToPixel() function
|
/external/chromium_org/third_party/WebKit/Source/platform/geometry/ |
D | LayoutRect.h | 60 …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()
|
D | LayoutPoint.h | 183 return IntSize(snapSizeToPixel(s.width(), p.x()), snapSizeToPixel(s.height(), p.y())); in pixelSnappedIntSize()
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
D | RenderBox.cpp | 348 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()
|
D | RenderBoxModelObject.cpp | 417 return snapSizeToPixel(offsetWidth(), offsetLeft()); in pixelSnappedOffsetWidth() 422 return snapSizeToPixel(offsetHeight(), offsetTop()); in pixelSnappedOffsetHeight()
|