protected void calcChildPaintingInfo( final CssContext c, final PaintingInfo result, final boolean useCache) { if (getPersistentBFC() != null) { (this).getPersistentBFC().getFloatManager().performFloatOperation( new FloatManager.FloatOperation() { public void operate(Box floater) { PaintingInfo info = floater.calcPaintingInfo(c, useCache); moveIfGreater( result.getOuterMarginCorner(), info.getOuterMarginCorner()); } }); } super.calcChildPaintingInfo(c, result, useCache); }
protected void calcChildPaintingInfo( final CssContext c, final PaintingInfo result, final boolean useCache) { if (getPersistentBFC() != null) { ((BlockBox) this).getPersistentBFC().getFloatManager().performFloatOperation( new FloatManager.FloatOperation() { public void operate(Box floater) { PaintingInfo info = floater.calcPaintingInfo(c, useCache); moveIfGreater( result.getOuterMarginCorner(), info.getOuterMarginCorner()); } }); } super.calcChildPaintingInfo(c, result, useCache); }
public PaintingInfo calcPaintingInfo(CssContext c, boolean useCache) { PaintingInfo cached = getPaintingInfo(); if (cached != null && useCache) { return cached; } final PaintingInfo result = new PaintingInfo(); Rectangle bounds = getMarginEdge(getAbsX(), getAbsY(), c, 0, 0); result.setOuterMarginCorner( new Dimension(bounds.x + bounds.width, bounds.y + bounds.height)); result.setAggregateBounds(getPaintingClipEdge(c)); calcChildPaintingInfo(c, result, useCache); setPaintingInfo(result); return result; }
public PaintingInfo calcPaintingInfo(CssContext c, boolean useCache) { PaintingInfo cached = getPaintingInfo(); if (cached != null && useCache) { return cached; } final PaintingInfo result = new PaintingInfo(); Rectangle bounds = getMarginEdge(getAbsX(), getAbsY(), c, 0, 0); result.setOuterMarginCorner( new Dimension(bounds.x + bounds.width, bounds.y + bounds.height)); result.setAggregateBounds(getPaintingClipEdge(c)); if (!getStyle().isOverflowApplies() || getStyle().isOverflowVisible()) { calcChildPaintingInfo(c, result, useCache); } setPaintingInfo(result); return result; }