Skip to content

Conversation

@shallawa
Copy link
Contributor

@shallawa shallawa commented Nov 9, 2022

9ffcb90

REGRESSION (r278062): Multiple backgrounds with "background-blend-mode: difference" breaks
https://bugs.webkit.org/show_bug.cgi?id=246590
rdar://101257606

Reviewed by Tim Horton.

r278062 replaced the call to GraphicsContextCG::setPlatformCompositeOperation()
by GraphicsContext::setCompositeOperation() in GraphicsContextCG::drawPattern().
setCompositeOperation() is platform independent and should not be called from
GraphicsContextCG methods. Call GraphicsContextCG::setCGBlendMode() instead.

* LayoutTests/fast/backgrounds/background-blend-mode-difference-expected.html: Added.
* LayoutTests/fast/backgrounds/background-blend-mode-difference.html: Added.
* LayoutTests/platform/win/TestExpectations:
* Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContextCG::drawPattern):

Canonical link: https://commits.webkit.org/256578@main

486a2f2

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe ❌ 🛠 🧪 win
✅ 🧪 bindings ✅ 🛠 ios-sim ✅ 🛠 mac-debug ❌ 🛠 gtk ✅ 🛠 wincairo
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🛠 mac-AS-debug ❌ 🧪 gtk-wk2
✅ 🧪 api-ios ✅ 🧪 api-mac ❌ 🧪 api-gtk
✅ 🛠 tv ✅ 🧪 mac-wk1
✅ 🛠 tv-sim ✅ 🧪 mac-wk2
🛠 🧪 merge ✅ 🛠 watch ✅ 🧪 mac-AS-debug-wk2
✅ 🛠 🧪 unsafe-merge ✅ 🛠 watch-sim ✅ 🧪 mac-wk2-stress

@shallawa shallawa self-assigned this Nov 9, 2022
@shallawa shallawa added the Layout and Rendering For bugs with layout and rendering of Web pages. label Nov 9, 2022
@shallawa shallawa requested a review from hortont424 November 9, 2022 01:33
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Nov 9, 2022
@shallawa shallawa removed the merging-blocked Applied to prevent a change from being merged label Nov 9, 2022
@shallawa shallawa force-pushed the eng/REGRESSION-r278062-Multiple-backgrounds-with-background-blend-mode-difference-breaks branch from 34475d4 to 994d591 Compare November 9, 2022 19:25
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Nov 9, 2022
@shallawa shallawa removed the merging-blocked Applied to prevent a change from being merged label Nov 10, 2022
@shallawa shallawa force-pushed the eng/REGRESSION-r278062-Multiple-backgrounds-with-background-blend-mode-difference-breaks branch from 994d591 to 486a2f2 Compare November 10, 2022 17:43
@webkit-ews-buildbot webkit-ews-buildbot added the merging-blocked Applied to prevent a change from being merged label Nov 10, 2022
@shallawa shallawa added merge-queue Applied to send a pull request to merge-queue unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing and removed merging-blocked Applied to prevent a change from being merged labels Nov 11, 2022
…e: difference" breaks

https://bugs.webkit.org/show_bug.cgi?id=246590
rdar://101257606

Reviewed by Tim Horton.

r278062 replaced the call to GraphicsContextCG::setPlatformCompositeOperation()
by GraphicsContext::setCompositeOperation() in GraphicsContextCG::drawPattern().
setCompositeOperation() is platform independent and should not be called from
GraphicsContextCG methods. Call GraphicsContextCG::setCGBlendMode() instead.

* LayoutTests/fast/backgrounds/background-blend-mode-difference-expected.html: Added.
* LayoutTests/fast/backgrounds/background-blend-mode-difference.html: Added.
* LayoutTests/platform/win/TestExpectations:
* Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContextCG::drawPattern):

Canonical link: https://commits.webkit.org/256578@main
@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/REGRESSION-r278062-Multiple-backgrounds-with-background-blend-mode-difference-breaks branch from 486a2f2 to 9ffcb90 Compare November 11, 2022 18:48
@webkit-early-warning-system webkit-early-warning-system merged commit 9ffcb90 into WebKit:main Nov 11, 2022
@webkit-commit-queue
Copy link
Collaborator

Committed 256578@main (9ffcb90): https://commits.webkit.org/256578@main

Reviewed commits have been landed. Closing PR #6280 and removing active labels.

@webkit-commit-queue webkit-commit-queue removed merge-queue Applied to send a pull request to merge-queue unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing labels Nov 11, 2022
@shallawa shallawa deleted the eng/REGRESSION-r278062-Multiple-backgrounds-with-background-blend-mode-difference-breaks branch May 9, 2023 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Layout and Rendering For bugs with layout and rendering of Web pages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants