Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGElement.cpp

Issue 2151933003: Change WTF::TemporaryChange to be an alias for AutoReset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698