Repository navigation
[release/3.16] 优化 SVG 图像支持 - #6873
Conversation
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b823a82a4f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ).get(); | ||
| } | ||
| Supplier<Image> supplier = () -> { | ||
| SVGImage image = SVGLoader.load(content, parameters); |
There was a problem hiding this comment.
Restore the null guard before snapshotting SVGs
When fxsvgimage cannot parse a malformed or unsupported SVG, SVGLoader.load(...) can return null; the previous implementation handled that explicitly, but the new supplier immediately dereferences the result via toImage or getScaledWidth. Such inputs now produce a NullPointerException (wrapped in ExecutionException off the FX thread) instead of the intended IOException, so keep the result nullable and check it inside the supplier before snapshotting.
AGENTS.md reference: AGENTS.md:L7-L9
Useful? React with 👍 / 👎.
| Schedulers.javafx() | ||
| ).get(); | ||
| } | ||
| Supplier<Image> supplier = () -> { |
There was a problem hiding this comment.
Document the modified SVG loader field
The SVG field modified by this block still has no /// documentation above its declaration, even though the repository requires documentation for every field using Markdown-style Javadoc. Add a concise description of its JavaFX-thread scheduling and scaling behavior.
AGENTS.md reference: AGENTS.md:L18-L20
Useful? React with 👍 / 👎.
#6613
#6789
#6790