-
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.
Correctly compute baseline of wide-layout attachments
https://bugs.webkit.org/show_bug.cgi?id=258868 rdar://problem/111771870 Reviewed by Dean Jackson. Previously it was falling back on the narrow/legacy renderer's baseline computation, which happened to look okay. This is fixed by doing a proper computation using a designated inner element, in this case the image element because it has the same height&baseline in all attachments (so that attachments on the same line will be aligned regardless of their contents). Also, because it was going through the legacy layout path, HTMLAttachmentElement::requestIconWithSize triggered its debug-assertion that it should only be used with a narrow/legacy attachment; in release it didn't crash but probably did an extra unnecessary icon request. * LayoutTests/fast/attachment/mac/wide-attachment-image-controls-basic-expected.txt: * LayoutTests/platform/ios-wk2/fast/attachment/cocoa/wide-attachment-rendering-expected.txt: * LayoutTests/platform/mac-wk2/fast/attachment/cocoa/wide-attachment-rendering-expected.txt: * Source/WebCore/html/HTMLAttachmentElement.cpp: (WebCore::HTMLAttachmentElement::wideLayoutImageElement const): * Source/WebCore/html/HTMLAttachmentElement.h: * Source/WebCore/rendering/RenderAttachment.cpp: (WebCore::RenderAttachment::baselinePosition const): Canonical link: https://commits.webkit.org/265831@main
- Loading branch information
Showing
6 changed files
with
92 additions
and
76 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
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
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