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

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

Issue 2713673005: client-goodbye
Patch Set: Created 3 years, 10 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) 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 FloatRect bounds(FloatPoint(), tileBounds.size()); 201 FloatRect bounds(FloatPoint(), tileBounds.size());
202 PaintRecordBuilder builder(bounds); 202 PaintRecordBuilder builder(bounds);
203 203
204 const LayoutSVGResourceContainer* patternLayoutObject = 204 const LayoutSVGResourceContainer* patternLayoutObject =
205 resolveContentElement(); 205 resolveContentElement();
206 ASSERT(patternLayoutObject && !patternLayoutObject->needsLayout()); 206 ASSERT(patternLayoutObject && !patternLayoutObject->needsLayout());
207 207
208 SubtreeContentTransformScope contentTransformScope(contentTransform); 208 SubtreeContentTransformScope contentTransformScope(contentTransform);
209 209
210 { 210 {
211 TransformRecorder transformRecorder(builder.context(), *patternLayoutObject, 211 TransformRecorder transformRecorder(
212 tileTransform); 212 builder.context(), tileTransform, patternLayoutObject->visualRect(),
213 patternLayoutObject->debugName(),
214 patternLayoutObject
215 ->paintedOutputOfObjectHasNoEffectRegardlessOfSize());
213 for (LayoutObject* child = patternLayoutObject->firstChild(); child; 216 for (LayoutObject* child = patternLayoutObject->firstChild(); child;
214 child = child->nextSibling()) 217 child = child->nextSibling())
215 SVGPaintContext::paintSubtree(builder.context(), child); 218 SVGPaintContext::paintSubtree(builder.context(), child);
216 } 219 }
217 220
218 return builder.endRecording(); 221 return builder.endRecording();
219 } 222 }
220 223
221 } // namespace blink 224 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698