Chromium Code Reviews| 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, 2007, 2010 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. |
| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 result.append(toCSSPrimitiveValue(m_values[i].get())->customCssText( AlwaysQuoteCSSString)); | 120 result.append(toCSSPrimitiveValue(m_values[i].get())->customCssText( AlwaysQuoteCSSString)); |
| 121 else | 121 else |
| 122 result.append(m_values[i]->cssText()); | 122 result.append(m_values[i]->cssText()); |
| 123 } | 123 } |
| 124 | 124 |
| 125 return result.toString(); | 125 return result.toString(); |
| 126 } | 126 } |
| 127 | 127 |
| 128 bool CSSValueList::equals(const CSSValueList& other) const | 128 bool CSSValueList::equals(const CSSValueList& other) const |
| 129 { | 129 { |
| 130 return m_valueListSeparator == other.m_valueListSeparator && compareCSSValue Vector<CSSValue>(m_values, other.m_values); | 130 return m_valueListSeparator == other.m_valueListSeparator && compareCSSValue Vector<CSSValue>(Vector<RefPtr<CSSValue> >(m_values), Vector<RefPtr<CSSValue> >( other.m_values)); |
|
abarth-chromium
2013/09/11 18:16:41
This has got to be wrong. Can you add a FIXME com
| |
| 131 } | 131 } |
| 132 | 132 |
| 133 bool CSSValueList::equals(const CSSValue& other) const | 133 bool CSSValueList::equals(const CSSValue& other) const |
| 134 { | 134 { |
| 135 if (m_values.size() != 1) | 135 if (m_values.size() != 1) |
| 136 return false; | 136 return false; |
| 137 | 137 |
| 138 const RefPtr<CSSValue>& value = m_values[0]; | 138 const RefPtr<CSSValue>& value = m_values[0]; |
| 139 return value && value->equals(other); | 139 return value && value->equals(other); |
| 140 } | 140 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 191 for (unsigned i = 0; i < m_values.size(); ++i) | 191 for (unsigned i = 0; i < m_values.size(); ++i) |
| 192 m_values[i] = cloneFrom.m_values[i]->cloneForCSSOM(); | 192 m_values[i] = cloneFrom.m_values[i]->cloneForCSSOM(); |
| 193 } | 193 } |
| 194 | 194 |
| 195 PassRefPtr<CSSValueList> CSSValueList::cloneForCSSOM() const | 195 PassRefPtr<CSSValueList> CSSValueList::cloneForCSSOM() const |
| 196 { | 196 { |
| 197 return adoptRef(new CSSValueList(*this)); | 197 return adoptRef(new CSSValueList(*this)); |
| 198 } | 198 } |
| 199 | 199 |
| 200 } // namespace WebCore | 200 } // namespace WebCore |
| OLD | NEW |