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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGDocumentExtensions.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) 2006 Apple Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2007 Rob Buis <buis@kde.org> 4 * Copyright (C) 2007 Rob Buis <buis@kde.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 bool SVGDocumentExtensions::isSVGRootWithRelativeLengthDescendents(SVGSVGElement * svgRoot) const 313 bool SVGDocumentExtensions::isSVGRootWithRelativeLengthDescendents(SVGSVGElement * svgRoot) const
314 { 314 {
315 return m_relativeLengthSVGRoots.contains(svgRoot); 315 return m_relativeLengthSVGRoots.contains(svgRoot);
316 } 316 }
317 317
318 void SVGDocumentExtensions::invalidateSVGRootsWithRelativeLengthDescendents(Subt reeLayoutScope* scope) 318 void SVGDocumentExtensions::invalidateSVGRootsWithRelativeLengthDescendents(Subt reeLayoutScope* scope)
319 { 319 {
320 ASSERT(!m_inRelativeLengthSVGRootsInvalidation); 320 ASSERT(!m_inRelativeLengthSVGRootsInvalidation);
321 #if ENABLE(ASSERT) 321 #if ENABLE(ASSERT)
322 TemporaryChange<bool> inRelativeLengthSVGRootsChange(m_inRelativeLengthSVGRo otsInvalidation, true); 322 TemporaryChange<bool> inRelativeLengthSVGRootsChange(&m_inRelativeLengthSVGR ootsInvalidation, true);
323 #endif 323 #endif
324 324
325 for (SVGSVGElement* element : m_relativeLengthSVGRoots) 325 for (SVGSVGElement* element : m_relativeLengthSVGRoots)
326 element->invalidateRelativeLengthClients(scope); 326 element->invalidateRelativeLengthClients(scope);
327 } 327 }
328 328
329 bool SVGDocumentExtensions::zoomAndPanEnabled() const 329 bool SVGDocumentExtensions::zoomAndPanEnabled() const
330 { 330 {
331 if (SVGSVGElement* svg = rootElement(*m_document)) 331 if (SVGSVGElement* svg = rootElement(*m_document))
332 return svg->zoomAndPanEnabled(); 332 return svg->zoomAndPanEnabled();
(...skipping 28 matching lines...) Expand all
361 { 361 {
362 visitor->trace(m_document); 362 visitor->trace(m_document);
363 visitor->trace(m_timeContainers); 363 visitor->trace(m_timeContainers);
364 visitor->trace(m_webAnimationsPendingSVGElements); 364 visitor->trace(m_webAnimationsPendingSVGElements);
365 visitor->trace(m_relativeLengthSVGRoots); 365 visitor->trace(m_relativeLengthSVGRoots);
366 visitor->trace(m_pendingResources); 366 visitor->trace(m_pendingResources);
367 visitor->trace(m_pendingResourcesForRemoval); 367 visitor->trace(m_pendingResourcesForRemoval);
368 } 368 }
369 369
370 } // namespace blink 370 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698