public LineBox getLineBox() { Box b = getParent(); while (! (b instanceof LineBox)) { b = b.getParent(); } return (LineBox)b; }
public LineBox getLineBox() { Box b = getParent(); while (! (b instanceof LineBox)) { b = b.getParent(); } return (LineBox)b; }
public Box getRestyleTarget() { // Inline boxes may be broken across lines so back out // to the nearest block box Box result = getParent(); while (result instanceof InlineLayoutBox) { result = result.getParent(); } return result.getParent(); }
public Box getRestyleTarget() { // Inline boxes may be broken across lines so back out // to the nearest block box Box result = getParent(); while (result instanceof InlineLayoutBox) { result = result.getParent(); } return result.getParent(); }
public void unmarkPending(LayoutContext c) { _pending = false; if (getParent() instanceof InlineLayoutBox) { InlineLayoutBox iB = (InlineLayoutBox)getParent(); if (iB.isPending()) { iB.unmarkPending(c); } } setStartsHere(true); if (getStyle().requiresLayer()) { c.pushLayer(this); getLayer().setInline(true); connectChildrenToCurrentLayer(c); } }
public void unmarkPending(LayoutContext c) { _pending = false; if (getParent() instanceof InlineLayoutBox) { InlineLayoutBox iB = (InlineLayoutBox)getParent(); if (iB.isPending()) { iB.unmarkPending(c); } } setStartsHere(true); if (getStyle().requiresLayer()) { c.pushLayer(this); getLayer().setInline(true); connectChildrenToCurrentLayer(c); } }
public Box find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) { PaintingInfo pI = getPaintingInfo(); if (pI != null && ! pI.getAggregateBounds().contains(absX, absY)) { return null; } Box result = null; for (int i = 0; i < getInlineChildCount(); i++) { Object child = getInlineChild(i); if (child instanceof Box) { result = ((Box)child).find(cssCtx, absX, absY, findAnonymous); if (result != null) { return result; } } } Rectangle edge = getContentAreaEdge(getAbsX(), getAbsY(), cssCtx); result = edge.contains(absX, absY) && getStyle().isVisible() ? this : null; if (! findAnonymous && result != null && getElement() == null) { return getParent().getParent(); } else { return result; } }
public Box find(CssContext cssCtx, int absX, int absY, boolean findAnonymous) { PaintingInfo pI = getPaintingInfo(); if (pI != null && ! pI.getAggregateBounds().contains(absX, absY)) { return null; } Box result = null; for (int i = 0; i < getInlineChildCount(); i++) { Object child = getInlineChild(i); if (child instanceof Box) { result = ((Box)child).find(cssCtx, absX, absY, findAnonymous); if (result != null) { return result; } } } Rectangle edge = getContentAreaEdge(getAbsX(), getAbsY(), cssCtx); result = edge.contains(absX, absY) && getStyle().isVisible() ? this : null; if (! findAnonymous && result != null && getElement() == null) { return getParent().getParent(); } else { return result; } }
currentIB = addOpenInlineBoxes( c, currentLine, openInlineBoxes, maxAvailableWidth, iBMap); previousIB = currentIB.getParent() instanceof LineBox ? null : (InlineLayoutBox) currentIB.getParent(); remainingWidth = maxAvailableWidth; remainingWidth -= c.getBlockFormattingContext().getFloatDistance(c, currentLine, remainingWidth); currentIB = currentIB.getParent() instanceof LineBox ? null : (InlineLayoutBox) currentIB.getParent(); currentIB = addOpenInlineBoxes( c, currentLine, openInlineBoxes, maxAvailableWidth, iBMap); previousIB = currentIB == null || currentIB.getParent() instanceof LineBox ? null : (InlineLayoutBox) currentIB.getParent(); remainingWidth = maxAvailableWidth; remainingWidth -= c.getBlockFormattingContext().getFloatDistance(c, currentLine, remainingWidth);
currentIB = addOpenInlineBoxes( c, currentLine, openInlineBoxes, maxAvailableWidth, iBMap); previousIB = currentIB.getParent() instanceof LineBox ? null : (InlineLayoutBox) currentIB.getParent(); remainingWidth = maxAvailableWidth; remainingWidth -= c.getBlockFormattingContext().getFloatDistance(c, currentLine, remainingWidth); currentIB = currentIB.getParent() instanceof LineBox ? null : (InlineLayoutBox) currentIB.getParent(); currentIB = addOpenInlineBoxes( c, currentLine, openInlineBoxes, maxAvailableWidth, iBMap); previousIB = currentIB == null || currentIB.getParent() instanceof LineBox ? null : (InlineLayoutBox) currentIB.getParent(); remainingWidth = maxAvailableWidth; remainingWidth -= c.getBlockFormattingContext().getFloatDistance(c, currentLine, remainingWidth);