-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support border/padding/margin on RenderMathMLOperator
https://bugs.webkit.org/show_bug.cgi?id=276357 Reviewed by Rob Buis. This patch adds support for border/padding/margin on `<mo>` elements for which useMathOperator() returns true and therefore uses use special layout and painting instead of deferring to RenderMathMLToken. * LayoutTests/TestExpectations: Mark borders/paddings/margins reftests for largeop/stretchy operators as passing. * Source/WebCore/rendering/mathml/RenderMathMLOperator.cpp: (WebCore::RenderMathMLOperator::stretchTo): Include borders/paddings in logical width/height. (WebCore::RenderMathMLOperator::computePreferredLogicalWidths): Include borders/paddings in preferred width. Children are text nodes, no need to consider margins. (WebCore::RenderMathMLOperator::layoutBlock): Include borders/paddings for in logical width/height. Also call recomputeLogicalWidth() to set the inline margins on the element (block margins are handled by the parent). Children are text nodes, no need to consider margins for them. (WebCore::RenderMathMLOperator::firstLineBaseline const): Include border/padding in the ascent. (WebCore::RenderMathMLOperator::paint): Shift painting by the left/top border/padding. Canonical link: https://commits.webkit.org/280833@main
- Loading branch information
Showing
2 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters