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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 String getCommonValue(const StylePropertyShorthand&) const; | 43 String getCommonValue(const StylePropertyShorthand&) const; |
44 String borderPropertyValue() const; | 44 String borderPropertyValue() const; |
45 String getLayeredShorthandValue(const StylePropertyShorthand&) const; | 45 String getLayeredShorthandValue(const StylePropertyShorthand&) const; |
46 String get4Values(const StylePropertyShorthand&) const; | 46 String get4Values(const StylePropertyShorthand&) const; |
47 String borderSpacingValue(const StylePropertyShorthand&) const; | 47 String borderSpacingValue(const StylePropertyShorthand&) const; |
48 String getShorthandValue(const StylePropertyShorthand&, String separator = "
") const; | 48 String getShorthandValue(const StylePropertyShorthand&, String separator = "
") const; |
49 String fontValue() const; | 49 String fontValue() const; |
50 String fontVariantValue() const; | 50 String fontVariantValue() const; |
51 void appendFontLonghandValueIfNotNormal(CSSPropertyID, StringBuilder& result
) const; | 51 void appendFontLonghandValueIfNotNormal(CSSPropertyID, StringBuilder& result
) const; |
52 String backgroundRepeatPropertyValue() const; | 52 String backgroundRepeatPropertyValue() const; |
| 53 String offsetValue() const; |
53 String getPropertyText(CSSPropertyID, const String& value, bool isImportant,
bool isNotFirstDecl) const; | 54 String getPropertyText(CSSPropertyID, const String& value, bool isImportant,
bool isNotFirstDecl) const; |
54 bool isPropertyShorthandAvailable(const StylePropertyShorthand&) const; | 55 bool isPropertyShorthandAvailable(const StylePropertyShorthand&) const; |
55 bool shorthandHasOnlyInitialOrInheritedValue(const StylePropertyShorthand&)
const; | 56 bool shorthandHasOnlyInitialOrInheritedValue(const StylePropertyShorthand&)
const; |
56 void appendBackgroundPropertyAsText(StringBuilder& result, unsigned& numDecl
s) const; | 57 void appendBackgroundPropertyAsText(StringBuilder& result, unsigned& numDecl
s) const; |
57 | 58 |
58 // This function does checks common to all shorthands, and returns: | 59 // This function does checks common to all shorthands, and returns: |
59 // - The serialization if the shorthand serializes as a css-wide keyword. | 60 // - The serialization if the shorthand serializes as a css-wide keyword. |
60 // - An empty string if either some longhands are not set, the important | 61 // - An empty string if either some longhands are not set, the important |
61 // flag is not set consistently, or css-wide keywords are used. In these | 62 // flag is not set consistently, or css-wide keywords are used. In these |
62 // cases serialization will always fail. | 63 // cases serialization will always fail. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 std::bitset<numCSSProperties> m_longhandPropertyUsed; | 123 std::bitset<numCSSProperties> m_longhandPropertyUsed; |
123 bool m_needToExpandAll; | 124 bool m_needToExpandAll; |
124 }; | 125 }; |
125 | 126 |
126 const StylePropertySetForSerializer m_propertySet; | 127 const StylePropertySetForSerializer m_propertySet; |
127 }; | 128 }; |
128 | 129 |
129 } // namespace blink | 130 } // namespace blink |
130 | 131 |
131 #endif // StylePropertySerializer_h | 132 #endif // StylePropertySerializer_h |
OLD | NEW |