[webkit-changes] [WebKit/WebKit] 6f0fba: [MultiRep HEIC] Ensure <source> data is preserved ...
Aditya Keerthi
noreply at github.com
Mon Feb 12 16:05:25 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6f0fba9f4919433fee0e936a5b611c2b88533f0a
https://github.com/WebKit/WebKit/commit/6f0fba9f4919433fee0e936a5b611c2b88533f0a
Author: Aditya Keerthi <akeerthi at apple.com>
Date: 2024-02-12 (Mon, 12 Feb 2024)
Changed paths:
M Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm
M Source/WebCore/html/HTMLSourceElement.cpp
M Source/WebCore/html/HTMLSourceElement.h
Log Message:
-----------
[MultiRep HEIC] Ensure <source> data is preserved when pasting rich content
https://bugs.webkit.org/show_bug.cgi?id=269218
rdar://122813934
Reviewed by Wenson Hsieh.
Testing is tracked in rdar://122814334.
* Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm:
(WebCore::replaceRichContentWithAttachments):
Create <attachment>s for <source> if they represent inline images.
* Source/WebCore/html/HTMLSourceElement.cpp:
(WebCore::HTMLSourceElement::attributeContainsURL const):
Mark `srcset` as a URL containing attribute, so that subresource replacement
can be performed. This matches existing logic in `HTMLImageElement`.
* Source/WebCore/html/HTMLSourceElement.h:
Canonical link: https://commits.webkit.org/274500@main
More information about the webkit-changes
mailing list