summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/WebKitNamedFlow.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/dom/WebKitNamedFlow.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/dom/WebKitNamedFlow.h')
-rw-r--r--Source/WebCore/dom/WebKitNamedFlow.h29
1 files changed, 11 insertions, 18 deletions
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 <wtf/ListHashSet.h>
#include <wtf/RefCounted.h>
#include <wtf/RefPtr.h>
#include <wtf/text/AtomicString.h>
namespace WebCore {
-class Document;
class NamedFlowCollection;
class Node;
class NodeList;
@@ -48,22 +44,22 @@ class ScriptExecutionContext;
class WebKitNamedFlow final : public RefCounted<WebKitNamedFlow>, public EventTargetWithInlineData {
public:
- static PassRefPtr<WebKitNamedFlow> create(PassRefPtr<NamedFlowCollection> manager, const AtomicString& flowThreadName);
+ static Ref<WebKitNamedFlow> create(NamedFlowCollection& manager, const AtomicString& flowThreadName);
~WebKitNamedFlow();
const AtomicString& name() const;
bool overset() const;
int firstEmptyRegionIndex() const;
- PassRefPtr<NodeList> getRegionsByContent(Node*);
- PassRefPtr<NodeList> getRegions();
- PassRefPtr<NodeList> getContent();
+ Ref<NodeList> getRegionsByContent(Node*);
+ Ref<NodeList> getRegions();
+ Ref<NodeList> getContent();
using RefCounted<WebKitNamedFlow>::ref;
using RefCounted<WebKitNamedFlow>::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<NamedFlowCollection>, 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