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

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

Issue 1544673003: Refactor propagation of parsing errors for SVG attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 21 matching lines...) Expand all
32 LinearGradientAttributes() 32 LinearGradientAttributes()
33 : m_x1(SVGLength::create(SVGLengthMode::Width)) 33 : m_x1(SVGLength::create(SVGLengthMode::Width))
34 , m_y1(SVGLength::create(SVGLengthMode::Height)) 34 , m_y1(SVGLength::create(SVGLengthMode::Height))
35 , m_x2(SVGLength::create(SVGLengthMode::Width)) 35 , m_x2(SVGLength::create(SVGLengthMode::Width))
36 , m_y2(SVGLength::create(SVGLengthMode::Height)) 36 , m_y2(SVGLength::create(SVGLengthMode::Height))
37 , m_x1Set(false) 37 , m_x1Set(false)
38 , m_y1Set(false) 38 , m_y1Set(false)
39 , m_x2Set(false) 39 , m_x2Set(false)
40 , m_y2Set(false) 40 , m_y2Set(false)
41 { 41 {
42 m_x2->setValueAsString("100%", ASSERT_NO_EXCEPTION); 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(PassRefPtrWillBeRawPtr<SVGLength> value) { m_x1 = value; m_x1Set = true; }
51 void setY1(PassRefPtrWillBeRawPtr<SVGLength> value) { m_y1 = value; m_y1Set = true; } 51 void setY1(PassRefPtrWillBeRawPtr<SVGLength> value) { m_y1 = value; m_y1Set = true; }
52 void setX2(PassRefPtrWillBeRawPtr<SVGLength> value) { m_x2 = value; m_x2Set = true; } 52 void setX2(PassRefPtrWillBeRawPtr<SVGLength> value) { m_x2 = value; m_x2Set = true; }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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