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

Side by Side Diff: Source/core/rendering/svg/SVGRenderingContext.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/svg/RenderSVGText.cpp ('k') | Source/core/svg/SVGElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org>
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. All rights reserved. 5 * Copyright (C) 2009 Google, Inc. All rights reserved.
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 m_paintInfo->context->endLayer(); 83 m_paintInfo->context->endLayer();
84 84
85 if (m_renderingFlags & RestoreGraphicsContext) 85 if (m_renderingFlags & RestoreGraphicsContext)
86 m_paintInfo->context->restore(); 86 m_paintInfo->context->restore();
87 } 87 }
88 88
89 void SVGRenderingContext::prepareToRenderSVGContent(RenderObject* object, PaintI nfo& paintInfo, NeedsGraphicsContextSave needsGraphicsContextSave) 89 void SVGRenderingContext::prepareToRenderSVGContent(RenderObject* object, PaintI nfo& paintInfo, NeedsGraphicsContextSave needsGraphicsContextSave)
90 { 90 {
91 ASSERT(object); 91 ASSERT(object);
92 92
93 #ifndef NDEBUG 93 #if ENABLE(ASSERT)
94 // This function must not be called twice! 94 // This function must not be called twice!
95 ASSERT(!(m_renderingFlags & PrepareToRenderSVGContentWasCalled)); 95 ASSERT(!(m_renderingFlags & PrepareToRenderSVGContentWasCalled));
96 m_renderingFlags |= PrepareToRenderSVGContentWasCalled; 96 m_renderingFlags |= PrepareToRenderSVGContentWasCalled;
97 #endif 97 #endif
98 98
99 m_object = object; 99 m_object = object;
100 m_paintInfo = &paintInfo; 100 m_paintInfo = &paintInfo;
101 m_filter = 0; 101 m_filter = 0;
102 102
103 // We need to save / restore the context even if the initialization failed. 103 // We need to save / restore the context even if the initialization failed.
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 toRenderSVGImage(m_object)->paintForeground(bufferedInfo); 302 toRenderSVGImage(m_object)->paintForeground(bufferedInfo);
303 } else 303 } else
304 return false; 304 return false;
305 } 305 }
306 306
307 m_paintInfo->context->drawImageBuffer(imageBuffer.get(), boundingBox); 307 m_paintInfo->context->drawImageBuffer(imageBuffer.get(), boundingBox);
308 return true; 308 return true;
309 } 309 }
310 310
311 } 311 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGText.cpp ('k') | Source/core/svg/SVGElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698