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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 ASSERT(!m_inRelativeLengthClientsInvalidation); | 416 ASSERT(!m_inRelativeLengthClientsInvalidation); |
417 #if ENABLE(ASSERT) | 417 #if ENABLE(ASSERT) |
418 TemporaryChange<bool> inRelativeLengthClientsInvalidationChange(m_inRelative
LengthClientsInvalidation, true); | 418 TemporaryChange<bool> inRelativeLengthClientsInvalidationChange(m_inRelative
LengthClientsInvalidation, true); |
419 #endif | 419 #endif |
420 | 420 |
421 LayoutObject* renderer = this->layoutObject(); | 421 LayoutObject* renderer = this->layoutObject(); |
422 if (renderer && selfHasRelativeLengths()) { | 422 if (renderer && selfHasRelativeLengths()) { |
423 if (renderer->isSVGResourceContainer()) | 423 if (renderer->isSVGResourceContainer()) |
424 toLayoutSVGResourceContainer(renderer)->invalidateCacheAndMarkForLay
out(layoutScope); | 424 toLayoutSVGResourceContainer(renderer)->invalidateCacheAndMarkForLay
out(layoutScope); |
425 else | 425 else |
426 renderer->setNeedsLayoutAndFullPaintInvalidation(MarkContainerChain,
layoutScope); | 426 renderer->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationR
eason::Unknown, MarkContainerChain, layoutScope); |
427 } | 427 } |
428 | 428 |
429 for (SVGElement* element : m_elementsWithRelativeLengths) { | 429 for (SVGElement* element : m_elementsWithRelativeLengths) { |
430 if (element != this) | 430 if (element != this) |
431 element->invalidateRelativeLengthClients(layoutScope); | 431 element->invalidateRelativeLengthClients(layoutScope); |
432 } | 432 } |
433 } | 433 } |
434 | 434 |
435 SVGSVGElement* SVGElement::ownerSVGElement() const | 435 SVGSVGElement* SVGElement::ownerSVGElement() const |
436 { | 436 { |
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1186 Element::trace(visitor); | 1186 Element::trace(visitor); |
1187 } | 1187 } |
1188 | 1188 |
1189 const AtomicString& SVGElement::eventParameterName() | 1189 const AtomicString& SVGElement::eventParameterName() |
1190 { | 1190 { |
1191 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); | 1191 DEFINE_STATIC_LOCAL(const AtomicString, evtString, ("evt", AtomicString::Con
structFromLiteral)); |
1192 return evtString; | 1192 return evtString; |
1193 } | 1193 } |
1194 | 1194 |
1195 } // namespace blink | 1195 } // namespace blink |
OLD | NEW |