| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> | 5 * Copyright (C) 2008 Alp Toker <alp@atoker.com> |
| 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 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 Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 return cssPropertyIdForSVGAttributeName(name) > 0; | 715 return cssPropertyIdForSVGAttributeName(name) > 0; |
| 716 } | 716 } |
| 717 | 717 |
| 718 void SVGElement::collectStyleForPresentationAttribute(const QualifiedName& name,
const AtomicString& value, MutableStylePropertySet* style) | 718 void SVGElement::collectStyleForPresentationAttribute(const QualifiedName& name,
const AtomicString& value, MutableStylePropertySet* style) |
| 719 { | 719 { |
| 720 CSSPropertyID propertyID = cssPropertyIdForSVGAttributeName(name); | 720 CSSPropertyID propertyID = cssPropertyIdForSVGAttributeName(name); |
| 721 if (propertyID > 0) | 721 if (propertyID > 0) |
| 722 addPropertyToPresentationAttributeStyle(style, propertyID, value); | 722 addPropertyToPresentationAttributeStyle(style, propertyID, value); |
| 723 } | 723 } |
| 724 | 724 |
| 725 void SVGElement::addSVGLengthPropertyToPresentationAttributeStyle(MutableStylePr
opertySet* style, CSSPropertyID property, SVGLength& length) |
| 726 { |
| 727 addPropertyToPresentationAttributeStyle(style, property, |
| 728 length.valueInSpecifiedUnits(), |
| 729 length.cssUnitTypeQuirk()); |
| 730 } |
| 731 |
| 725 bool SVGElement::haveLoadedRequiredResources() | 732 bool SVGElement::haveLoadedRequiredResources() |
| 726 { | 733 { |
| 727 for (SVGElement* child = Traversal<SVGElement>::firstChild(*this); child; ch
ild = Traversal<SVGElement>::nextSibling(*child)) { | 734 for (SVGElement* child = Traversal<SVGElement>::firstChild(*this); child; ch
ild = Traversal<SVGElement>::nextSibling(*child)) { |
| 728 if (!child->haveLoadedRequiredResources()) | 735 if (!child->haveLoadedRequiredResources()) |
| 729 return false; | 736 return false; |
| 730 } | 737 } |
| 731 return true; | 738 return true; |
| 732 } | 739 } |
| 733 | 740 |
| 734 static inline void collectInstancesForSVGElement(SVGElement* element, WillBeHeap
HashSet<RawPtrWillBeWeakMember<SVGElement> >& instances) | 741 static inline void collectInstancesForSVGElement(SVGElement* element, WillBeHeap
HashSet<RawPtrWillBeWeakMember<SVGElement> >& instances) |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 Element::trace(visitor); | 1191 Element::trace(visitor); |
| 1185 } | 1192 } |
| 1186 | 1193 |
| 1187 const AtomicString& SVGElement::eventParameterName() | 1194 const AtomicString& SVGElement::eventParameterName() |
| 1188 { | 1195 { |
| 1189 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); | 1196 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); |
| 1190 return evtString; | 1197 return evtString; |
| 1191 } | 1198 } |
| 1192 | 1199 |
| 1193 } // namespace blink | 1200 } // namespace blink |
| OLD | NEW |