Source:
<code>private InlineElementBox(final LayoutContext context, final INode node, final int startOffset, final int endOffset) { this.node = node; final List<InlineBox> childList = new ArrayList<InlineBox>(); final Styles styles = context.getStyleSheet().getStyles(node); if (startOffset <= node.getStartOffset()) { final int space = styles.getMarginLeft().get(0) + styles.getBorderLeftWidth() + styles.getPaddingLeft().get(0); if (space > 0) { childList.add(new SpaceBox(space, 1)); } <START> final IElement beforeElement = context.getStyleSheet().getPseudoElement(node, "before", true); <END> if (beforeElement != null) { childList.addAll(LayoutUtils.createGeneratedInlines(context, beforeElement)); } childList.add(createLeftMarker(node, styles)); } if (styles.hasBackgroundImage() && !styles.getDisplay().equalsIgnoreCase(CSS.NONE)) { final ImageBox imageBox = ImageBox.createWithHeight(getNode(), context, styles.getLineHeight()); if (imageBox != null) { childList.add(imageBox); } } final InlineBoxes inlines = createInlineBoxes(context, node, new ContentRange(startOffset, endOffset)); childList.addAll(inlines.boxes); firstContentChild = inlines.firstContentBox; lastContentChild = inlines.lastContentBox; if (endOffset > node.getEndOffset()) { childList.add(new PlaceholderBox(context, node, node.getEndOffset() - node.getStartOffset())); childList.add(createRightMarker(node, styles)); final IElement afterElement = context.getStyleSheet().getPseudoElement(node, "after", true); if (afterElement != null) { childList.addAll(LayoutUtils.createGeneratedInlines(context, afterElement)); } final int space = styles.getMarginRight().get(0) + styles.getBorderRightWidth() + styles.getPaddingRight().get(0); if (space > 0) { childList.add(new SpaceBox(space, 1)); } } children = childList.toArray(new InlineBox[childList.size()]); layout(context); }</code><technical_language>Please a constant for "before"</technical_language>

Target:
private InlineElementBox(final LayoutContext context, final INode node, final int startOffset, final int endOffset) { this.node = node; final List<InlineBox> childList = new ArrayList<InlineBox>(); final Styles styles = context.getStyleSheet().getStyles(node); if (startOffset <= node.getStartOffset()) { final int space = styles.getMarginLeft().get(0) + styles.getBorderLeftWidth() + styles.getPaddingLeft().get(0); if (space > 0) { childList.add(new SpaceBox(space, 1)); } final IElement beforeElement = context.getStyleSheet().getPseudoElement(node, CSS.PSEUDO_BEFORE, true); if (beforeElement != null) { childList.addAll(LayoutUtils.createGeneratedInlines(context, beforeElement)); } childList.add(createLeftMarker(node, styles)); } if (styles.hasBackgroundImage() && !styles.getDisplay().equalsIgnoreCase(CSS.NONE)) { final ImageBox imageBox = ImageBox.createWithHeight(getNode(), context, styles.getLineHeight()); if (imageBox != null) { childList.add(imageBox); } } final InlineBoxes inlines = createInlineBoxes(context, node, new ContentRange(startOffset, endOffset)); childList.addAll(inlines.boxes); firstContentChild = inlines.firstContentBox; lastContentChild = inlines.lastContentBox; if (endOffset > node.getEndOffset()) { childList.add(new PlaceholderBox(context, node, node.getEndOffset() - node.getStartOffset())); childList.add(createRightMarker(node, styles)); final IElement afterElement = context.getStyleSheet().getPseudoElement(node, CSS.PSEUDO_AFTER, true); if (afterElement != null) { childList.addAll(LayoutUtils.createGeneratedInlines(context, afterElement)); } final int space = styles.getMarginRight().get(0) + styles.getBorderRightWidth() + styles.getPaddingRight().get(0); if (space > 0) { childList.add(new SpaceBox(space, 1)); } } children = childList.toArray(new InlineBox[childList.size()]); layout(context); }