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

Side by Side Diff: third_party/WebKit/Source/core/svg/LinearGradientAttributes.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, 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 * 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 29 matching lines...) Expand all
40 , m_y2Set(false) 40 , m_y2Set(false)
41 { 41 {
42 m_x2->setValueAsString("100%"); 42 m_x2->setValueAsString("100%");
43 } 43 }
44 44
45 SVGLength* x1() const { return m_x1.get(); } 45 SVGLength* x1() const { return m_x1.get(); }
46 SVGLength* y1() const { return m_y1.get(); } 46 SVGLength* y1() const { return m_y1.get(); }
47 SVGLength* x2() const { return m_x2.get(); } 47 SVGLength* x2() const { return m_x2.get(); }
48 SVGLength* y2() const { return m_y2.get(); } 48 SVGLength* y2() const { return m_y2.get(); }
49 49
50 void setX1(PassRefPtrWillBeRawPtr<SVGLength> value) { m_x1 = value; m_x1Set = true; } 50 void setX1(RawPtr<SVGLength> value) { m_x1 = value; m_x1Set = true; }
51 void setY1(PassRefPtrWillBeRawPtr<SVGLength> value) { m_y1 = value; m_y1Set = true; } 51 void setY1(RawPtr<SVGLength> value) { m_y1 = value; m_y1Set = true; }
52 void setX2(PassRefPtrWillBeRawPtr<SVGLength> value) { m_x2 = value; m_x2Set = true; } 52 void setX2(RawPtr<SVGLength> value) { m_x2 = value; m_x2Set = true; }
53 void setY2(PassRefPtrWillBeRawPtr<SVGLength> value) { m_y2 = value; m_y2Set = true; } 53 void setY2(RawPtr<SVGLength> value) { m_y2 = value; m_y2Set = true; }
54 54
55 bool hasX1() const { return m_x1Set; } 55 bool hasX1() const { return m_x1Set; }
56 bool hasY1() const { return m_y1Set; } 56 bool hasY1() const { return m_y1Set; }
57 bool hasX2() const { return m_x2Set; } 57 bool hasX2() const { return m_x2Set; }
58 bool hasY2() const { return m_y2Set; } 58 bool hasY2() const { return m_y2Set; }
59 59
60 DEFINE_INLINE_TRACE() 60 DEFINE_INLINE_TRACE()
61 { 61 {
62 visitor->trace(m_x1); 62 visitor->trace(m_x1);
63 visitor->trace(m_y1); 63 visitor->trace(m_y1);
64 visitor->trace(m_x2); 64 visitor->trace(m_x2);
65 visitor->trace(m_y2); 65 visitor->trace(m_y2);
66 } 66 }
67 67
68 private: 68 private:
69 // Properties 69 // Properties
70 RefPtrWillBeMember<SVGLength> m_x1; 70 Member<SVGLength> m_x1;
71 RefPtrWillBeMember<SVGLength> m_y1; 71 Member<SVGLength> m_y1;
72 RefPtrWillBeMember<SVGLength> m_x2; 72 Member<SVGLength> m_x2;
73 RefPtrWillBeMember<SVGLength> m_y2; 73 Member<SVGLength> m_y2;
74 74
75 // Property states 75 // Property states
76 bool m_x1Set : 1; 76 bool m_x1Set : 1;
77 bool m_y1Set : 1; 77 bool m_y1Set : 1;
78 bool m_x2Set : 1; 78 bool m_x2Set : 1;
79 bool m_y2Set : 1; 79 bool m_y2Set : 1;
80 }; 80 };
81 81
82 #if ENABLE(OILPAN) 82 #if ENABLE(OILPAN)
83 // Wrapper object for the LinearGradientAttributes part object. 83 // Wrapper object for the LinearGradientAttributes part object.
(...skipping 15 matching lines...) Expand all
99 99
100 LinearGradientAttributes m_attributes; 100 LinearGradientAttributes m_attributes;
101 }; 101 };
102 #endif 102 #endif
103 103
104 } // namespace blink 104 } // namespace blink
105 105
106 #endif 106 #endif
107 107
108 // vim:ts=4:noet 108 // vim:ts=4:noet
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698