Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4651)

Unified Diff: Source/core/rendering/RenderArena.h

Issue 16695002: Uptake WebKit Changeset r149185. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Refetch render view and null check AXObjectCache Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/FrameView.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderArena.h
diff --git a/Source/core/rendering/RenderArena.h b/Source/core/rendering/RenderArena.h
index 0dd278d98f813d17428a465db479cb97e804079e..255509eda6589f5fcae051a79c92f5709a6721b0 100644
--- a/Source/core/rendering/RenderArena.h
+++ b/Source/core/rendering/RenderArena.h
@@ -36,17 +36,18 @@
#define RenderArena_h
#include "core/platform/Arena.h"
-#include <wtf/FastAllocBase.h>
-#include <wtf/Noncopyable.h>
+#include "wtf/FastAllocBase.h"
+#include "wtf/Noncopyable.h"
+#include "wtf/PassRefPtr.h"
+#include "wtf/RefCounted.h"
namespace WebCore {
static const size_t gMaxRecycledSize = 1024;
-class RenderArena {
- WTF_MAKE_NONCOPYABLE(RenderArena); WTF_MAKE_FAST_ALLOCATED;
+class RenderArena : public RefCounted<RenderArena> {
public:
- explicit RenderArena(unsigned arenaSize = 8192);
+ static PassRefPtr<RenderArena> create() { return adoptRef(new RenderArena); }
~RenderArena();
// Memory management functions
@@ -57,6 +58,8 @@ public:
size_t totalRenderArenaAllocatedBytes() const { return m_totalAllocated; }
private:
+ RenderArena(unsigned arenaSize = 8192);
+
// Underlying arena pool
ArenaPool m_pool;
« no previous file with comments | « Source/core/page/FrameView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698