Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1c303bf8fe11f243c1558f0a6880b5908fc047e3
https://github.com/WebKit/WebKit/commit/1c303bf8fe11f243c1558f0a6880b5908fc047e3
Author: Anne van Kesteren <[email protected]>
Date: 2026-03-22 (Sun, 22 Mar 2026)
Changed paths:
A LayoutTests/fast/css/focus-ring-outline-offset-expected-mismatch.html
M LayoutTests/fast/css/focus-ring-outline-offset.html
R LayoutTests/platform/glib/fast/css/focus-ring-outline-offset-expected.txt
R LayoutTests/platform/gtk/fast/css/focus-ring-outline-offset-expected.png
R LayoutTests/platform/ios/fast/css/focus-ring-outline-offset-expected.txt
R LayoutTests/platform/mac/fast/css/focus-ring-outline-offset-expected.png
R LayoutTests/platform/mac/fast/css/focus-ring-outline-offset-expected.txt
R LayoutTests/platform/win/fast/css/focus-ring-outline-offset-expected.txt
M Source/WebCore/platform/graphics/BifurcatedGraphicsContext.cpp
M Source/WebCore/platform/graphics/BifurcatedGraphicsContext.h
M Source/WebCore/platform/graphics/GraphicsContext.h
M Source/WebCore/platform/graphics/NullGraphicsContext.h
M Source/WebCore/platform/graphics/cairo/CairoOperationRecorder.cpp
M Source/WebCore/platform/graphics/cairo/CairoOperationRecorder.h
M Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.cpp
M Source/WebCore/platform/graphics/cairo/GraphicsContextCairo.h
M Source/WebCore/platform/graphics/cg/GraphicsContextCG.h
M Source/WebCore/platform/graphics/cocoa/GraphicsContextCocoa.mm
M Source/WebCore/platform/graphics/displaylists/DisplayListItems.cpp
M Source/WebCore/platform/graphics/displaylists/DisplayListItems.h
M Source/WebCore/platform/graphics/displaylists/DisplayListRecorderImpl.cpp
M Source/WebCore/platform/graphics/displaylists/DisplayListRecorderImpl.h
M Source/WebCore/platform/graphics/mac/controls/SwitchTrackMac.mm
M Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
M Source/WebCore/platform/graphics/skia/GraphicsContextSkia.h
M Source/WebCore/rendering/OutlinePainter.cpp
M Source/WebKit/GPUProcess/graphics/RemoteGraphicsContext.cpp
M Source/WebKit/GPUProcess/graphics/RemoteGraphicsContext.h
M Source/WebKit/GPUProcess/graphics/RemoteGraphicsContext.messages.in
M Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextProxy.cpp
M Source/WebKit/WebProcess/GPU/graphics/RemoteGraphicsContextProxy.h
Log Message:
-----------
Make outline-offset work with outline: auto on iOS
https://bugs.webkit.org/show_bug.cgi?id=310478
Reviewed by Alan Baradlay.
For non-macOS platforms OutlinePainter would pass along outlineOffset
as an argument, despite paintFocusRing() already accounting for
outline-offset and incorporating it into the rects argument.
For iOS this would then end up in GraphicsContextCocoa with a non-0
outlineOffset argument which would then be used to undo the
outline-offset changes from paintFocusRing().
To ensure this works we turn fast/css/focus-ring-outline-offset.html
into a cross-platform reference test.
Canonical link: https://commits.webkit.org/309733@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications