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 get4Values(const StylePropertyShorthand&) const; | 43 String get4Values(const StylePropertyShorthand&) const; |
44 String borderSpacingValue(const StylePropertyShorthand&) const; | 44 String borderSpacingValue(const StylePropertyShorthand&) const; |
45 String getShorthandValue(const StylePropertyShorthand&) const; | 45 String getShorthandValue(const StylePropertyShorthand&) const; |
46 String fontValue() const; | 46 String fontValue() const; |
47 void appendFontLonghandValueIfExplicit(CSSPropertyID, StringBuilder& result, String& value) const; | 47 void appendFontLonghandValueIfExplicit(CSSPropertyID, StringBuilder& result, String& value) const; |
48 String backgroundRepeatPropertyValue() const; | 48 String backgroundRepeatPropertyValue() const; |
49 String getPropertyText(CSSPropertyID, const String& value, bool isImportant, bool isNotFirstDecl) const; | 49 String getPropertyText(CSSPropertyID, const String& value, bool isImportant, bool isNotFirstDecl) const; |
50 bool isPropertyShorthandAvailable(const StylePropertyShorthand&) const; | 50 bool isPropertyShorthandAvailable(const StylePropertyShorthand&) const; |
51 bool shorthandHasOnlyInitialOrInheritedValue(const StylePropertyShorthand&) const; | 51 bool shorthandHasOnlyInitialOrInheritedValue(const StylePropertyShorthand&) const; |
52 void appendBackgroundPropertyAsText(StringBuilder& result, unsigned& numDecl s) const; | 52 void appendBackgroundPropertyAsText(StringBuilder& result, unsigned& numDecl s) const; |
53 String getAllPropertyValue() const; | |
54 String getExpandedAllPropertyValue() const; | |
55 bool hasAllShorthand(String& result) const; | |
56 | |
57 private: | |
58 class CSSPropertyInternal { | |
59 public: | |
60 CSSPropertyInternal() | |
61 : m_propertyId(CSSPropertyInvalid) | |
62 , m_value(0) | |
63 , m_isImportant(false) | |
64 , m_isInherited(false) | |
65 , m_isImplicit(false) { } | |
esprehn
2014/05/30 00:59:22
put braces on the next line.
| |
66 | |
67 CSSPropertyInternal(CSSPropertyID propertyId, CSSValue* value, bool isIm portant, bool isInherited, bool isImplicit) | |
68 : m_propertyId(propertyId) | |
69 , m_value(value) | |
70 , m_isImportant(isImportant) | |
71 , m_isInherited(isInherited) | |
72 , m_isImplicit(isImplicit) { } | |
esprehn
2014/05/30 00:59:22
ditto
| |
73 | |
74 CSSPropertyInternal(StylePropertySet::PropertyReference property) | |
75 : m_propertyId(property.id()) | |
76 , m_value(property.value()) | |
77 , m_isImportant(property.isImportant()) | |
78 , m_isInherited(property.isInherited()) | |
79 , m_isImplicit(property.isImplicit()) { } | |
esprehn
2014/05/30 00:59:22
same
| |
80 | |
81 CSSPropertyID id() { return m_propertyId; } | |
82 CSSValue* value() { return m_value; } | |
83 bool isImportant() { return m_isImportant; } | |
84 bool isInherited() { return m_isInherited; } | |
85 bool isImplicit() { return m_isImplicit; } | |
esprehn
2014/05/30 00:59:22
these should be const
tasak
2014/06/04 09:37:41
Done.
| |
86 | |
87 private: | |
88 CSSPropertyID m_propertyId; | |
89 CSSValue* m_value; | |
90 bool m_isImportant; | |
91 bool m_isInherited; | |
92 bool m_isImplicit; | |
93 }; | |
94 | |
95 unsigned propertyCount() const; | |
96 CSSPropertyInternal propertyAt(unsigned index) const; | |
97 String getPropertyValueInternal(CSSPropertyID) const; | |
98 CSSValue* getPropertyCSSValue(CSSPropertyID) const; | |
99 int findPropertyIndex(CSSPropertyID) const; | |
100 bool isPropertyImplicit(CSSPropertyID) const; | |
101 bool propertyIsImportant(CSSPropertyID) const; | |
53 | 102 |
54 const StylePropertySet& m_propertySet; | 103 const StylePropertySet& m_propertySet; |
104 OwnPtr<Vector<CSSPropertyInternal> > m_propertyVector; | |
55 }; | 105 }; |
56 | 106 |
57 } // namespace WebCore | 107 } // namespace WebCore |
58 | 108 |
59 #endif | 109 #endif |
OLD | NEW |