Searched refs:snapSizeToPixel (Results 1 – 8 of 8) 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 | 755 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 | RenderBoxModelObject.cpp | 298 return snapSizeToPixel(offsetWidth(), offsetLeft()); in pixelSnappedOffsetWidth() 303 return snapSizeToPixel(offsetHeight(), offsetTop()); in pixelSnappedOffsetHeight()
|
D | RenderLayerScrollableArea.cpp | 544 return snapSizeToPixel(scrollWidth(), box().clientLeft() + box().x()); in pixelSnappedScrollWidth() 549 return snapSizeToPixel(scrollHeight(), box().clientTop() + box().y()); in pixelSnappedScrollHeight()
|
D | RenderBox.cpp | 331 return snapSizeToPixel(clientWidth(), x() + clientLeft()); in pixelSnappedClientWidth() 336 return snapSizeToPixel(clientHeight(), y() + clientTop()); in pixelSnappedClientHeight() 341 return snapSizeToPixel(offsetWidth(), x() + clientLeft()); in pixelSnappedOffsetWidth() 346 return snapSizeToPixel(offsetHeight(), y() + clientTop()); in pixelSnappedOffsetHeight() 381 return snapSizeToPixel(scrollWidth(), x() + clientLeft()); in pixelSnappedScrollWidth() 390 return snapSizeToPixel(scrollHeight(), y() + clientTop()); in pixelSnappedScrollHeight()
|
D | RenderBlock.cpp | 2006 snapSizeToPixel(rect.height(), rect.y())); in alignSelectionRectToDevicePixels()
|