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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.h

Issue 2400783002: Reformat comments in core/layout/svg (Closed)
Patch Set: Created 4 years, 2 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 2009-2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2009-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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool isTransformDependent() const { return m_gradient || m_pattern; } 65 bool isTransformDependent() const { return m_gradient || m_pattern; }
66 void prependTransform(const AffineTransform&); 66 void prependTransform(const AffineTransform&);
67 67
68 private: 68 private:
69 RefPtr<Gradient> m_gradient; 69 RefPtr<Gradient> m_gradient;
70 RefPtr<Pattern> m_pattern; 70 RefPtr<Pattern> m_pattern;
71 AffineTransform m_transform; // Used for gradient/pattern shaders. 71 AffineTransform m_transform; // Used for gradient/pattern shaders.
72 Color m_color; 72 Color m_color;
73 }; 73 };
74 74
75 // If |SVGPaintDescription::hasFallback| is true, |SVGPaintDescription::color| i s set to a fallback color. 75 // If |SVGPaintDescription::hasFallback| is true, |SVGPaintDescription::color|
76 // is set to a fallback color.
76 struct SVGPaintDescription { 77 struct SVGPaintDescription {
77 STACK_ALLOCATED(); 78 STACK_ALLOCATED();
78 SVGPaintDescription() 79 SVGPaintDescription()
79 : resource(nullptr), isValid(false), hasFallback(false) {} 80 : resource(nullptr), isValid(false), hasFallback(false) {}
80 SVGPaintDescription(Color color) 81 SVGPaintDescription(Color color)
81 : resource(nullptr), color(color), isValid(true), hasFallback(false) {} 82 : resource(nullptr), color(color), isValid(true), hasFallback(false) {}
82 SVGPaintDescription(LayoutSVGResourcePaintServer* resource) 83 SVGPaintDescription(LayoutSVGResourcePaintServer* resource)
83 : resource(resource), isValid(true), hasFallback(false) { 84 : resource(resource), isValid(true), hasFallback(false) {
84 ASSERT(resource); 85 ASSERT(resource);
85 } 86 }
(...skipping 27 matching lines...) Expand all
113 114
114 DEFINE_TYPE_CASTS(LayoutSVGResourcePaintServer, 115 DEFINE_TYPE_CASTS(LayoutSVGResourcePaintServer,
115 LayoutSVGResourceContainer, 116 LayoutSVGResourceContainer,
116 resource, 117 resource,
117 resource->isSVGPaintServer(), 118 resource->isSVGPaintServer(),
118 resource.isSVGPaintServer()); 119 resource.isSVGPaintServer());
119 120
120 } // namespace blink 121 } // namespace blink
121 122
122 #endif 123 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698