summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/ClientRectList.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/ClientRectList.h')
-rw-r--r--Source/WebCore/dom/ClientRectList.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/Source/WebCore/dom/ClientRectList.h b/Source/WebCore/dom/ClientRectList.h
index c421d8035..888430407 100644
--- a/Source/WebCore/dom/ClientRectList.h
+++ b/Source/WebCore/dom/ClientRectList.h
@@ -10,10 +10,10 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
@@ -24,11 +24,10 @@
*
*/
-#ifndef ClientRectList_h
-#define ClientRectList_h
+#pragma once
#include "FloatQuad.h"
-#include <wtf/PassRefPtr.h>
+#include <wtf/Ref.h>
#include <wtf/RefCounted.h>
#include <wtf/Vector.h>
@@ -38,20 +37,18 @@ namespace WebCore {
class ClientRectList : public RefCounted<ClientRectList> {
public:
- static PassRefPtr<ClientRectList> create() { return adoptRef(new ClientRectList); }
- static PassRefPtr<ClientRectList> create(const Vector<FloatQuad>& quads) { return adoptRef(new ClientRectList(quads)); }
- ~ClientRectList();
+ static Ref<ClientRectList> create() { return adoptRef(*new ClientRectList); }
+ static Ref<ClientRectList> create(const Vector<FloatQuad>& quads) { return adoptRef(*new ClientRectList(quads)); }
+ WEBCORE_EXPORT ~ClientRectList();
unsigned length() const;
ClientRect* item(unsigned index);
private:
- ClientRectList();
- explicit ClientRectList(const Vector<FloatQuad>&);
+ WEBCORE_EXPORT ClientRectList();
+ WEBCORE_EXPORT explicit ClientRectList(const Vector<FloatQuad>&);
- Vector<RefPtr<ClientRect>> m_list;
+ Vector<Ref<ClientRect>> m_list;
};
} // namespace WebCore
-
-#endif // ClientRectList_h