Skip to content

Commit 2368898

Browse files
rnadvodnyiText-CI
authored andcommitted
Change visibility of AbstractRenderer#getMinMaxWidth method
Autoported commit. Original commit hash: [eb53c7582]
1 parent 5e5e8fd commit 2368898

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

itext/itext.layout/itext/layout/renderer/AbstractRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1824,7 +1824,7 @@ internal virtual void UpdateHeightsOnSplit(float usedHeight, bool wasHeightClipp
18241824
}
18251825

18261826
// If parent has no resolved height, relative height declarations can be ignored
1827-
protected internal virtual MinMaxWidth GetMinMaxWidth() {
1827+
public virtual MinMaxWidth GetMinMaxWidth() {
18281828
return MinMaxWidthUtils.CountDefaultMinMaxWidth(this);
18291829
}
18301830

itext/itext.layout/itext/layout/renderer/BlockRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ protected internal virtual float ApplyBordersPaddingsMargins(Rectangle parentBBo
812812
return parentWidth - parentBBox.GetWidth();
813813
}
814814

815-
protected internal override MinMaxWidth GetMinMaxWidth() {
815+
public override MinMaxWidth GetMinMaxWidth() {
816816
MinMaxWidth minMaxWidth = new MinMaxWidth(CalculateAdditionalWidth(this));
817817
if (!SetMinMaxWidthBasedOnFixedWidth(minMaxWidth)) {
818818
float? minWidth = HasAbsoluteUnitValue(Property.MIN_WIDTH) ? RetrieveMinWidth(0) : null;

itext/itext.layout/itext/layout/renderer/ImageRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public override void Move(float dxRight, float dyUp) {
344344
}
345345
}
346346

347-
protected internal override MinMaxWidth GetMinMaxWidth() {
347+
public override MinMaxWidth GetMinMaxWidth() {
348348
return ((MinMaxWidthLayoutResult)Layout(new LayoutContext(new LayoutArea(1, new Rectangle(MinMaxWidthUtils
349349
.GetInfWidth(), AbstractRenderer.INF))))).GetMinMaxWidth();
350350
}

itext/itext.layout/itext/layout/renderer/LineRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ public virtual bool ContainsImage() {
930930
return false;
931931
}
932932

933-
protected internal override MinMaxWidth GetMinMaxWidth() {
933+
public override MinMaxWidth GetMinMaxWidth() {
934934
LineLayoutResult result = (LineLayoutResult)Layout(new LayoutContext(new LayoutArea(1, new Rectangle(MinMaxWidthUtils
935935
.GetInfWidth(), AbstractRenderer.INF))));
936936
return result.GetMinMaxWidth();

itext/itext.layout/itext/layout/renderer/ListRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected internal override AbstractRenderer CreateOverflowRenderer(int layoutRe
107107
return overflowRenderer;
108108
}
109109

110-
protected internal override MinMaxWidth GetMinMaxWidth() {
110+
public override MinMaxWidth GetMinMaxWidth() {
111111
LayoutResult errorResult = InitializeListSymbols(new LayoutContext(new LayoutArea(1, new Rectangle(MinMaxWidthUtils
112112
.GetInfWidth(), AbstractRenderer.INF))));
113113
if (errorResult != null) {

itext/itext.layout/itext/layout/renderer/ParagraphRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ protected internal override AbstractRenderer CreateOverflowRenderer(int layoutRe
581581
return CreateOverflowRenderer(parent);
582582
}
583583

584-
protected internal override MinMaxWidth GetMinMaxWidth() {
584+
public override MinMaxWidth GetMinMaxWidth() {
585585
MinMaxWidth minMaxWidth = new MinMaxWidth();
586586
float? rotation = this.GetPropertyAsFloat(Property.ROTATION_ANGLE);
587587
if (!SetMinMaxWidthBasedOnFixedWidth(minMaxWidth)) {

itext/itext.layout/itext/layout/renderer/TableRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ protected internal virtual iText.Layout.Renderer.TableRenderer CreateOverflowRen
13431343
return tableWidth;
13441344
}
13451345

1346-
protected internal override MinMaxWidth GetMinMaxWidth() {
1346+
public override MinMaxWidth GetMinMaxWidth() {
13471347
InitializeTableLayoutBorders();
13481348
float rightMaxBorder = bordersHandler.GetRightBorderMaxWidth();
13491349
float leftMaxBorder = bordersHandler.GetLeftBorderMaxWidth();

itext/itext.layout/itext/layout/renderer/TextRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ protected internal virtual int BaseCharactersCount() {
10731073
return count;
10741074
}
10751075

1076-
protected internal override MinMaxWidth GetMinMaxWidth() {
1076+
public override MinMaxWidth GetMinMaxWidth() {
10771077
TextLayoutResult result = (TextLayoutResult)Layout(new LayoutContext(new LayoutArea(1, new Rectangle(MinMaxWidthUtils
10781078
.GetInfWidth(), AbstractRenderer.INF))));
10791079
return result.GetMinMaxWidth();

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
66e0d6a13d0deae4d6c358a8ea62f0807a7e29b1
1+
eb53c75829866fdb569a0dc674e3725e735dc550

0 commit comments

Comments
 (0)