Chromium Code Reviews| 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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 974 | 974 |
| 975 if (SVGUseElement* element = instance->correspondingUseElement()) { | 975 if (SVGUseElement* element = instance->correspondingUseElement()) { |
| 976 if (element->isConnected()) | 976 if (element->isConnected()) |
| 977 element->invalidateShadowTree(); | 977 element->invalidateShadowTree(); |
| 978 } | 978 } |
| 979 } | 979 } |
| 980 | 980 |
| 981 svgRareData()->elementInstances().clear(); | 981 svgRareData()->elementInstances().clear(); |
| 982 } | 982 } |
| 983 | 983 |
| 984 void SVGElement::instancesNeedsStyleRecalc(StyleChangeType changeType, const Sty leChangeReasonForTracing& reason) | |
| 985 { | |
| 986 const HeapHashSet<WeakMember<SVGElement>>& set = instancesForElement(); | |
| 987 if (set.isEmpty()) | |
| 988 return; | |
| 989 | |
| 990 for (SVGElement* instance : set) { | |
| 991 instance->setNeedsStyleRecalc(changeType, reason); | |
| 992 } | |
|
rune
2016/08/18 23:43:07
Unnecessary { }
Eric Willigers
2016/08/19 00:44:19
Done.
| |
| 993 } | |
| 994 | |
| 984 SVGElement::InstanceUpdateBlocker::InstanceUpdateBlocker(SVGElement* targetEleme nt) | 995 SVGElement::InstanceUpdateBlocker::InstanceUpdateBlocker(SVGElement* targetEleme nt) |
| 985 : m_targetElement(targetElement) | 996 : m_targetElement(targetElement) |
| 986 { | 997 { |
| 987 if (m_targetElement) | 998 if (m_targetElement) |
| 988 m_targetElement->setInstanceUpdatesBlocked(true); | 999 m_targetElement->setInstanceUpdatesBlocked(true); |
| 989 } | 1000 } |
| 990 | 1001 |
| 991 SVGElement::InstanceUpdateBlocker::~InstanceUpdateBlocker() | 1002 SVGElement::InstanceUpdateBlocker::~InstanceUpdateBlocker() |
| 992 { | 1003 { |
| 993 if (m_targetElement) | 1004 if (m_targetElement) |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1169 Element::trace(visitor); | 1180 Element::trace(visitor); |
| 1170 } | 1181 } |
| 1171 | 1182 |
| 1172 const AtomicString& SVGElement::eventParameterName() | 1183 const AtomicString& SVGElement::eventParameterName() |
| 1173 { | 1184 { |
| 1174 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); | 1185 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); |
| 1175 return evtString; | 1186 return evtString; |
| 1176 } | 1187 } |
| 1177 | 1188 |
| 1178 } // namespace blink | 1189 } // namespace blink |
| OLD | NEW |