ContentNode cnodeAfter = contentRange.getNodeAfter();
Node htmlNodeAfter = cnodeAfter == null ? null : cnodeAfter.getImplNodelet();
htmlRange = RestrictedRange.between(
htmlNodeBefore, Point.inElement(htmlParent, htmlNodeAfter));
if (partOfMutatingRange(filteredHtml.asText(previousSelectionStart.getContainer()))) {
// This must be true if getWrapper worked correctly. Program error
// otherwise (not browser error)
assert firstWrapper.getImplNodelet() == htmlRange.getStartNode(filteredHtml);
// NOTE(danilatos): We are asking the firstWrapper to give us the offset of