| 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 } | 441 } |
| 442 } | 442 } |
| 443 | 443 |
| 444 void SVGElement::invalidateRelativeLengthClients(SubtreeLayoutScope* layoutScope
) | 444 void SVGElement::invalidateRelativeLengthClients(SubtreeLayoutScope* layoutScope
) |
| 445 { | 445 { |
| 446 if (!inShadowIncludingDocument()) | 446 if (!inShadowIncludingDocument()) |
| 447 return; | 447 return; |
| 448 | 448 |
| 449 ASSERT(!m_inRelativeLengthClientsInvalidation); | 449 ASSERT(!m_inRelativeLengthClientsInvalidation); |
| 450 #if ENABLE(ASSERT) | 450 #if ENABLE(ASSERT) |
| 451 TemporaryChange<bool> inRelativeLengthClientsInvalidationChange(m_inRelative
LengthClientsInvalidation, true); | 451 TemporaryChange<bool> inRelativeLengthClientsInvalidationChange(&m_inRelativ
eLengthClientsInvalidation, true); |
| 452 #endif | 452 #endif |
| 453 | 453 |
| 454 if (LayoutObject* layoutObject = this->layoutObject()) { | 454 if (LayoutObject* layoutObject = this->layoutObject()) { |
| 455 if (hasRelativeLengths() && layoutObject->isSVGResourceContainer()) | 455 if (hasRelativeLengths() && layoutObject->isSVGResourceContainer()) |
| 456 toLayoutSVGResourceContainer(layoutObject)->invalidateCacheAndMarkFo
rLayout(layoutScope); | 456 toLayoutSVGResourceContainer(layoutObject)->invalidateCacheAndMarkFo
rLayout(layoutScope); |
| 457 else if (selfHasRelativeLengths()) | 457 else if (selfHasRelativeLengths()) |
| 458 layoutObject->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidat
ionReason::Unknown, MarkContainerChain, layoutScope); | 458 layoutObject->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidat
ionReason::Unknown, MarkContainerChain, layoutScope); |
| 459 } | 459 } |
| 460 | 460 |
| 461 for (SVGElement* element : m_elementsWithRelativeLengths) { | 461 for (SVGElement* element : m_elementsWithRelativeLengths) { |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1169 Element::trace(visitor); | 1169 Element::trace(visitor); |
| 1170 } | 1170 } |
| 1171 | 1171 |
| 1172 const AtomicString& SVGElement::eventParameterName() | 1172 const AtomicString& SVGElement::eventParameterName() |
| 1173 { | 1173 { |
| 1174 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); | 1174 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt")); |
| 1175 return evtString; | 1175 return evtString; |
| 1176 } | 1176 } |
| 1177 | 1177 |
| 1178 } // namespace blink | 1178 } // namespace blink |
| OLD | NEW |