-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8267551: Support loading images from inline data-URIs #508
Conversation
👋 Welcome back mstrauss! A progress list of the required criteria for merging this PR into |
Webrevs
|
/csr |
I'd like to see this documented somewhere in the |
@kevinrushforth has indicated that a compatibility and specification (CSR) request is needed for this pull request. |
@kevinrushforth |
@mstr2 this pull request can not be integrated into git checkout feature/image-datauri
git fetch https://git.openjdk.java.net/jfx master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
# Conflicts: # modules/javafx.graphics/src/test/java/test/com/sun/javafx/iio/ImageStorageTest.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs updates look good, with a few minor comments.
modules/javafx.graphics/src/main/java/javafx/scene/image/Image.java
Outdated
Show resolved
Hide resolved
modules/javafx.graphics/src/main/java/javafx/scene/image/Image.java
Outdated
Show resolved
Hide resolved
modules/javafx.graphics/src/main/java/javafx/scene/image/Image.java
Outdated
Show resolved
Hide resolved
modules/javafx.graphics/src/main/java/javafx/scene/image/Image.java
Outdated
Show resolved
Hide resolved
modules/javafx.graphics/src/main/java/javafx/scene/image/Image.java
Outdated
Show resolved
Hide resolved
Since this implementation doesn't surface any new API, it will not prevent us from removing it at any future time when the "data" protocol might be supported by the JDK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs look good. I left one minor comment inline.
You can update the CSR when ready. As I mentioned in a comment in the CSR, the Specification
section should consist of the diffs to the API documentation. Make sure you note what API element (e.g., class doc, Image(String url)
constructor, and so forth) each change is for, if it isn't clear from the diffs. You can omit the removal of the </p>
html tags and the change from example.
to example:
from the diffs in the CSR.
modules/javafx.graphics/src/main/java/javafx/scene/image/Image.java
Outdated
Show resolved
Hide resolved
I've updated the CSR with the documentation diffs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed and tested the implementation. I left a couple questions inline.
modules/javafx.graphics/src/main/java/com/sun/javafx/iio/ImageStorage.java
Outdated
Show resolved
Hide resolved
modules/javafx.graphics/src/main/java/com/sun/javafx/util/DataURI.java
Outdated
Show resolved
Hide resolved
Made changes as per review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
I reviewed the CSR, so you can move that to Finalized now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me too.
@mstr2 This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 11 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@kevinrushforth, @arapte) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
/integrate |
/sponsor |
Going to push as commit 171e484.
Your commit was automatically rebased without conflicts. |
@kevinrushforth @mstr2 Pushed as commit 171e484. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This PR adds support for loading images from inline data URIs, which is also widely supported by web browsers. This enables developers to package small images in CSS files, rather than separately deploying the images alongside the CSS file.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jfx pull/508/head:pull/508
$ git checkout pull/508
Update a local copy of the PR:
$ git checkout pull/508
$ git pull https://git.openjdk.java.net/jfx pull/508/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 508
View PR using the GUI difftool:
$ git pr show -t 508
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jfx/pull/508.diff