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 2887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2898 | 2898 |
2899 PassRefPtr<MutableStylePropertySet> CSSComputedStyleDeclaration::copyPropertiesI
nSet(const Vector<CSSPropertyID>& properties) const | 2899 PassRefPtr<MutableStylePropertySet> CSSComputedStyleDeclaration::copyPropertiesI
nSet(const Vector<CSSPropertyID>& properties) const |
2900 { | 2900 { |
2901 Vector<CSSProperty, 256> list; | 2901 Vector<CSSProperty, 256> list; |
2902 list.reserveInitialCapacity(properties.size()); | 2902 list.reserveInitialCapacity(properties.size()); |
2903 for (unsigned i = 0; i < properties.size(); ++i) { | 2903 for (unsigned i = 0; i < properties.size(); ++i) { |
2904 RefPtr<CSSValue> value = getPropertyCSSValue(properties[i]); | 2904 RefPtr<CSSValue> value = getPropertyCSSValue(properties[i]); |
2905 if (value) | 2905 if (value) |
2906 list.append(CSSProperty(properties[i], value.release(), false)); | 2906 list.append(CSSProperty(properties[i], value.release(), false)); |
2907 } | 2907 } |
2908 return static_pointer_cast<MutableStylePropertySet>(StylePropertySet::create
(list.data(), list.size())); | 2908 return MutableStylePropertySet::create(list.data(), list.size()); |
2909 } | 2909 } |
2910 | 2910 |
2911 void CSSComputedStyleDeclaration::reportMemoryUsage(MemoryObjectInfo* memoryObje
ctInfo) const | 2911 void CSSComputedStyleDeclaration::reportMemoryUsage(MemoryObjectInfo* memoryObje
ctInfo) const |
2912 { | 2912 { |
2913 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | 2913 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); |
2914 info.addMember(m_node, "node"); | 2914 info.addMember(m_node, "node"); |
2915 } | 2915 } |
2916 | 2916 |
2917 CSSRule* CSSComputedStyleDeclaration::parentRule() const | 2917 CSSRule* CSSComputedStyleDeclaration::parentRule() const |
2918 { | 2918 { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2986 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 2986 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
2987 CSSPropertyB
ackgroundClip }; | 2987 CSSPropertyB
ackgroundClip }; |
2988 | 2988 |
2989 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); | 2989 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); |
2990 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlashSeperat
or)))); | 2990 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlashSeperat
or)))); |
2991 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSeperator
)))); | 2991 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSeperator
)))); |
2992 return list.release(); | 2992 return list.release(); |
2993 } | 2993 } |
2994 | 2994 |
2995 } // namespace WebCore | 2995 } // namespace WebCore |
OLD | NEW |