Skip to content

Commit c1473c6

Browse files
author
Kate Ivanova
committed
Add stroke-width into inheritable set of svg attributes, update cmp files
DEVSIX-3759
1 parent 400b2f9 commit c1473c6

22 files changed

+10
-26
lines changed

svg/src/main/java/com/itextpdf/svg/css/impl/SvgAttributeInheritance.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,22 @@ public class SvgAttributeInheritance implements IStyleInheritance {
6262
*/
6363
private static final Set<String> inheritableProperties = Collections.unmodifiableSet(new HashSet<>(Arrays.asList(
6464

65-
//Stroke
66-
SvgConstants.Attributes.STROKE,
65+
// clip-rule
66+
SvgConstants.Attributes.CLIP_RULE,
6767

68-
//Fill
68+
// fill
6969
SvgConstants.Attributes.FILL,
7070

71-
//Fill
71+
// fill-rule
7272
SvgConstants.Attributes.FILL_RULE,
7373

74-
//clip-rule
75-
SvgConstants.Attributes.CLIP_RULE,
74+
// stroke
75+
SvgConstants.Attributes.STROKE,
76+
77+
// stroke-width
78+
SvgConstants.Attributes.STROKE_WIDTH,
7679

77-
//text-anchor
80+
// text-anchor
7881
SvgConstants.Attributes.TEXT_ANCHOR
7982

8083
)));

svg/src/test/java/com/itextpdf/svg/jfreesvg/JFreeSvgTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,8 @@ This file is part of the iText (R) project.
4242
*/
4343
package com.itextpdf.svg.jfreesvg;
4444

45-
46-
import com.itextpdf.svg.exceptions.SvgLogMessageConstant;
4745
import com.itextpdf.svg.renderers.SvgIntegrationTest;
4846
import com.itextpdf.test.ITextTest;
49-
import com.itextpdf.test.annotations.LogMessage;
50-
import com.itextpdf.test.annotations.LogMessages;
5147
import com.itextpdf.test.annotations.type.IntegrationTest;
5248
import org.junit.BeforeClass;
5349
import org.junit.Test;

svg/src/test/java/com/itextpdf/svg/renderers/FillTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,8 @@ This file is part of the iText (R) project.
4242
*/
4343
package com.itextpdf.svg.renderers;
4444

45-
import com.itextpdf.svg.exceptions.SvgLogMessageConstant;
4645
import com.itextpdf.svg.exceptions.SvgProcessingException;
4746
import com.itextpdf.test.ITextTest;
48-
import com.itextpdf.test.annotations.LogMessage;
49-
import com.itextpdf.test.annotations.LogMessages;
5047
import com.itextpdf.test.annotations.type.IntegrationTest;
5148

5249
import java.io.IOException;

svg/src/test/java/com/itextpdf/svg/renderers/impl/ClipPathSvgNodeRendererIntegrationTest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,10 @@ This file is part of the iText (R) project.
4242
*/
4343
package com.itextpdf.svg.renderers.impl;
4444

45-
import com.itextpdf.styledxmlparser.LogMessageConstant;
46-
import com.itextpdf.svg.converter.SvgConverter;
47-
import com.itextpdf.svg.exceptions.SvgLogMessageConstant;
4845
import com.itextpdf.svg.processors.impl.SvgConverterProperties;
4946
import com.itextpdf.svg.renderers.SvgIntegrationTest;
5047
import com.itextpdf.test.ITextTest;
51-
import com.itextpdf.test.annotations.LogMessage;
52-
import com.itextpdf.test.annotations.LogMessages;
5348
import com.itextpdf.test.annotations.type.IntegrationTest;
54-
import org.junit.Before;
5549
import org.junit.BeforeClass;
5650
import org.junit.Rule;
5751
import org.junit.Test;

svg/src/test/java/com/itextpdf/svg/renderers/impl/MaskTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,10 @@ This file is part of the iText (R) project.
4242
*/
4343
package com.itextpdf.svg.renderers.impl;
4444

45-
import com.itextpdf.svg.exceptions.SvgLogMessageConstant;
4645
import com.itextpdf.svg.processors.ISvgConverterProperties;
4746
import com.itextpdf.svg.processors.impl.SvgConverterProperties;
4847
import com.itextpdf.svg.renderers.SvgIntegrationTest;
4948
import com.itextpdf.test.ITextTest;
50-
import com.itextpdf.test.annotations.LogMessage;
51-
import com.itextpdf.test.annotations.LogMessages;
5249
import com.itextpdf.test.annotations.type.IntegrationTest;
5350
import org.junit.Before;
5451
import org.junit.BeforeClass;

svg/src/test/java/com/itextpdf/svg/renderers/impl/PreserveAspectRatioSvgNodeRendererIntegrationTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ This file is part of the iText (R) project.
5050

5151
import java.io.IOException;
5252

53-
import org.junit.Assert;
5453
import org.junit.BeforeClass;
55-
import org.junit.Ignore;
5654
import org.junit.Rule;
5755
import org.junit.Test;
5856
import org.junit.experimental.categories.Category;

svg/src/test/java/com/itextpdf/svg/renderers/impl/UseIntegrationTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ This file is part of the iText (R) project.
4747
import com.itextpdf.svg.renderers.SvgIntegrationTest;
4848
import com.itextpdf.test.ITextTest;
4949
import com.itextpdf.test.annotations.type.IntegrationTest;
50-
import org.junit.Assert;
5150
import org.junit.Before;
5251
import org.junit.BeforeClass;
5352
import org.junit.Test;
Binary file not shown.

0 commit comments

Comments
 (0)