| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. | 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #ifndef Pair_h | 21 #ifndef Pair_h |
| 22 #define Pair_h | 22 #define Pair_h |
| 23 | 23 |
| 24 #include "core/css/CSSPrimitiveValue.h" | 24 #include "core/css/CSSPrimitiveValue.h" |
| 25 #include <wtf/PassRefPtr.h> | 25 #include "wtf/PassRefPtr.h" |
| 26 #include <wtf/RefCounted.h> | 26 #include "wtf/RefCounted.h" |
| 27 #include <wtf/text/StringBuilder.h> | 27 #include "wtf/text/StringBuilder.h" |
| 28 | 28 |
| 29 namespace WebCore { | 29 namespace WebCore { |
| 30 | 30 |
| 31 // A primitive value representing a pair. This is useful for properties like bo
rder-radius, background-size/position, | 31 // A primitive value representing a pair. This is useful for properties like bo
rder-radius, background-size/position, |
| 32 // and border-spacing (all of which are space-separated sets of two values). At
the moment we are only using it for | 32 // and border-spacing (all of which are space-separated sets of two values). At
the moment we are only using it for |
| 33 // border-radius and background-size, but (FIXME) border-spacing and background-
position could be converted over to use | 33 // border-radius and background-size, but (FIXME) border-spacing and background-
position could be converted over to use |
| 34 // it (eliminating some extra -webkit- internal properties). | 34 // it (eliminating some extra -webkit- internal properties). |
| 35 class Pair : public RefCounted<Pair> { | 35 class Pair : public RefCounted<Pair> { |
| 36 public: | 36 public: |
| 37 static PassRefPtr<Pair> create() | 37 static PassRefPtr<Pair> create() |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 return first + ' ' + second; | 78 return first + ' ' + second; |
| 79 } | 79 } |
| 80 | 80 |
| 81 RefPtr<CSSPrimitiveValue> m_first; | 81 RefPtr<CSSPrimitiveValue> m_first; |
| 82 RefPtr<CSSPrimitiveValue> m_second; | 82 RefPtr<CSSPrimitiveValue> m_second; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace | 85 } // namespace |
| 86 | 86 |
| 87 #endif | 87 #endif |
| OLD | NEW |