return wrapperElementPointToNodeletPoint(point);
}
}
private HtmlPoint wrapperTextPointToHtmlPoint(Point<ContentNode> point) {
HtmlPoint output = new HtmlPoint(null, 0);
for (int attempt = 1; attempt <= 2; attempt++) {
try {
((ContentTextNode) point.getContainer()).findNodeletWithOffset(
point.getTextOffset(), output);
break;
} catch (HtmlMissing e) {
repairer.handle(e);
}
}
if (output.getNode() == null) {
// TODO(danilatos): Something sensible
throw new EditorRuntimeException("Don't know what to do with this - offset too big? point: "
+ point);
}
return output;