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

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

Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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/page/scrolling/ScrollingCoordinator.h ('k') | Source/core/platform/CalculationValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/Arena.cpp
diff --git a/Source/core/platform/Arena.cpp b/Source/core/platform/Arena.cpp
index fff0291ded4dae90c1e9abcd9db9f6e83e7e9dcd..26b62753fc38862b474f87acf367ad71b5d6b7b2 100644
--- a/Source/core/platform/Arena.cpp
+++ b/Source/core/platform/Arena.cpp
@@ -94,7 +94,7 @@ void InitArenaPool(ArenaPool* pool, const char*, unsigned size, unsigned align)
pool->first.next = NULL;
pool->first.base = pool->first.avail = pool->first.limit = (uword)ARENA_ALIGN(&pool->first + 1);
pool->current = &pool->first;
- pool->arenasize = size;
+ pool->arenasize = size;
}
void* ArenaAllocate(ArenaPool* pool, unsigned int numBytes, unsigned int& bytesAllocated)
@@ -103,7 +103,7 @@ void* ArenaAllocate(ArenaPool* pool, unsigned int numBytes, unsigned int& bytesA
char* returnPointer;
ASSERT((numBytes & pool->mask) == 0);
-
+
numBytes = (uword)ARENA_ALIGN(numBytes);
// attempt to allocate from arenas at pool->current
@@ -120,7 +120,7 @@ void* ArenaAllocate(ArenaPool* pool, unsigned int numBytes, unsigned int& bytesA
}
// attempt to allocate from the heap
- {
+ {
unsigned int size = max(pool->arenasize, numBytes);
size += sizeof *arena + pool->mask; /* header and alignment slop */
#ifdef DEBUG_ARENA_MALLOC
@@ -165,7 +165,7 @@ static void FreeArenaList(ArenaPool* pool, Arena* head)
do {
*arenaPointer = arena->next;
-#ifdef DEBUG
+#ifdef DEBUG
memset((void*)(arena), FREE_PATTERN, (arena)->limit - (uword)(arena));
#endif
« no previous file with comments | « Source/core/page/scrolling/ScrollingCoordinator.h ('k') | Source/core/platform/CalculationValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698