| 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 | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
| 4 * rights reserved. | 4 * rights reserved. |
| 5 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. | 5 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. |
| 6 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 6 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 STACK_ALLOCATED(); | 37 STACK_ALLOCATED(); |
| 38 | 38 |
| 39 public: | 39 public: |
| 40 explicit StylePropertySerializer(const StylePropertySet&); | 40 explicit StylePropertySerializer(const StylePropertySet&); |
| 41 | 41 |
| 42 String asText() const; | 42 String asText() const; |
| 43 String getPropertyValue(CSSPropertyID) const; | 43 String getPropertyValue(CSSPropertyID) const; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 String getCommonValue(const StylePropertyShorthand&) const; | 46 String getCommonValue(const StylePropertyShorthand&) const; |
| 47 String placeContentPropertyValue() const; | 47 String getAlignmentShorthandValue(const StylePropertyShorthand&) const; |
| 48 String borderPropertyValue() const; | 48 String borderPropertyValue() const; |
| 49 String getLayeredShorthandValue(const StylePropertyShorthand&) const; | 49 String getLayeredShorthandValue(const StylePropertyShorthand&) const; |
| 50 String get4Values(const StylePropertyShorthand&) const; | 50 String get4Values(const StylePropertyShorthand&) const; |
| 51 String borderSpacingValue(const StylePropertyShorthand&) const; | 51 String borderSpacingValue(const StylePropertyShorthand&) const; |
| 52 String getShorthandValue(const StylePropertyShorthand&, | 52 String getShorthandValue(const StylePropertyShorthand&, |
| 53 String separator = " ") const; | 53 String separator = " ") const; |
| 54 String fontValue() const; | 54 String fontValue() const; |
| 55 String fontVariantValue() const; | 55 String fontVariantValue() const; |
| 56 void appendFontLonghandValueIfNotNormal(CSSPropertyID, | 56 void appendFontLonghandValueIfNotNormal(CSSPropertyID, |
| 57 StringBuilder& result) const; | 57 StringBuilder& result) const; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 std::bitset<numCSSProperties> m_longhandPropertyUsed; | 136 std::bitset<numCSSProperties> m_longhandPropertyUsed; |
| 137 bool m_needToExpandAll; | 137 bool m_needToExpandAll; |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 const StylePropertySetForSerializer m_propertySet; | 140 const StylePropertySetForSerializer m_propertySet; |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 } // namespace blink | 143 } // namespace blink |
| 144 | 144 |
| 145 #endif // StylePropertySerializer_h | 145 #endif // StylePropertySerializer_h |
| OLD | NEW |