mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
LibWeb: Implement some of SourceBuffer.appendBuffer()
Currently, it just fires the error event immediately.
This commit is contained in:
committed by
Gregory Bertilson
parent
e3b37694f5
commit
e627376368
Notes:
github-actions[bot]
2026-04-01 07:56:14 +00:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/LadybirdBrowser/ladybird/commit/e627376368c Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8655 Reviewed-by: https://github.com/tcl3
@@ -83,4 +83,9 @@ GC::Ptr<WebIDL::CallbackType> SourceBufferList::onremovesourcebuffer()
|
||||
return event_handler_attribute(EventNames::removesourcebuffer);
|
||||
}
|
||||
|
||||
bool SourceBufferList::contains(SourceBuffer const& source_buffer) const
|
||||
{
|
||||
return m_buffers.contains([&](GC::Ref<SourceBuffer> const& contained_buffer) { return contained_buffer == &source_buffer; });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user