Skip to content

Commit

Permalink
Unreviewed, fix the build after 273610@main
Browse files Browse the repository at this point in the history
Add a missing include for `Blob.h`, and `HTMLNames::` namespacing.

* Source/WebCore/editing/cocoa/EditorCocoa.mm:
(WebCore::Editor::insertMultiRepresentationHEIC):

Canonical link: https://commits.webkit.org/273665@main
  • Loading branch information
whsieh committed Jan 29, 2024
1 parent 1e64ff6 commit 151dc4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/WebCore/editing/cocoa/EditorCocoa.mm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#import "Editor.h"

#import "ArchiveResource.h"
#import "Blob.h"
#import "CSSValueList.h"
#import "CSSValuePool.h"
#import "CachedResourceLoader.h"
Expand Down Expand Up @@ -403,8 +404,8 @@ static void maybeCopyNodeAttributesToFragment(const Node& node, DocumentFragment
auto picture = HTMLPictureElement::create(HTMLNames::pictureTag, document);

auto source = HTMLSourceElement::create(document);
source->setAttributeWithoutSynchronization(srcsetAttr, AtomString { DOMURL::createObjectURL(document, Blob::create(document.ptr(), Vector<uint8_t> { data }, primaryType)) });
source->setAttributeWithoutSynchronization(typeAttr, AtomString { primaryType });
source->setAttributeWithoutSynchronization(HTMLNames::srcsetAttr, AtomString { DOMURL::createObjectURL(document, Blob::create(document.ptr(), Vector<uint8_t> { data }, primaryType)) });
source->setAttributeWithoutSynchronization(HTMLNames::typeAttr, AtomString { primaryType });
picture->appendChild(WTFMove(source));

auto image = HTMLImageElement::create(document);
Expand Down

0 comments on commit 151dc4b

Please sign in to comment.