| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |