| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "wtf/text/StringBuilder.h" | 30 #include "wtf/text/StringBuilder.h" |
| 31 #include "wtf/text/WTFString.h" | 31 #include "wtf/text/WTFString.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 SVGRect::SVGRect() | 35 SVGRect::SVGRect() |
| 36 : m_isValid(true) | 36 : m_isValid(true) |
| 37 { | 37 { |
| 38 } | 38 } |
| 39 | 39 |
| 40 SVGRect::SVGRect(InvalidSVGRectTag) | |
| 41 { | |
| 42 setInvalid(); | |
| 43 } | |
| 44 | |
| 45 SVGRect::SVGRect(const FloatRect& rect) | 40 SVGRect::SVGRect(const FloatRect& rect) |
| 46 : m_isValid(true) | 41 : m_isValid(true) |
| 47 , m_value(rect) | 42 , m_value(rect) |
| 48 { | 43 { |
| 49 } | 44 } |
| 50 | 45 |
| 51 PassRefPtrWillBeRawPtr<SVGRect> SVGRect::clone() const | 46 PassRefPtrWillBeRawPtr<SVGRect> SVGRect::clone() const |
| 52 { | 47 { |
| 53 return SVGRect::create(m_value); | 48 return SVGRect::create(m_value); |
| 54 } | 49 } |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 return -1; | 145 return -1; |
| 151 } | 146 } |
| 152 | 147 |
| 153 void SVGRect::setInvalid() | 148 void SVGRect::setInvalid() |
| 154 { | 149 { |
| 155 m_value = FloatRect(0.0f, 0.0f, 0.0f, 0.0f); | 150 m_value = FloatRect(0.0f, 0.0f, 0.0f, 0.0f); |
| 156 m_isValid = false; | 151 m_isValid = false; |
| 157 } | 152 } |
| 158 | 153 |
| 159 } | 154 } |
| OLD | NEW |