diff options
Diffstat (limited to 'Source/WebCore/html/shadow/DetailsMarkerControl.h')
-rw-r--r-- | Source/WebCore/html/shadow/DetailsMarkerControl.h | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/Source/WebCore/html/shadow/DetailsMarkerControl.h b/Source/WebCore/html/shadow/DetailsMarkerControl.h index 004dd10e3..fb16c736a 100644 --- a/Source/WebCore/html/shadow/DetailsMarkerControl.h +++ b/Source/WebCore/html/shadow/DetailsMarkerControl.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2011 Google Inc. All rights reserved. + * Copyright (C) 2014 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -28,35 +29,21 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef DetailsMarkerControl_h -#define DetailsMarkerControl_h +#pragma once #include "HTMLDivElement.h" -#include <wtf/Forward.h> namespace WebCore { -class HTMLSummaryElement; - class DetailsMarkerControl final : public HTMLDivElement { public: - static PassRefPtr<DetailsMarkerControl> create(Document&); + static Ref<DetailsMarkerControl> create(Document&); private: DetailsMarkerControl(Document&); - virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override; - virtual bool rendererIsNeeded(const RenderStyle&) override; - virtual const AtomicString& shadowPseudoId() const override; - - HTMLSummaryElement* summaryElement(); + RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) override; + bool rendererIsNeeded(const RenderStyle&) override; }; -inline PassRefPtr<DetailsMarkerControl> DetailsMarkerControl::create(Document& document) -{ - return adoptRef(new DetailsMarkerControl(document)); -} - -} - -#endif +} // namespace WebCore |