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

Side by Side Diff: Source/WebCore/rendering/svg/SVGImageBufferTools.cpp

Issue 9235065: Merge 105978 - crash in WebCore::RenderSVGContainer::paint (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 8 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 ASSERT(item); 80 ASSERT(item);
81 ASSERT(image); 81 ASSERT(image);
82 ASSERT(image->context()); 82 ASSERT(image->context());
83 83
84 PaintInfo info(image->context(), PaintInfo::infiniteRect(), PaintPhaseForegr ound, 0, 0, 0, 0); 84 PaintInfo info(image->context(), PaintInfo::infiniteRect(), PaintPhaseForegr ound, 0, 0, 0, 0);
85 85
86 AffineTransform& contentTransformation = currentContentTransformation(); 86 AffineTransform& contentTransformation = currentContentTransformation();
87 AffineTransform savedContentTransformation = contentTransformation; 87 AffineTransform savedContentTransformation = contentTransformation;
88 contentTransformation = subtreeContentTransformation * contentTransformation ; 88 contentTransformation = subtreeContentTransformation * contentTransformation ;
89 89
90 item->layoutIfNeeded(); 90 ASSERT(!item->needsLayout());
91 item->paint(info, IntPoint()); 91 item->paint(info, IntPoint());
92 92
93 contentTransformation = savedContentTransformation; 93 contentTransformation = savedContentTransformation;
94 } 94 }
95 95
96 void SVGImageBufferTools::clipToImageBuffer(GraphicsContext* context, const Affi neTransform& absoluteTransform, const FloatRect& clampedAbsoluteTargetRect, OwnP tr<ImageBuffer>& imageBuffer) 96 void SVGImageBufferTools::clipToImageBuffer(GraphicsContext* context, const Affi neTransform& absoluteTransform, const FloatRect& clampedAbsoluteTargetRect, OwnP tr<ImageBuffer>& imageBuffer)
97 { 97 {
98 ASSERT(context); 98 ASSERT(context);
99 ASSERT(imageBuffer); 99 ASSERT(imageBuffer);
100 100
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 { 132 {
133 AffineTransform::DecomposedType decomposition; 133 AffineTransform::DecomposedType decomposition;
134 transform.decompose(decomposition); 134 transform.decompose(decomposition);
135 decomposition.angle = 0; 135 decomposition.angle = 0;
136 transform.recompose(decomposition); 136 transform.recompose(decomposition);
137 } 137 }
138 138
139 } 139 }
140 140
141 #endif // ENABLE(SVG) 141 #endif // ENABLE(SVG)
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/svg/RenderSVGResourceSolidColor.cpp ('k') | Source/WebCore/rendering/svg/SVGInlineTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698