mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibWeb: Move m_needs_repaint and record_display_list() in Document
Let's make document responsible for display list invalidation, considering it already takes care of style and layout.
This commit is contained in:
committed by
Andreas Kling
parent
ab76b99f1e
commit
69c6e07139
@@ -31,7 +31,7 @@ AudioTrack::AudioTrack(JS::Realm& realm, JS::NonnullGCPtr<HTMLMediaElement> medi
|
||||
, m_audio_plugin(Platform::AudioCodecPlugin::create(move(loader)).release_value_but_fixme_should_propagate_errors())
|
||||
{
|
||||
m_audio_plugin->on_playback_position_updated = [this](auto position) {
|
||||
if (auto const* paintable = m_media_element->paintable())
|
||||
if (auto* paintable = m_media_element->paintable())
|
||||
paintable->set_needs_display();
|
||||
|
||||
auto playback_position = static_cast<double>(position.to_milliseconds()) / 1000.0;
|
||||
|
||||
Reference in New Issue
Block a user