mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 09:18:05 +03:00
ed84fbce47
This will allow us to use a protective NonnullRefPtr to keep paintables alive while running arbitrary JavaScript in response to events.
22 lines
458 B
C++
22 lines
458 B
C++
/*
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Layout/Box.h>
|
|
|
|
namespace Web::Layout {
|
|
|
|
class InlineNode : public NodeWithStyleAndBoxModelMetrics {
|
|
public:
|
|
InlineNode(DOM::Document&, DOM::Element*, NonnullRefPtr<CSS::StyleProperties>);
|
|
virtual ~InlineNode() override;
|
|
|
|
virtual RefPtr<Painting::Paintable> create_paintable() const override;
|
|
};
|
|
|
|
}
|