HTMLMarqueeElement.h [plain text]
#pragma once
#include "ActiveDOMObject.h"
#include "HTMLElement.h"
namespace WebCore {
class RenderMarquee;
class HTMLMarqueeElement final : public HTMLElement, private ActiveDOMObject {
public:
static Ref<HTMLMarqueeElement> create(const QualifiedName&, Document&);
int minimumDelay() const;
WEBCORE_EXPORT void start();
WEBCORE_EXPORT void stop() final;
WEBCORE_EXPORT unsigned scrollAmount() const;
WEBCORE_EXPORT void setScrollAmount(unsigned);
WEBCORE_EXPORT unsigned scrollDelay() const;
WEBCORE_EXPORT void setScrollDelay(unsigned);
WEBCORE_EXPORT int loop() const;
WEBCORE_EXPORT ExceptionOr<void> setLoop(int);
private:
HTMLMarqueeElement(const QualifiedName&, Document&);
bool isPresentationAttribute(const QualifiedName&) const final;
void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) final;
bool canSuspendForDocumentSuspension() const final;
void suspend(ReasonForSuspension) final;
void resume() final;
const char* activeDOMObjectName() const final { return "HTMLMarqueeElement"; }
RenderMarquee* renderMarquee() const;
};
}