int caretX = getXAtOffset(content.getLine(line), line, offsetInLine);
int caretX = getCaretX();
void doPageUp() {	int line = content.getLineAtOffset(caretOffset);	if (line > 0) {			int offsetInLine = caretOffset - content.getOffsetAtLine(line);		int scrollLines = Math.max(1, Math.min(line, getLineCountWhole()));		int scrollOffset;		int caretX = getXAtOffset(content.getLine(line), line, offsetInLine);				line -= scrollLines;		caretLine = line;		if (isBidi()) {			caretOffset = getBidiOffsetAtMouseLocation(caretX, line);		}		else {			caretOffset = getOffsetAtMouseLocation(caretX, line);		}			// scroll one page up or to the top		scrollOffset = Math.max(0, verticalScrollOffset - scrollLines * getVerticalIncrement());		if (scrollOffset < verticalScrollOffset) {					setVerticalScrollOffset(scrollOffset, true);		}	}	showCaret();}