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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 m_r->setValueAsString("50%"); 46 m_r->setValueAsString("50%");
47 } 47 }
48 48
49 SVGLength* cx() const { return m_cx.get(); } 49 SVGLength* cx() const { return m_cx.get(); }
50 SVGLength* cy() const { return m_cy.get(); } 50 SVGLength* cy() const { return m_cy.get(); }
51 SVGLength* r() const { return m_r.get(); } 51 SVGLength* r() const { return m_r.get(); }
52 SVGLength* fx() const { return m_fx.get(); } 52 SVGLength* fx() const { return m_fx.get(); }
53 SVGLength* fy() const { return m_fy.get(); } 53 SVGLength* fy() const { return m_fy.get(); }
54 SVGLength* fr() const { return m_fr.get(); } 54 SVGLength* fr() const { return m_fr.get(); }
55 55
56 void setCx(PassRefPtrWillBeRawPtr<SVGLength> value) { m_cx = value; m_cxSet = true; } 56 void setCx(RawPtr<SVGLength> value) { m_cx = value; m_cxSet = true; }
57 void setCy(PassRefPtrWillBeRawPtr<SVGLength> value) { m_cy = value; m_cySet = true; } 57 void setCy(RawPtr<SVGLength> value) { m_cy = value; m_cySet = true; }
58 void setR(PassRefPtrWillBeRawPtr<SVGLength> value) { m_r = value; m_rSet = t rue; } 58 void setR(RawPtr<SVGLength> value) { m_r = value; m_rSet = true; }
59 void setFx(PassRefPtrWillBeRawPtr<SVGLength> value) { m_fx = value; m_fxSet = true; } 59 void setFx(RawPtr<SVGLength> value) { m_fx = value; m_fxSet = true; }
60 void setFy(PassRefPtrWillBeRawPtr<SVGLength> value) { m_fy = value; m_fySet = true; } 60 void setFy(RawPtr<SVGLength> value) { m_fy = value; m_fySet = true; }
61 void setFr(PassRefPtrWillBeRawPtr<SVGLength> value) { m_fr = value; m_frSet = true; } 61 void setFr(RawPtr<SVGLength> value) { m_fr = value; m_frSet = true; }
62 62
63 bool hasCx() const { return m_cxSet; } 63 bool hasCx() const { return m_cxSet; }
64 bool hasCy() const { return m_cySet; } 64 bool hasCy() const { return m_cySet; }
65 bool hasR() const { return m_rSet; } 65 bool hasR() const { return m_rSet; }
66 bool hasFx() const { return m_fxSet; } 66 bool hasFx() const { return m_fxSet; }
67 bool hasFy() const { return m_fySet; } 67 bool hasFy() const { return m_fySet; }
68 bool hasFr() const { return m_frSet; } 68 bool hasFr() const { return m_frSet; }
69 69
70 DEFINE_INLINE_TRACE() 70 DEFINE_INLINE_TRACE()
71 { 71 {
72 visitor->trace(m_cx); 72 visitor->trace(m_cx);
73 visitor->trace(m_cy); 73 visitor->trace(m_cy);
74 visitor->trace(m_r); 74 visitor->trace(m_r);
75 visitor->trace(m_fx); 75 visitor->trace(m_fx);
76 visitor->trace(m_fy); 76 visitor->trace(m_fy);
77 visitor->trace(m_fr); 77 visitor->trace(m_fr);
78 } 78 }
79 79
80 private: 80 private:
81 // Properties 81 // Properties
82 RefPtrWillBeMember<SVGLength> m_cx; 82 Member<SVGLength> m_cx;
83 RefPtrWillBeMember<SVGLength> m_cy; 83 Member<SVGLength> m_cy;
84 RefPtrWillBeMember<SVGLength> m_r; 84 Member<SVGLength> m_r;
85 RefPtrWillBeMember<SVGLength> m_fx; 85 Member<SVGLength> m_fx;
86 RefPtrWillBeMember<SVGLength> m_fy; 86 Member<SVGLength> m_fy;
87 RefPtrWillBeMember<SVGLength> m_fr; 87 Member<SVGLength> m_fr;
88 88
89 // Property states 89 // Property states
90 bool m_cxSet : 1; 90 bool m_cxSet : 1;
91 bool m_cySet : 1; 91 bool m_cySet : 1;
92 bool m_rSet : 1; 92 bool m_rSet : 1;
93 bool m_fxSet : 1; 93 bool m_fxSet : 1;
94 bool m_fySet : 1; 94 bool m_fySet : 1;
95 bool m_frSet : 1; 95 bool m_frSet : 1;
96 }; 96 };
97 97
(...skipping 15 matching lines...) Expand all
113 { 113 {
114 } 114 }
115 115
116 RadialGradientAttributes m_attributes; 116 RadialGradientAttributes m_attributes;
117 }; 117 };
118 #endif 118 #endif
119 119
120 } // namespace blink 120 } // namespace blink
121 121
122 #endif 122 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/PatternAttributes.h ('k') | third_party/WebKit/Source/core/svg/SVGAElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698