| 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. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. |
| 4 * All rights reserved. | 4 * All rights reserved. |
| 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
| 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Lesser General Public | 10 * modify it under the terms of the GNU Lesser General Public |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 return copyPropertiesInSet(computableProperties()); | 471 return copyPropertiesInSet(computableProperties()); |
| 472 } | 472 } |
| 473 | 473 |
| 474 MutableStylePropertySet* CSSComputedStyleDeclaration::copyPropertiesInSet( | 474 MutableStylePropertySet* CSSComputedStyleDeclaration::copyPropertiesInSet( |
| 475 const Vector<CSSPropertyID>& properties) const { | 475 const Vector<CSSPropertyID>& properties) const { |
| 476 HeapVector<CSSProperty, 256> list; | 476 HeapVector<CSSProperty, 256> list; |
| 477 list.reserveInitialCapacity(properties.size()); | 477 list.reserveInitialCapacity(properties.size()); |
| 478 for (unsigned i = 0; i < properties.size(); ++i) { | 478 for (unsigned i = 0; i < properties.size(); ++i) { |
| 479 const CSSValue* value = getPropertyCSSValue(properties[i]); | 479 const CSSValue* value = getPropertyCSSValue(properties[i]); |
| 480 if (value) | 480 if (value) |
| 481 list.append(CSSProperty(properties[i], *value, false)); | 481 list.push_back(CSSProperty(properties[i], *value, false)); |
| 482 } | 482 } |
| 483 return MutableStylePropertySet::create(list.data(), list.size()); | 483 return MutableStylePropertySet::create(list.data(), list.size()); |
| 484 } | 484 } |
| 485 | 485 |
| 486 CSSRule* CSSComputedStyleDeclaration::parentRule() const { | 486 CSSRule* CSSComputedStyleDeclaration::parentRule() const { |
| 487 return nullptr; | 487 return nullptr; |
| 488 } | 488 } |
| 489 | 489 |
| 490 String CSSComputedStyleDeclaration::getPropertyValue( | 490 String CSSComputedStyleDeclaration::getPropertyValue( |
| 491 const String& propertyName) { | 491 const String& propertyName) { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 "These styles are computed, and therefore the '" + | 562 "These styles are computed, and therefore the '" + |
| 563 getPropertyNameString(id) + "' property is read-only."); | 563 getPropertyNameString(id) + "' property is read-only."); |
| 564 } | 564 } |
| 565 | 565 |
| 566 DEFINE_TRACE(CSSComputedStyleDeclaration) { | 566 DEFINE_TRACE(CSSComputedStyleDeclaration) { |
| 567 visitor->trace(m_node); | 567 visitor->trace(m_node); |
| 568 CSSStyleDeclaration::trace(visitor); | 568 CSSStyleDeclaration::trace(visitor); |
| 569 } | 569 } |
| 570 | 570 |
| 571 } // namespace blink | 571 } // namespace blink |
| OLD | NEW |