* If precedence is false on a before or after region, its
* inline-progression-dimension is limited by the extent of the start
* and end regions if they are present.
- * @param vpRect viewport rectangle
+ * @param vpRefRect viewport reference rectangle
* @param wm writing mode
*/
- protected void adjustIPD(Rectangle vpRect, int wm) {
+ protected void adjustIPD(Rectangle vpRefRect, int wm) {
int offset = 0;
Region start = getSiblingRegion(Region.START);
if (start != null) {
offset = start.getExtent();
- vpRect.translate(offset, 0);
+ vpRefRect.translate(offset, 0);
}
Region end = getSiblingRegion(Region.END);
if (end != null) {
}
if (offset > 0) {
if (wm == WritingMode.LR_TB || wm == WritingMode.RL_TB) {
- vpRect.width -= offset;
+ vpRefRect.width -= offset;
} else {
- vpRect.height -= offset;
+ vpRefRect.height -= offset;
}
}
}
* regions only go to the limits of their extents, otherwise
* they extend in the BPD to the page reference rectangle
* diminish by extend of start and end if present.
- * @param refRect reference rectangle
+ * @param vpRefRect viewport reference rectangle
* @param wm writing mode
*/
- protected void adjustIPD(Rectangle refRect, int wm) {
+ protected void adjustIPD(Rectangle vpRefRect, int wm) {
int offset = 0;
Region before = getSiblingRegion(Region.BEFORE);
if (before != null && before.getPrecedence()) {
offset = before.getExtent();
- refRect.translate(0, offset);
+ vpRefRect.translate(0, offset);
}
Region after = getSiblingRegion(Region.AFTER);
if (after != null && after.getPrecedence()) {
}
if (offset > 0) {
if (wm == WritingMode.LR_TB || wm == WritingMode.RL_TB) {
- refRect.height -= offset;
+ vpRefRect.height -= offset;
} else {
- refRect.width -= offset;
+ vpRefRect.width -= offset;
}
}
}