diff --git a/mozilla/layout/base/nsPresShell.cpp b/mozilla/layout/base/nsPresShell.cpp index 0d56f9f9978..e5aa8f38422 100644 --- a/mozilla/layout/base/nsPresShell.cpp +++ b/mozilla/layout/base/nsPresShell.cpp @@ -193,7 +193,7 @@ FrameArena::AllocateFrame(size_t aSize, void** aResult) void* result = nsnull; // Round size to multiple of 4 - PR_ROUNDUP(aSize, 4); + aSize = PR_ROUNDUP(aSize, 4); // Check recyclers first if (aSize < gMaxRecycledSize) { diff --git a/mozilla/layout/html/base/src/nsPresShell.cpp b/mozilla/layout/html/base/src/nsPresShell.cpp index 0d56f9f9978..e5aa8f38422 100644 --- a/mozilla/layout/html/base/src/nsPresShell.cpp +++ b/mozilla/layout/html/base/src/nsPresShell.cpp @@ -193,7 +193,7 @@ FrameArena::AllocateFrame(size_t aSize, void** aResult) void* result = nsnull; // Round size to multiple of 4 - PR_ROUNDUP(aSize, 4); + aSize = PR_ROUNDUP(aSize, 4); // Check recyclers first if (aSize < gMaxRecycledSize) {