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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years 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) 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
4 * Copyright 2014 The Chromium Authors. All rights reserved. 4 * Copyright 2014 The Chromium Authors. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 SkPictureBuilder pictureBuilder(bounds); 193 SkPictureBuilder pictureBuilder(bounds);
194 194
195 const LayoutSVGResourceContainer* patternLayoutObject = resolveContentElemen t(); 195 const LayoutSVGResourceContainer* patternLayoutObject = resolveContentElemen t();
196 ASSERT(patternLayoutObject && !patternLayoutObject->needsLayout()); 196 ASSERT(patternLayoutObject && !patternLayoutObject->needsLayout());
197 197
198 SubtreeContentTransformScope contentTransformScope(contentTransform); 198 SubtreeContentTransformScope contentTransformScope(contentTransform);
199 199
200 { 200 {
201 TransformRecorder transformRecorder(pictureBuilder.context(), *patternLa youtObject, tileTransform); 201 TransformRecorder transformRecorder(pictureBuilder.context(), *patternLa youtObject, tileTransform);
202 for (LayoutObject* child = patternLayoutObject->firstChild(); child; chi ld = child->nextSibling()) 202 for (LayoutObject* child = patternLayoutObject->firstChild(); child; chi ld = child->nextSibling())
203 SVGPaintContext::paintSubtree(&pictureBuilder.context(), child); 203 SVGPaintContext::paintSubtree(pictureBuilder.context(), child);
204 } 204 }
205 205
206 return pictureBuilder.endRecording(); 206 return pictureBuilder.endRecording();
207 } 207 }
208 208
209 } 209 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698