Skip to content

Commit eb53c75

Browse files
rnadvodnyLodrKumquat
authored andcommitted
Change visibility of AbstractRenderer#getMinMaxWidth method
1 parent 66e0d6a commit eb53c75

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

layout/src/main/java/com/itextpdf/layout/renderer/AbstractRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1809,7 +1809,7 @@ void updateHeightsOnSplit(float usedHeight, boolean wasHeightClipped, AbstractRe
18091809
}
18101810
}
18111811

1812-
protected MinMaxWidth getMinMaxWidth() {
1812+
public MinMaxWidth getMinMaxWidth() {
18131813
return MinMaxWidthUtils.countDefaultMinMaxWidth(this);
18141814
}
18151815

layout/src/main/java/com/itextpdf/layout/renderer/BlockRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ protected float applyBordersPaddingsMargins(Rectangle parentBBox, Border[] borde
865865
}
866866

867867
@Override
868-
protected MinMaxWidth getMinMaxWidth() {
868+
public MinMaxWidth getMinMaxWidth() {
869869
MinMaxWidth minMaxWidth = new MinMaxWidth(calculateAdditionalWidth(this));
870870
if (!setMinMaxWidthBasedOnFixedWidth(minMaxWidth)) {
871871
Float minWidth = hasAbsoluteUnitValue(Property.MIN_WIDTH) ? retrieveMinWidth(0) : null;

layout/src/main/java/com/itextpdf/layout/renderer/ImageRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ public void move(float dxRight, float dyUp) {
381381
}
382382

383383
@Override
384-
protected MinMaxWidth getMinMaxWidth() {
384+
public MinMaxWidth getMinMaxWidth() {
385385
return ((MinMaxWidthLayoutResult) layout(new LayoutContext(new LayoutArea(1, new Rectangle(MinMaxWidthUtils.getInfWidth(), AbstractRenderer.INF))))).getMinMaxWidth();
386386
}
387387

layout/src/main/java/com/itextpdf/layout/renderer/LineRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ public boolean containsImage() {
922922
}
923923

924924
@Override
925-
protected MinMaxWidth getMinMaxWidth() {
925+
public MinMaxWidth getMinMaxWidth() {
926926
LineLayoutResult result = (LineLayoutResult) layout(new LayoutContext(new LayoutArea(1, new Rectangle(MinMaxWidthUtils.getInfWidth(), AbstractRenderer.INF))));
927927
return result.getMinMaxWidth();
928928
}

layout/src/main/java/com/itextpdf/layout/renderer/ListRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ protected AbstractRenderer createOverflowRenderer(int layoutResult) {
125125
}
126126

127127
@Override
128-
protected MinMaxWidth getMinMaxWidth() {
128+
public MinMaxWidth getMinMaxWidth() {
129129
LayoutResult errorResult = initializeListSymbols(new LayoutContext(new LayoutArea(1, new Rectangle(MinMaxWidthUtils.getInfWidth(), AbstractRenderer.INF))));
130130
if (errorResult != null) {
131131
return MinMaxWidthUtils.countDefaultMinMaxWidth(this);

layout/src/main/java/com/itextpdf/layout/renderer/ParagraphRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ protected AbstractRenderer createOverflowRenderer(int layoutResult) {
618618

619619

620620
@Override
621-
protected MinMaxWidth getMinMaxWidth() {
621+
public MinMaxWidth getMinMaxWidth() {
622622
MinMaxWidth minMaxWidth = new MinMaxWidth();
623623
Float rotation = this.getPropertyAsFloat(Property.ROTATION_ANGLE);
624624
if (!setMinMaxWidthBasedOnFixedWidth(minMaxWidth)) {

layout/src/main/java/com/itextpdf/layout/renderer/TableRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ protected Float retrieveWidth(float parentBoxWidth) {
13371337
}
13381338

13391339
@Override
1340-
protected MinMaxWidth getMinMaxWidth() {
1340+
public MinMaxWidth getMinMaxWidth() {
13411341
initializeTableLayoutBorders();
13421342
float rightMaxBorder = bordersHandler.getRightBorderMaxWidth();
13431343
float leftMaxBorder = bordersHandler.getLeftBorderMaxWidth();

layout/src/main/java/com/itextpdf/layout/renderer/TextRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ protected int baseCharactersCount() {
11151115
}
11161116

11171117
@Override
1118-
protected MinMaxWidth getMinMaxWidth() {
1118+
public MinMaxWidth getMinMaxWidth() {
11191119
TextLayoutResult result = (TextLayoutResult) layout(new LayoutContext(new LayoutArea(1, new Rectangle(MinMaxWidthUtils.getInfWidth(), AbstractRenderer.INF))));
11201120
return result.getMinMaxWidth();
11211121
}

0 commit comments

Comments
 (0)