result.translate(tx, ty);
return result;
}
public Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) {
BorderPropertySet border = getBorder(cssCtx);
RectPropertySet padding = getPadding(cssCtx);
float marginLeft = 0;
float marginRight = 0;
float borderLeft = 0;
float borderRight = 0;
float paddingLeft = 0;
float paddingRight = 0;
if (_startsHere || _endsHere) {
RectPropertySet margin = (RectPropertySet)getMargin(cssCtx);
if (_startsHere) {
marginLeft = margin.left();
borderLeft = border.left();
paddingLeft = padding.left();
}
if (_endsHere) {
marginRight = margin.right();
borderRight = border.right();
paddingRight = padding.right();
}
}
Rectangle result = new Rectangle(
(int)(left + marginLeft + borderLeft + paddingLeft),
(int)(top - border.top() - padding.top()),
(int)(getInlineWidth(cssCtx) - marginLeft - borderLeft - paddingLeft
- paddingRight - borderRight - marginRight),
getHeight());
return result;
}