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

Side by Side Diff: third_party/WebKit/Source/core/svg/RadialGradientAttributes.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 23 matching lines...) Expand all
34 , m_fx(SVGLength::create(SVGLengthMode::Width)) 34 , m_fx(SVGLength::create(SVGLengthMode::Width))
35 , m_fy(SVGLength::create(SVGLengthMode::Height)) 35 , m_fy(SVGLength::create(SVGLengthMode::Height))
36 , m_fr(SVGLength::create(SVGLengthMode::Other)) 36 , m_fr(SVGLength::create(SVGLengthMode::Other))
37 , m_cxSet(false) 37 , m_cxSet(false)
38 , m_cySet(false) 38 , m_cySet(false)
39 , m_rSet(false) 39 , m_rSet(false)
40 , m_fxSet(false) 40 , m_fxSet(false)
41 , m_fySet(false) 41 , m_fySet(false)
42 , m_frSet(false) 42 , m_frSet(false)
43 { 43 {
44 m_cx->setValueAsString("50%", IGNORE_EXCEPTION); 44 m_cx->setValueAsString("50%");
45 m_cy->setValueAsString("50%", IGNORE_EXCEPTION); 45 m_cy->setValueAsString("50%");
46 m_r->setValueAsString("50%", IGNORE_EXCEPTION); 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(PassRefPtrWillBeRawPtr<SVGLength> value) { m_cx = value; m_cxSet = true; }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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

Powered by Google App Engine
This is Rietveld 408576698