From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/html/shadow/ProgressShadowElement.h | 32 ++++++++++------------ 1 file changed, 14 insertions(+), 18 deletions(-) (limited to 'Source/WebCore/html/shadow/ProgressShadowElement.h') diff --git a/Source/WebCore/html/shadow/ProgressShadowElement.h b/Source/WebCore/html/shadow/ProgressShadowElement.h index 78bc49ec4..f7ccb500a 100644 --- a/Source/WebCore/html/shadow/ProgressShadowElement.h +++ b/Source/WebCore/html/shadow/ProgressShadowElement.h @@ -29,10 +29,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef ProgressShadowElement_h -#define ProgressShadowElement_h +#pragma once -#if ENABLE(PROGRESS_ELEMENT) #include "HTMLDivElement.h" #include @@ -48,58 +46,56 @@ protected: ProgressShadowElement(Document&); private: - virtual bool rendererIsNeeded(const RenderStyle&) override; + bool rendererIsNeeded(const RenderStyle&) override; }; class ProgressInnerElement final : public ProgressShadowElement { public: - static PassRefPtr create(Document&); + static Ref create(Document&); private: ProgressInnerElement(Document&); - virtual RenderPtr createElementRenderer(PassRef) override; - virtual bool rendererIsNeeded(const RenderStyle&) override; + RenderPtr createElementRenderer(RenderStyle&&, const RenderTreePosition&) override; + bool rendererIsNeeded(const RenderStyle&) override; }; -inline PassRefPtr ProgressInnerElement::create(Document& document) +inline Ref ProgressInnerElement::create(Document& document) { - RefPtr result = adoptRef(new ProgressInnerElement(document)); + Ref result = adoptRef(*new ProgressInnerElement(document)); result->setPseudo(AtomicString("-webkit-progress-inner-element", AtomicString::ConstructFromLiteral)); return result; } class ProgressBarElement final : public ProgressShadowElement { public: - static PassRefPtr create(Document&); + static Ref create(Document&); private: ProgressBarElement(Document&); }; -inline PassRefPtr ProgressBarElement::create(Document& document) +inline Ref ProgressBarElement::create(Document& document) { - RefPtr result = adoptRef(new ProgressBarElement(document)); + Ref result = adoptRef(*new ProgressBarElement(document)); result->setPseudo(AtomicString("-webkit-progress-bar", AtomicString::ConstructFromLiteral)); return result; } class ProgressValueElement final : public ProgressShadowElement { public: - static PassRefPtr create(Document&); + static Ref create(Document&); void setWidthPercentage(double); private: ProgressValueElement(Document&); }; -inline PassRefPtr ProgressValueElement::create(Document& document) +inline Ref ProgressValueElement::create(Document& document) { - RefPtr result = adoptRef(new ProgressValueElement(document)); + Ref result = adoptRef(*new ProgressValueElement(document)); result->setPseudo(AtomicString("-webkit-progress-value", AtomicString::ConstructFromLiteral)); return result; } -} -#endif // ENABLE(PROGRESS_ELEMENT) -#endif // ProgressShadowElement_h +} // namespace WebCore -- cgit v1.2.1