| 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, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
| 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. | 4 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. |
| 5 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 5 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 , m_id(property.id()) | 72 , m_id(property.id()) |
| 73 , m_isImportant(property.isImportant()) | 73 , m_isImportant(property.isImportant()) |
| 74 , m_isImplicit(property.isImplicit()) | 74 , m_isImplicit(property.isImplicit()) |
| 75 , m_isInherited(property.isInherited()) { } | 75 , m_isInherited(property.isInherited()) { } |
| 76 | 76 |
| 77 // TODO(sashab): Make this take a const CSSValue&. | 77 // TODO(sashab): Make this take a const CSSValue&. |
| 78 PropertyValueForSerializer(CSSPropertyID id, const CSSValue* value, bool
isImportant) | 78 PropertyValueForSerializer(CSSPropertyID id, const CSSValue* value, bool
isImportant) |
| 79 : m_value(value) | 79 : m_value(value) |
| 80 , m_id(id) | 80 , m_id(id) |
| 81 , m_isImportant(isImportant) | 81 , m_isImportant(isImportant) |
| 82 , m_isImplicit(value->isImplicitInitialValue()) | 82 , m_isImplicit(value->isImplicit()) |
| 83 , m_isInherited(value->isInheritedValue()) { } | 83 , m_isInherited(value->isInheritedValue()) { } |
| 84 | 84 |
| 85 CSSPropertyID id() const { return m_id; } | 85 CSSPropertyID id() const { return m_id; } |
| 86 const CSSValue* value() const { return m_value; } | 86 const CSSValue* value() const { return m_value; } |
| 87 bool isImportant() const { return m_isImportant; } | 87 bool isImportant() const { return m_isImportant; } |
| 88 bool isImplicit() const { return m_isImplicit; } | 88 bool isImplicit() const { return m_isImplicit; } |
| 89 bool isInherited() const { return m_isInherited; } | 89 bool isInherited() const { return m_isInherited; } |
| 90 bool isValid() const { return m_value; } | 90 bool isValid() const { return m_value; } |
| 91 | 91 |
| 92 private: | 92 private: |
| (...skipping 29 matching lines...) Expand all Loading... |
| 122 std::bitset<numCSSProperties> m_longhandPropertyUsed; | 122 std::bitset<numCSSProperties> m_longhandPropertyUsed; |
| 123 bool m_needToExpandAll; | 123 bool m_needToExpandAll; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 const StylePropertySetForSerializer m_propertySet; | 126 const StylePropertySetForSerializer m_propertySet; |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace blink | 129 } // namespace blink |
| 130 | 130 |
| 131 #endif // StylePropertySerializer_h | 131 #endif // StylePropertySerializer_h |
| OLD | NEW |