| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |