*/
public void resolve(final DocumentContext process,
final LayoutElement currentNode,
final StyleKey key)
{
final LayoutStyle layoutContext = currentNode.getLayoutStyle();
final CSSValue value = layoutContext.getValue(ContentStyleKeys.MOVE_TO);
// Maybe this is a 'normal'.
if (MoveToValues.NORMAL.equals(value))
{
// todo: Some creepy special cases that require information about pseudo-elements.
// if ("alternate".equals(layoutContext.getPseudoElement()))
// {
// // For '::alternate' pseudo-elements, if the superior parent uses
// // the 'footnote' counter in its 'content' property then the computed
// // value of 'move-to' is 'footnotes'.
// if (isCounterUsed(currentNode.getParentLayoutElement(), "footnote"))
// {
// layoutContext.setValue(ContentStyleKeys.MOVE_TO,
// new CSSStringValue(CSSStringType.STRING, "footnotes"));
// return;
// }
//
// // For '::alternate' pseudo-elements, if the superior parent uses
// // the 'endnote' counter in its 'content' property then the computed
// // value of 'move-to' is 'endnotes'.
// if (isCounterUsed(currentNode.getParentLayoutElement(), "endnote"))
// {
// layoutContext.setValue(ContentStyleKeys.MOVE_TO,
// new CSSStringValue(CSSStringType.STRING, "endnotes"));
// return;
// }
//
// // For '::alternate' pseudo-elements, if the superior parent uses
// // the 'section-note' counter in its 'content' property then the
// // computed value of 'move-to' is 'section-notes'.
// if (isCounterUsed(currentNode.getParentLayoutElement(), "section-note"))
// {
// layoutContext.setValue(ContentStyleKeys.MOVE_TO,
// new CSSStringValue(CSSStringType.STRING, "section-notes"));
// return;
// }
// }
layoutContext.setValue(ContentStyleKeys.MOVE_TO, MoveToValues.HERE);
}
}