| 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, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 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 blink { | 29 namespace blink { |
| 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 FINAL : public RefCountedWillBeGarbageCollected<Pair> { | 35 class Pair final : public RefCountedWillBeGarbageCollected<Pair> { |
| 36 public: | 36 public: |
| 37 enum IdenticalValuesPolicy { DropIdenticalValues, KeepIdenticalValues }; | 37 enum IdenticalValuesPolicy { DropIdenticalValues, KeepIdenticalValues }; |
| 38 | 38 |
| 39 static PassRefPtrWillBeRawPtr<Pair> create(PassRefPtrWillBeRawPtr<CSSPrimiti
veValue> first, PassRefPtrWillBeRawPtr<CSSPrimitiveValue> second, | 39 static PassRefPtrWillBeRawPtr<Pair> create(PassRefPtrWillBeRawPtr<CSSPrimiti
veValue> first, PassRefPtrWillBeRawPtr<CSSPrimitiveValue> second, |
| 40 IdenticalValuesPolicy identicalValuesPolicy) | 40 IdenticalValuesPolicy identicalValuesPolicy) |
| 41 { | 41 { |
| 42 return adoptRefWillBeNoop(new Pair(first, second, identicalValuesPolicy)
); | 42 return adoptRefWillBeNoop(new Pair(first, second, identicalValuesPolicy)
); |
| 43 } | 43 } |
| 44 | 44 |
| 45 CSSPrimitiveValue* first() const { return m_first.get(); } | 45 CSSPrimitiveValue* first() const { return m_first.get(); } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 } | 83 } |
| 84 | 84 |
| 85 RefPtrWillBeMember<CSSPrimitiveValue> m_first; | 85 RefPtrWillBeMember<CSSPrimitiveValue> m_first; |
| 86 RefPtrWillBeMember<CSSPrimitiveValue> m_second; | 86 RefPtrWillBeMember<CSSPrimitiveValue> m_second; |
| 87 IdenticalValuesPolicy m_identicalValuesPolicy; | 87 IdenticalValuesPolicy m_identicalValuesPolicy; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace | 90 } // namespace |
| 91 | 91 |
| 92 #endif | 92 #endif |
| OLD | NEW |