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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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) 2008 Eric Seidel <eric@webkit.org> 3 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
4 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 4 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 93
94 if (!gradientData->gradient) 94 if (!gradientData->gradient)
95 return SVGPaintServer::invalid(); 95 return SVGPaintServer::invalid();
96 96
97 gradientData->gradient->setGradientSpaceTransform(gradientData->userspaceTra nsform); 97 gradientData->gradient->setGradientSpaceTransform(gradientData->userspaceTra nsform);
98 98
99 return SVGPaintServer(gradientData->gradient); 99 return SVGPaintServer(gradientData->gradient);
100 } 100 }
101 101
102 bool LayoutSVGResourceGradient::isChildAllowed(LayoutObject* child, const Layout Style&) const 102 bool LayoutSVGResourceGradient::isChildAllowed(LayoutObject* child, const Comput edStyle&) const
103 { 103 {
104 if (child->isSVGGradientStop()) 104 if (child->isSVGGradientStop())
105 return true; 105 return true;
106 106
107 if (!child->isSVGResourceContainer()) 107 if (!child->isSVGResourceContainer())
108 return false; 108 return false;
109 109
110 return toLayoutSVGResourceContainer(child)->isSVGPaintServer(); 110 return toLayoutSVGResourceContainer(child)->isSVGPaintServer();
111 } 111 }
112 112
(...skipping 16 matching lines...) Expand all
129 return SpreadMethodReflect; 129 return SpreadMethodReflect;
130 case SVGSpreadMethodRepeat: 130 case SVGSpreadMethodRepeat:
131 return SpreadMethodRepeat; 131 return SpreadMethodRepeat;
132 } 132 }
133 133
134 ASSERT_NOT_REACHED(); 134 ASSERT_NOT_REACHED();
135 return SpreadMethodPad; 135 return SpreadMethodPad;
136 } 136 }
137 137
138 } 138 }
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourceGradient.h ('k') | Source/core/layout/svg/LayoutSVGResourceMasker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698