When the folder can't be opened or `FS_IOC_GETFLAGS` fails, `casefolded`
returned false, so `imageCapture` treated names that differ only in their
normalization form as two files and could write over a source document.
It now returns false only when the flags are read and the flag is clear.
A refused rename that falls back to copying into the target no longer
creates a missing target before the final authorization check. The
target is created only after that check, on every platform, so a
refusal at the final check leaves the path absent. An existing target
is still opened with O_CREAT, so Linux's fs.protected_regular applies.
imageCapture no longer treats an empty Linux folder as ignoring the
Unicode normalization form. It reads the folder's casefold inode flag
(FS_IOC_GETFLAGS) instead, so a missing linked cafe\u{301}.png no longer
matches cafe\u{e9}.png in an ordinary folder, and a casefolded folder
still matches both spellings.
A stroke of evenly spaced round dots (round cap, a zero-length dash, one
gap length, not fitted to corners) is written as `border: ... dotted`, but
the rule also carried the "arrowheads, width profiles, brushes or dashes
fitted to corners" note, and with rasterize on it got a picture as well.
Such a stroke no longer raises that note. Projecting caps, dots fitted to
corners, dots mixed with dashes and unevenly spaced dots keep it.
A gradient border is written with `border-image`, which replaces the
border's style, so its dots or dashes are lost. A dotted or dashed
gradient border now carries the note "dashes or dots on a gradient border".
On Windows the Unix block in same_folder is compiled out, which left
`if a == b { return true; } false` and failed clippy's needless_bool
lint with -D warnings in the Windows CI run. The early return now sits
inside the Unix block and the other platforms compare the paths.
Behavior is unchanged on every platform.
Off Unix, write_atomic_checked asked `allowed` once, before the file
was written, so a destination that stopped being allowed while the file
was filled still received it. The check now runs again after the fill,
right before the rename, and again before the content is copied over a
file whose folder refuses the rename. A refusal removes the staging
file and leaves the target as it was.
The hard-link fixtures in the capture tests unwrap the link again, as
the other hard-link tests in the engine do (script_io.rs, plugins.rs).
textFrames.removeAll() and the removeAll() of a group's pageItems,
groupItems and compoundPathItems checked only clip groups whose mask
they release. Deleting the type or art below an image in an ordinary
group named Image Trace left the image first, so the group was read as
a tracing and the image dropped out of pageItems. Both now throw
"Only Image Trace can make a tracing" and delete nothing, checking the
whole set being deleted at once.
- object.rasterize and Document.rasterize refuse clipBounds that reach
none of the selected objects' own bounds, including a rectangle in the
gap between two of them, instead of replacing the art with a
background-only image.
- imageCapture checks its destination again on every write the export
makes and as the file is committed, so a destination that becomes a
link to an open document or a linked file while the art renders is
refused.
- imageCapture refuses a destination whose real path is not valid UTF-8
instead of writing under a name with its bytes replaced.
- A missing linked file's name in the other Unicode normalization form
counts as the linked file in folders that ignore the form (macOS, and
casefolded folders on Linux).
- The hard-link tests skip on volumes without hard links.
- docs/mcp.md: imageCapture rounds clip dimensions to the nearest pixel;
rasterize rounds fractional dimensions up.
The test passed "midpoint": 30, which the command clamps to 0.87, and its
tint assertions hold at any midpoint. It now passes 0.3 and asserts the
stitching function's /Bounds[0.3].
- SVG import: font-size keywords (x-large), larger and smaller against
the parent's size, and every bolder and lighter step from the parent's
weight.
- CSS Properties: a round-capped dash starting with 0 gives a dotted
border, other dashes a dashed one, and a gradient stroke a border with
border-image. A pen-drawn upright rectangle is written as a rectangle
with square corners, and the same path rotated gets the note for a
shape CSS cannot draw.
- Save for Web: a No Image cell over the matte color, aligned right and
bottom, and an HTML Text cell whose lines are escaped and joined with
<br>.
- A checked write to a real path passes a script gate only inside its
write folder, and only when every gate chained to it passes too.
- Stored plug-ins past the store's byte budget are listed as failed, and
a stored file larger than what is left of the budget is skipped.
- library.import refuses a file over 512 MB from its size, before it is
opened.
- An arrowheads file over 64 MB lists no heads and reports why.
After a script reads a path's points, each command makes the run look
through the changed layers and groups of the document for those paths.
That look was not counted toward the script's operation budget, so a
loop of commands on a large layer did unbounded work. It now charges the
objects it looks at, as the layer scans in layers.rs do.
- The look pairs each object with the one of the same id under the same
parent now, and lists the document once for a group that moved, so no
object is searched for through the whole document.
- A document none of whose read paths remain is no longer looked at.
The look was added in #9288.