Skip to content

Bump pillow from 8.3.1 to 8.4.0 in /tools#46

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/pip/tools/pillow-8.4.0
Closed

Bump pillow from 8.3.1 to 8.4.0 in /tools#46
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/pip/tools/pillow-8.4.0

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot bot commented on behalf of github Oct 18, 2021

Bumps pillow from 8.3.1 to 8.4.0.

Release notes

Sourced from pillow's releases.

8.4.0

https://pillow.readthedocs.io/en/latest/releasenotes/8.4.0.html

Changes

Dependencies

Documentation

Testing

8.3.2

https://pillow.readthedocs.io/en/stable/releasenotes/8.3.2.html

... (truncated)

Changelog

Sourced from pillow's changelog.

8.4.0 (2021-10-15)

  • Prefer global transparency in GIF when replacing with background color #5756 [radarhere]

  • Added "exif" keyword argument to TIFF saving #5575 [radarhere]

  • Copy Python palette to new image in quantize() #5696 [radarhere]

  • Read ICO AND mask from end #5667 [radarhere]

  • Actually check the framesize in FliDecode.c #5659 [wiredfool]

  • Determine JPEG2000 mode purely from ihdr header box #5654 [radarhere]

  • Fixed using info dictionary when writing multiple APNG frames #5611 [radarhere]

  • Allow saving 1 and L mode TIFF with PhotometricInterpretation 0 #5655 [radarhere]

  • For GIF save_all with palette, do not include palette with each frame #5603 [radarhere]

  • Keep transparency when converting from P to LA or PA #5606 [radarhere]

  • Copy palette to new image in transform() #5647 [radarhere]

  • Added "transparency" argument to EpsImagePlugin load() #5620 [radarhere]

  • Corrected pathlib.Path detection when saving #5633 [radarhere]

  • Added WalImageFile class #5618 [radarhere]

  • Consider I;16 pixel size when drawing text #5598 [radarhere]

  • If default conversion from P is RGB with transparency, convert to RGBA #5594 [radarhere]

... (truncated)

Commits
  • 40e7ff6 8.4.0 version bump
  • 0fc4fb6 Merge pull request #5765 from python-pillow/rm-tidelift-action
  • ce3c925 Delete tidelift.yml
  • 1b5e662 Merge pull request #5761 from nulano/stroke
  • 5c69dc7 Create tidelift.yml
  • e04f2ed Merge pull request #5744 from kmilos/patch-2
  • 19f4c6f don't use bitmap glyphs when drawing text with stroker
  • dbb0a41 [pre-commit.ci] auto fixes from pre-commit.com hooks
  • 1140f65 Ensure reset after test failure
  • 0b7fcbb Merge branch 'master' into patch-2
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Oct 18, 2021
@dependabot @github
Copy link
Copy Markdown
Author

dependabot bot commented on behalf of github Jan 3, 2022

Superseded by #97.

@dependabot dependabot bot closed this Jan 3, 2022
@dependabot dependabot bot deleted the dependabot/pip/tools/pillow-8.4.0 branch January 3, 2022 04:22
rniwa pushed a commit that referenced this pull request Mar 19, 2025
…hich has only a collapsible white-space

In bug 1925635, I moved the post processing after deleting ranges in
`EditorBase::DeleteRangesWithTransaction` into the `HTMLEditor`'s override.
At this time, I makes it uses `HTMLEditUtils::IsEmptyNode` to check whether
the `Text` and its containers become empty. Therefore, if `Ctrl`+`Backspace`
deletes the only word in the `Text` which starts with a collapsible white-space
causes deleting the `Text` after deleting all visible characters in the `Text`.

Therefore, this makes check it with `Text::TextDataLength` too before searching
the most distant ancestor inline element which becomes empty.

However, it may cause leading invisible white-spaces of the only word visible
because `nsFrameSelection` computes the word range strictly in the `Text`.
Therefore, this patch also makes `HTMLEditor::DeleteRangesWithTransaction` and
`AutoDeleteRangesHandler::ComputeRangesToDeleteRangesWithTransaction` extend
each range to delete to include surrounding invisible white-spaces too.

Therefore, this patch adds the new method to `AutoClonedRangeArray`.

Then, I hit 4 existing bugs with new test failures.

One is `HTMLEditUtils::LineRequiresPaddingLineBreakToBeVisible`.  It checks
whether the candidate point to insert a `<br>` is followed by a block boundary
first.  Then, it checks whether the candidate point follows a collapsible
white-space or a block boundary.  However, it uses
`WSRunScanner::ScanPreviousVisibleNodeOrBlockBoundary()` which ignores invisible
white-spaces.  Therefore, it will ignore the new invisible white-space and
reaches preceding `Text`.  Thus, it fails to put a `<br>` and makes the new
invisible white-space "fixed" as invisible.

Therefore, this patch rewrites the check with using
`HTMLEditUtils::GetPreviousLeafContentOrPreviousBlockElement()`.

Next one is, `HTMLEditor::DeleteEmptyInclusiveAncestorInlineElements()`
returns end of deleted node if it's followed by a non-editable node, i.e.,
an element has `contenteditable="false"`.  Therefore, its caller inserts a
`<br>` to the end of the container when deleting preceding editable node of a
non-editable node.

Therefore, this patch removes the editable state check.

Next, `AutoBlockElementsJoiner::HandleDeleteNonCollapsedRange` may put a padding
`<br>` after the moved line, but it does not assume that the moved line does not
ends with a block boundary.  This causes failing #46 and #48 tests in
`text_bug772796.html`.  E.g., when pressing `Delete` in
`<div>foo[]<div><span style="white-space:pre"><div>bar</div>baz</span>`, we move
the second `<div>` as a child of the parent `<span>` to end of the first `<div>`
like `<div>foo<span style="white-space:pre"><div>bar</div></span></div>...`.
Without the change, it starts to put unnecessary `<br>` after ` the `<span>`
because of the bug fix in `HTMLEditUtils::LineRequiresPaddingLineBreakToBeVisible`
above.  This result is completely odd from the users point of view (looks like
just move caret), but we should avoid to put the unnecessary `<br>`.

Finally, we'll fail an assertion when putting caret at the last of
`AutoBlockElementsJoiner::DeleteContentInRange` because it forgets to flush
the tracking range before using it. This appeared by the changes above.

Therefore, this patch fixes this bug too.

Differential Revision: https://phabricator.services.mozilla.com/D240703

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1951518
gecko-commit: 2260ab21bbf0c3e9f7d5eb7cda4fb9300c02be90
gecko-reviewers: m_kato
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants