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/dom/WebKitNamedFlow.h | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) (limited to 'Source/WebCore/dom/WebKitNamedFlow.h') diff --git a/Source/WebCore/dom/WebKitNamedFlow.h b/Source/WebCore/dom/WebKitNamedFlow.h index 6b1625e74..b63bac15a 100644 --- a/Source/WebCore/dom/WebKitNamedFlow.h +++ b/Source/WebCore/dom/WebKitNamedFlow.h @@ -27,19 +27,15 @@ * SUCH DAMAGE. */ -#ifndef WebKitNamedFlow_h -#define WebKitNamedFlow_h +#pragma once #include "EventTarget.h" - -#include #include #include #include namespace WebCore { -class Document; class NamedFlowCollection; class Node; class NodeList; @@ -48,22 +44,22 @@ class ScriptExecutionContext; class WebKitNamedFlow final : public RefCounted, public EventTargetWithInlineData { public: - static PassRefPtr create(PassRefPtr manager, const AtomicString& flowThreadName); + static Ref create(NamedFlowCollection& manager, const AtomicString& flowThreadName); ~WebKitNamedFlow(); const AtomicString& name() const; bool overset() const; int firstEmptyRegionIndex() const; - PassRefPtr getRegionsByContent(Node*); - PassRefPtr getRegions(); - PassRefPtr getContent(); + Ref getRegionsByContent(Node*); + Ref getRegions(); + Ref getContent(); using RefCounted::ref; using RefCounted::deref; - virtual EventTargetInterface eventTargetInterface() const override { return WebKitNamedFlowEventTargetInterfaceType; } - virtual ScriptExecutionContext* scriptExecutionContext() const override; + EventTargetInterface eventTargetInterface() const override { return WebKitNamedFlowEventTargetInterfaceType; } + ScriptExecutionContext* scriptExecutionContext() const override; // This function is called from the JS binding code to determine if the NamedFlow object is reachable or not. // If the object has listeners, the object should only be discarded if the parent Document is not reachable. @@ -78,15 +74,14 @@ public: FlowState flowState() const { return m_parentFlowThread ? FlowStateCreated : FlowStateNull; } - void dispatchRegionLayoutUpdateEvent(); void dispatchRegionOversetChangeEvent(); private: - WebKitNamedFlow(PassRefPtr, const AtomicString&); + WebKitNamedFlow(NamedFlowCollection&, const AtomicString&); // EventTarget implementation. - virtual void refEventTarget() override { ref(); } - virtual void derefEventTarget() override { deref(); } + void refEventTarget() override { ref(); } + void derefEventTarget() override { deref(); } // The name of the flow thread as specified in CSS. AtomicString m_flowThreadName; @@ -95,6 +90,4 @@ private: RenderNamedFlowThread* m_parentFlowThread; }; -} - -#endif +} // namespace WebCore -- cgit v1.2.1