| 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 22 matching lines...) Expand all Loading... |
| 33 #include "core/svg/SVGZoomAndPan.h" | 33 #include "core/svg/SVGZoomAndPan.h" |
| 34 #include "core/svg/animation/SMILTimeContainer.h" | 34 #include "core/svg/animation/SMILTimeContainer.h" |
| 35 #include "wtf/TemporaryChange.h" | 35 #include "wtf/TemporaryChange.h" |
| 36 #include "wtf/text/AtomicString.h" | 36 #include "wtf/text/AtomicString.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 SVGDocumentExtensions::SVGDocumentExtensions(Document* document) | 40 SVGDocumentExtensions::SVGDocumentExtensions(Document* document) |
| 41 : m_document(document) | 41 : m_document(document) |
| 42 , m_resourcesCache(adoptPtr(new SVGResourcesCache)) | 42 , m_resourcesCache(adoptPtr(new SVGResourcesCache)) |
| 43 #if ASSERT_ENABLED | 43 #if ENABLE(ASSERT) |
| 44 , m_inRelativeLengthSVGRootsInvalidation(false) | 44 , m_inRelativeLengthSVGRootsInvalidation(false) |
| 45 #endif | 45 #endif |
| 46 { | 46 { |
| 47 } | 47 } |
| 48 | 48 |
| 49 SVGDocumentExtensions::~SVGDocumentExtensions() | 49 SVGDocumentExtensions::~SVGDocumentExtensions() |
| 50 { | 50 { |
| 51 } | 51 } |
| 52 | 52 |
| 53 void SVGDocumentExtensions::addTimeContainer(SVGSVGElement* element) | 53 void SVGDocumentExtensions::addTimeContainer(SVGSVGElement* element) |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 } | 321 } |
| 322 | 322 |
| 323 bool SVGDocumentExtensions::isSVGRootWithRelativeLengthDescendents(SVGSVGElement
* svgRoot) const | 323 bool SVGDocumentExtensions::isSVGRootWithRelativeLengthDescendents(SVGSVGElement
* svgRoot) const |
| 324 { | 324 { |
| 325 return m_relativeLengthSVGRoots.contains(svgRoot); | 325 return m_relativeLengthSVGRoots.contains(svgRoot); |
| 326 } | 326 } |
| 327 | 327 |
| 328 void SVGDocumentExtensions::invalidateSVGRootsWithRelativeLengthDescendents(Subt
reeLayoutScope* scope) | 328 void SVGDocumentExtensions::invalidateSVGRootsWithRelativeLengthDescendents(Subt
reeLayoutScope* scope) |
| 329 { | 329 { |
| 330 ASSERT(!m_inRelativeLengthSVGRootsInvalidation); | 330 ASSERT(!m_inRelativeLengthSVGRootsInvalidation); |
| 331 #if ASSERT_ENABLED | 331 #if ENABLE(ASSERT) |
| 332 TemporaryChange<bool> inRelativeLengthSVGRootsChange(m_inRelativeLengthSVGRo
otsInvalidation, true); | 332 TemporaryChange<bool> inRelativeLengthSVGRootsChange(m_inRelativeLengthSVGRo
otsInvalidation, true); |
| 333 #endif | 333 #endif |
| 334 | 334 |
| 335 WillBeHeapHashSet<RawPtrWillBeMember<SVGSVGElement> >::iterator end = m_rela
tiveLengthSVGRoots.end(); | 335 WillBeHeapHashSet<RawPtrWillBeMember<SVGSVGElement> >::iterator end = m_rela
tiveLengthSVGRoots.end(); |
| 336 for (WillBeHeapHashSet<RawPtrWillBeMember<SVGSVGElement> >::iterator it = m_
relativeLengthSVGRoots.begin(); it != end; ++it) | 336 for (WillBeHeapHashSet<RawPtrWillBeMember<SVGSVGElement> >::iterator it = m_
relativeLengthSVGRoots.begin(); it != end; ++it) |
| 337 (*it)->invalidateRelativeLengthClients(scope); | 337 (*it)->invalidateRelativeLengthClients(scope); |
| 338 } | 338 } |
| 339 | 339 |
| 340 #if ENABLE(SVG_FONTS) | 340 #if ENABLE(SVG_FONTS) |
| 341 void SVGDocumentExtensions::registerSVGFontFaceElement(SVGFontFaceElement* eleme
nt) | 341 void SVGDocumentExtensions::registerSVGFontFaceElement(SVGFontFaceElement* eleme
nt) |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 #if ENABLE(SVG_FONTS) | 406 #if ENABLE(SVG_FONTS) |
| 407 visitor->trace(m_svgFontFaceElements); | 407 visitor->trace(m_svgFontFaceElements); |
| 408 visitor->trace(m_pendingSVGFontFaceElementsForRemoval); | 408 visitor->trace(m_pendingSVGFontFaceElementsForRemoval); |
| 409 #endif | 409 #endif |
| 410 visitor->trace(m_relativeLengthSVGRoots); | 410 visitor->trace(m_relativeLengthSVGRoots); |
| 411 visitor->trace(m_pendingResources); | 411 visitor->trace(m_pendingResources); |
| 412 visitor->trace(m_pendingResourcesForRemoval); | 412 visitor->trace(m_pendingResourcesForRemoval); |
| 413 } | 413 } |
| 414 | 414 |
| 415 } | 415 } |
| OLD | NEW |