Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3008c77e6f11f8c237302f7058e4fb8154951ab1
      
https://github.com/WebKit/WebKit/commit/3008c77e6f11f8c237302f7058e4fb8154951ab1
  Author: Alan Baradlay <[email protected]>
  Date:   2025-12-20 (Sat, 20 Dec 2025)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/operators/embellished-op-4-1.html
    M 
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/operators/embellished-op-4-2.html
    M 
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/operators/embellished-op-4-3.html
    M LayoutTests/mathml/presentation/underover-nonstretchy-or-vertical.html
    M Source/WebCore/rendering/mathml/MathOperator.cpp
    M Source/WebCore/rendering/mathml/MathOperator.h
    M Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp
    M Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp

  Log Message:
  -----------
  [subpixel] MathOperator::paint should snap paint location to device pixel
https://bugs.webkit.org/show_bug.cgi?id=304494

Reviewed by Antti Koivisto.

This is similar to what we do in TextBoxPainter (currently should have no 
effect as
coordinates are all integral (except MathML renderers selectively keep 
fractional values).
This is also in preparation for enabling subpixel inline layout.)

* 
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/operators/embellished-op-4-1.html:
* 
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/operators/embellished-op-4-2.html:
* 
LayoutTests/imported/w3c/web-platform-tests/mathml/presentation-markup/operators/embellished-op-4-3.html:
* LayoutTests/mathml/presentation/underover-nonstretchy-or-vertical.html:
These tests pass with Monospace font and with Ahem the 0.03px delta turns into 
a whole pixel -> add more tolerance.

* Source/WebCore/rendering/mathml/MathOperator.cpp:
(WebCore::MathOperator::paint):
(WebCore::operatorOrigin.setY):
(WebCore::operatorOrigin.setX):
* Source/WebCore/rendering/mathml/MathOperator.h:
* Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp:
(WebCore::RenderMathMLOperator::paint):
* Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp:
(WebCore::RenderMathMLRoot::paint):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to