summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLProgressElement.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/html/HTMLProgressElement.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/HTMLProgressElement.h')
-rw-r--r--Source/WebCore/html/HTMLProgressElement.h34
1 files changed, 13 insertions, 21 deletions
diff --git a/Source/WebCore/html/HTMLProgressElement.h b/Source/WebCore/html/HTMLProgressElement.h
index 255563d22..bd33aa122 100644
--- a/Source/WebCore/html/HTMLProgressElement.h
+++ b/Source/WebCore/html/HTMLProgressElement.h
@@ -18,10 +18,8 @@
*
*/
-#ifndef HTMLProgressElement_h
-#define HTMLProgressElement_h
+#pragma once
-#if ENABLE(PROGRESS_ELEMENT)
#include "LabelableElement.h"
namespace WebCore {
@@ -34,44 +32,38 @@ public:
static const double IndeterminatePosition;
static const double InvalidPosition;
- static PassRefPtr<HTMLProgressElement> create(const QualifiedName&, Document&);
+ static Ref<HTMLProgressElement> create(const QualifiedName&, Document&);
double value() const;
- void setValue(double, ExceptionCode&);
+ void setValue(double);
double max() const;
- void setMax(double, ExceptionCode&);
+ void setMax(double);
double position() const;
- virtual bool canContainRangeEndPoint() const override { return false; }
-
private:
HTMLProgressElement(const QualifiedName&, Document&);
virtual ~HTMLProgressElement();
- virtual bool areAuthorShadowsAllowed() const override { return false; }
- virtual bool shouldAppearIndeterminate() const override;
- virtual bool supportLabels() const override { return true; }
+ bool shouldAppearIndeterminate() const final;
+ bool supportLabels() const final { return true; }
- virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override;
- virtual bool childShouldCreateRenderer(const Node&) const override;
+ RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) final;
+ bool childShouldCreateRenderer(const Node&) const final;
RenderProgress* renderProgress() const;
- virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
+ void parseAttribute(const QualifiedName&, const AtomicString&) final;
- virtual void didAttachRenderers() override;
+ void didAttachRenderers() final;
void didElementStateChange();
- virtual void didAddUserAgentShadowRoot(ShadowRoot*) override;
+ void didAddUserAgentShadowRoot(ShadowRoot*) final;
bool isDeterminate() const;
+ bool canContainRangeEndPoint() const final { return false; }
+
ProgressValueElement* m_value;
};
-NODE_TYPE_CASTS(HTMLProgressElement)
-
} // namespace
-
-#endif
-#endif