| OLD | NEW |
| 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 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 #include "core/svg/GradientAttributes.h" | 23 #include "core/svg/GradientAttributes.h" |
| 24 #include "platform/heap/Handle.h" | 24 #include "platform/heap/Handle.h" |
| 25 | 25 |
| 26 namespace blink { | 26 namespace blink { |
| 27 | 27 |
| 28 struct LinearGradientAttributes : GradientAttributes { | 28 struct LinearGradientAttributes : GradientAttributes { |
| 29 DISALLOW_ALLOCATION(); | 29 DISALLOW_ALLOCATION(); |
| 30 public: | 30 public: |
| 31 LinearGradientAttributes() | 31 LinearGradientAttributes() |
| 32 : m_x1(SVGLength::create(LengthModeWidth)) | 32 : m_x1(SVGLength::create(SVGLengthMode::Width)) |
| 33 , m_y1(SVGLength::create(LengthModeWidth)) | 33 , m_y1(SVGLength::create(SVGLengthMode::Height)) |
| 34 , m_x2(SVGLength::create(LengthModeWidth)) | 34 , m_x2(SVGLength::create(SVGLengthMode::Width)) |
| 35 , m_y2(SVGLength::create(LengthModeWidth)) | 35 , m_y2(SVGLength::create(SVGLengthMode::Height)) |
| 36 , m_x1Set(false) | 36 , m_x1Set(false) |
| 37 , m_y1Set(false) | 37 , m_y1Set(false) |
| 38 , m_x2Set(false) | 38 , m_x2Set(false) |
| 39 , m_y2Set(false) | 39 , m_y2Set(false) |
| 40 { | 40 { |
| 41 m_x2->setValueAsString("100%", ASSERT_NO_EXCEPTION); | 41 m_x2->setValueAsString("100%", ASSERT_NO_EXCEPTION); |
| 42 } | 42 } |
| 43 | 43 |
| 44 SVGLength* x1() const { return m_x1.get(); } | 44 SVGLength* x1() const { return m_x1.get(); } |
| 45 SVGLength* y1() const { return m_y1.get(); } | 45 SVGLength* y1() const { return m_y1.get(); } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 LinearGradientAttributes m_attributes; | 99 LinearGradientAttributes m_attributes; |
| 100 }; | 100 }; |
| 101 #endif | 101 #endif |
| 102 | 102 |
| 103 } // namespace blink | 103 } // namespace blink |
| 104 | 104 |
| 105 #endif | 105 #endif |
| 106 | 106 |
| 107 // vim:ts=4:noet | 107 // vim:ts=4:noet |
| OLD | NEW |