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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 // Draw the content into a Picture. 168 // Draw the content into a Picture.
169 OwnPtr<DisplayItemList> displayItemList; 169 OwnPtr<DisplayItemList> displayItemList;
170 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) 170 if (RuntimeEnabledFeatures::slimmingPaintEnabled())
171 displayItemList = DisplayItemList::create(); 171 displayItemList = DisplayItemList::create();
172 GraphicsContext recordingContext(nullptr, displayItemList.get()); 172 GraphicsContext recordingContext(nullptr, displayItemList.get());
173 recordingContext.beginRecording(FloatRect(FloatPoint(), tileBounds.size())); 173 recordingContext.beginRecording(FloatRect(FloatPoint(), tileBounds.size()));
174 174
175 ASSERT(attributes().patternContentElement()); 175 ASSERT(attributes().patternContentElement());
176 LayoutSVGResourceContainer* patternRenderer = 176 LayoutSVGResourceContainer* patternRenderer =
177 toLayoutSVGResourceContainer(attributes().patternContentElement()->rende rer()); 177 toLayoutSVGResourceContainer(attributes().patternContentElement()->layou tObject());
178 ASSERT(patternRenderer); 178 ASSERT(patternRenderer);
179 ASSERT(!patternRenderer->needsLayout()); 179 ASSERT(!patternRenderer->needsLayout());
180 180
181 SubtreeContentTransformScope contentTransformScope(contentTransform); 181 SubtreeContentTransformScope contentTransformScope(contentTransform);
182 182
183 { 183 {
184 TransformRecorder transformRecorder(recordingContext, patternRenderer->d isplayItemClient(), tileTransform); 184 TransformRecorder transformRecorder(recordingContext, patternRenderer->d isplayItemClient(), tileTransform);
185 for (LayoutObject* child = patternRenderer->firstChild(); child; child = child->nextSibling()) 185 for (LayoutObject* child = patternRenderer->firstChild(); child; child = child->nextSibling())
186 SVGPaintContext::paintSubtree(&recordingContext, child); 186 SVGPaintContext::paintSubtree(&recordingContext, child);
187 } 187 }
188 188
189 if (displayItemList) 189 if (displayItemList)
190 displayItemList->replay(&recordingContext); 190 displayItemList->replay(&recordingContext);
191 return recordingContext.endRecording(); 191 return recordingContext.endRecording();
192 } 192 }
193 193
194 } 194 }
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourceMasker.cpp ('k') | Source/core/layout/svg/LayoutSVGText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698