Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8242862

SVG and canvas pattern transforms are not applied correctly

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: openjfx15
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:
      web

      Description

      fillPath() and fillRect() functions in GraphicsContextJava.cpp use Image::drawPattern() for applying patterns as fill attribute. But drawPattern() doesn't use patternTransform argument and thus, the final image won't be transformed.

      Sample HTML content:
      <svg>
          <pattern id="pattern" x="0" y="0" width="25" height="25"
                   patternUnits="userSpaceOnUse" patternTransform="rotate(45)">
              <rect x="0" y="0" width="20" height="20"/>
          </pattern>

          <rect x="10" y="10" width="100" height="100" fill="url(#pattern)" />
      </svg>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ajoseph Arun Joseph
                Reporter:
                ajoseph Arun Joseph
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: