Index: Source/core/layout/LayoutBox.h |
diff --git a/Source/core/layout/LayoutBox.h b/Source/core/layout/LayoutBox.h |
index 8274683794f22d30be248da9cad96965ad1866b4..715c79ae614e7edc037993c2095192b6d24182e3 100644 |
--- a/Source/core/layout/LayoutBox.h |
+++ b/Source/core/layout/LayoutBox.h |
@@ -157,6 +157,12 @@ public: |
void setLocation(const LayoutPoint& location) { m_frameRect.setLocation(location); } |
+ // FIXME: Currently scrollbars are using int geometry and positioned based on |
+ // pixelSnappedBorderBoxRect whose size may change when location changes because of |
+ // pixel snapping. This function is used to change location of the RenderBox outside |
+ // of RenderBox::layout(). Will remove when we use LayoutUnits for scrollbars. |
+ void setLocationAndUpdateOverflowControlsIfNeeded(const LayoutPoint&); |
+ |
void setSize(const LayoutSize& size) { m_frameRect.setSize(size); } |
void move(LayoutUnit dx, LayoutUnit dy) { m_frameRect.move(dx, dy); } |