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

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

Issue 20231002: Replace RenderArena with PartitionAlloc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 years, 5 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/rendering/RenderNamedFlowThread.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderObject.h
diff --git a/Source/core/rendering/RenderObject.h b/Source/core/rendering/RenderObject.h
index d85358cf1cc174454cc713162e7db255f6ed5c1a..1513d305fd98caa1f7e458dd0f9a8a0616dd2d26 100644
--- a/Source/core/rendering/RenderObject.h
+++ b/Source/core/rendering/RenderObject.h
@@ -301,20 +301,11 @@ public:
static RenderObject* createObject(Element*, RenderStyle*);
- // Overloaded new operator. Derived classes must override operator new
- // in order to allocate out of the RenderArena.
- void* operator new(size_t, RenderArena*);
-
- // Overridden to prevent the normal delete from being called.
- void operator delete(void*, size_t);
-
-private:
- // The normal operator new is disallowed on all render objects.
- void* operator new(size_t) throw();
+ // RenderObjects are allocated out of the rendering partition.
+ void* operator new(size_t);
+ void operator delete(void*);
public:
- RenderArena* renderArena() const { return document()->renderArena(); }
-
bool isPseudoElement() const { return node() && node()->isPseudoElement(); }
virtual bool isBR() const { return false; }
@@ -1019,7 +1010,7 @@ protected:
void clearLayoutRootIfNeeded() const;
virtual void willBeDestroyed();
- void arenaDelete(RenderArena*, void* objectBase);
+ void postDestroy();
virtual bool canBeReplacedWithInlineRunIn() const;
« no previous file with comments | « Source/core/rendering/RenderNamedFlowThread.cpp ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698