IDOMPosition end = ordered ? range.getEndPosition() : range
.getStartPosition();
Node common = null;
if (EditModelQuery.isSame(range)) {
ParagraphFinder finder = new ParagraphFinder(start);
Paragraph p = finder.getParagraph(start);
common = p.getLowestContainer();
} else {
common = EditModelQuery.getInstance().getCommonAncestor(start,
end);
}
// the lowest common block parent is the container to apply style.