summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/shadow/SliderThumbElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/shadow/SliderThumbElement.h')
-rw-r--r--Source/WebCore/html/shadow/SliderThumbElement.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/Source/WebCore/html/shadow/SliderThumbElement.h b/Source/WebCore/html/shadow/SliderThumbElement.h
index 48ecd5526..a061d63b8 100644
--- a/Source/WebCore/html/shadow/SliderThumbElement.h
+++ b/Source/WebCore/html/shadow/SliderThumbElement.h
@@ -45,14 +45,14 @@ class TouchEvent;
class SliderThumbElement final : public HTMLDivElement {
public:
- static Ref<SliderThumbElement> create(Document&);
+ static PassRefPtr<SliderThumbElement> create(Document&);
void setPositionFromValue();
void dragFrom(const LayoutPoint&);
HTMLInputElement* hostInput() const;
void setPositionFromPoint(const LayoutPoint&);
-#if ENABLE(IOS_TOUCH_EVENTS)
+#if ENABLE(TOUCH_EVENTS) && PLATFORM(IOS)
void handleTouchEvent(TouchEvent*);
void disabledAttributeChanged();
@@ -61,9 +61,10 @@ public:
private:
SliderThumbElement(Document&);
- virtual RenderPtr<RenderElement> createElementRenderer(Ref<RenderStyle>&&, const RenderTreePosition&) override;
- virtual RefPtr<Element> cloneElementWithoutAttributesAndChildren(Document&) override;
+ virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override;
+ virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren() override;
virtual bool isDisabledFormControl() const override;
+ virtual bool matchesReadOnlyPseudoClass() const override;
virtual bool matchesReadWritePseudoClass() const override;
virtual Element* focusDelegate() override;
#if !PLATFORM(IOS)
@@ -72,7 +73,7 @@ private:
virtual bool willRespondToMouseClickEvents() override;
#endif
-#if ENABLE(IOS_TOUCH_EVENTS)
+#if ENABLE(TOUCH_EVENTS) && PLATFORM(IOS)
virtual void didAttachRenderers() override;
#endif
virtual void willDetachRenderers() override;
@@ -82,7 +83,7 @@ private:
void startDragging();
void stopDragging();
-#if ENABLE(IOS_TOUCH_EVENTS)
+#if ENABLE(TOUCH_EVENTS) && PLATFORM(IOS)
unsigned exclusiveTouchIdentifier() const;
void setExclusiveTouchIdentifier(unsigned);
void clearExclusiveTouchIdentifier();
@@ -98,25 +99,25 @@ private:
bool m_inDragMode;
-#if ENABLE(IOS_TOUCH_EVENTS)
+#if ENABLE(TOUCH_EVENTS) && PLATFORM(IOS)
// FIXME: Currently it is safe to use 0, but this may need to change
- // if touch identifiers change in the future and can be 0.
+ // if touch identifers change in the future and can be 0.
static const unsigned NoIdentifier = 0;
unsigned m_exclusiveTouchIdentifier;
bool m_isRegisteredAsTouchEventListener;
#endif
};
-inline Ref<SliderThumbElement> SliderThumbElement::create(Document& document)
+inline PassRefPtr<SliderThumbElement> SliderThumbElement::create(Document& document)
{
- return adoptRef(*new SliderThumbElement(document));
+ return adoptRef(new SliderThumbElement(document));
}
// --------------------------------
class RenderSliderThumb final : public RenderBlockFlow {
public:
- RenderSliderThumb(SliderThumbElement&, Ref<RenderStyle>&&);
+ RenderSliderThumb(SliderThumbElement&, PassRef<RenderStyle>);
void updateAppearance(RenderStyle* parentStyle);
private:
@@ -127,11 +128,11 @@ private:
class SliderContainerElement final : public HTMLDivElement {
public:
- static Ref<SliderContainerElement> create(Document&);
+ static PassRefPtr<SliderContainerElement> create(Document&);
private:
SliderContainerElement(Document&);
- virtual RenderPtr<RenderElement> createElementRenderer(Ref<RenderStyle>&&, const RenderTreePosition&) override;
+ virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override;
virtual const AtomicString& shadowPseudoId() const override;
};