OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> | 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 6 * Copyright (C) 2011 Sencha, Inc. 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 Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1113 { | 1113 { |
1114 unsigned nameWithoutColonsStart = pseudoElementName[0] == ':' ? (pseudoEleme
ntName[1] == ':' ? 2 : 1) : 0; | 1114 unsigned nameWithoutColonsStart = pseudoElementName[0] == ':' ? (pseudoEleme
ntName[1] == ':' ? 2 : 1) : 0; |
1115 m_pseudoElementSpecifier = CSSSelector::pseudoId(CSSSelector::parsePseudoTyp
e( | 1115 m_pseudoElementSpecifier = CSSSelector::pseudoId(CSSSelector::parsePseudoTyp
e( |
1116 AtomicString(pseudoElementName.substring(nameWithoutColonsStart)))); | 1116 AtomicString(pseudoElementName.substring(nameWithoutColonsStart)))); |
1117 } | 1117 } |
1118 | 1118 |
1119 CSSComputedStyleDeclaration::~CSSComputedStyleDeclaration() | 1119 CSSComputedStyleDeclaration::~CSSComputedStyleDeclaration() |
1120 { | 1120 { |
1121 } | 1121 } |
1122 | 1122 |
| 1123 #if !ENABLE(OILPAN) |
1123 void CSSComputedStyleDeclaration::ref() | 1124 void CSSComputedStyleDeclaration::ref() |
1124 { | 1125 { |
1125 ++m_refCount; | 1126 ++m_refCount; |
1126 } | 1127 } |
1127 | 1128 |
1128 void CSSComputedStyleDeclaration::deref() | 1129 void CSSComputedStyleDeclaration::deref() |
1129 { | 1130 { |
1130 ASSERT(m_refCount); | 1131 ASSERT(m_refCount); |
1131 if (!--m_refCount) | 1132 if (!--m_refCount) |
1132 delete this; | 1133 delete this; |
1133 } | 1134 } |
| 1135 #endif |
1134 | 1136 |
1135 String CSSComputedStyleDeclaration::cssText() const | 1137 String CSSComputedStyleDeclaration::cssText() const |
1136 { | 1138 { |
1137 StringBuilder result; | 1139 StringBuilder result; |
1138 const Vector<CSSPropertyID>& properties = computableProperties(); | 1140 const Vector<CSSPropertyID>& properties = computableProperties(); |
1139 | 1141 |
1140 for (unsigned i = 0; i < properties.size(); i++) { | 1142 for (unsigned i = 0; i < properties.size(); i++) { |
1141 if (i) | 1143 if (i) |
1142 result.append(' '); | 1144 result.append(' '); |
1143 result.append(getPropertyName(properties[i])); | 1145 result.append(getPropertyName(properties[i])); |
(...skipping 1898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3042 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 3044 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
3043 CSSPropertyB
ackgroundClip }; | 3045 CSSPropertyB
ackgroundClip }; |
3044 | 3046 |
3045 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated()
; | 3047 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSlashSeparated()
; |
3046 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); | 3048 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlash
Seperator)))); |
3047 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); | 3049 list->append(valuesForShorthandProperty(StylePropertyShorthand(CSSPropertyBa
ckground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSe
perator)))); |
3048 return list.release(); | 3050 return list.release(); |
3049 } | 3051 } |
3050 | 3052 |
3051 } // namespace WebCore | 3053 } // namespace WebCore |
OLD | NEW |