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

Unified Diff: Source/core/platform/Partitions.cpp

Issue 16896019: Replace RenderArena with PartitionAlloc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/platform/Partitions.cpp
diff --git a/Source/core/loader/UniqueIdentifier.cpp b/Source/core/platform/Partitions.cpp
similarity index 81%
copy from Source/core/loader/UniqueIdentifier.cpp
copy to Source/core/platform/Partitions.cpp
index 0ad56563e3e214a67acd8c53decb085ad4250cb9..f7d8ac1cc9bf15909400eade6c955038a58b3066 100644
--- a/Source/core/loader/UniqueIdentifier.cpp
+++ b/Source/core/platform/Partitions.cpp
@@ -28,17 +28,25 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
#include "config.h"
-#include "core/loader/UniqueIdentifier.h"
+#include "core/platform/Partitions.h"
namespace WebCore {
-static unsigned long s_uniqueIdentifier = 0;
+PartitionRoot Partitions::m_objectModelRoot;
+PartitionRoot Partitions::m_renderingRoot;
-unsigned long createUniqueIdentifier()
+void Partitions::init()
{
- return ++s_uniqueIdentifier;
+ partitionAllocInit(&m_objectModelRoot);
+ partitionAllocInit(&m_renderingRoot);
}
-} // namespace WebCore
+void Partitions::shutdown()
+{
+ partitionAllocShutdown(&m_objectModelRoot);
+ partitionAllocShutdown(&m_renderingRoot);
+}
+} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698