summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/DashboardRegion.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/css/DashboardRegion.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/css/DashboardRegion.h')
-rw-r--r--Source/WebCore/css/DashboardRegion.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/Source/WebCore/css/DashboardRegion.h b/Source/WebCore/css/DashboardRegion.h
index 5b5f0bd2e..a811d8f73 100644
--- a/Source/WebCore/css/DashboardRegion.h
+++ b/Source/WebCore/css/DashboardRegion.h
@@ -18,18 +18,17 @@
* Boston, MA 02110-1301, USA.
*/
-#ifndef DashboardRegion_h
-#define DashboardRegion_h
-
-#include "Rect.h"
+#pragma once
#if ENABLE(DASHBOARD_SUPPORT)
+#include "Rect.h"
+
namespace WebCore {
-class DashboardRegion : public RectBase, public RefCounted<DashboardRegion> {
+class DashboardRegion final : public RectBase, public RefCounted<DashboardRegion> {
public:
- static PassRefPtr<DashboardRegion> create() { return adoptRef(new DashboardRegion); }
+ static Ref<DashboardRegion> create() { return adoptRef(*new DashboardRegion); }
bool equals(const DashboardRegion& other) const
{
return m_label == other.m_label && m_geometryType == other.m_geometryType
@@ -47,8 +46,6 @@ private:
DashboardRegion() : m_isCircle(false), m_isRectangle(false) { }
};
-} // namespace
-
-#endif
+} // namespace WebCore
#endif