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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGDocumentExtensions.h

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: Created 3 years, 11 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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 HeapHashSet<Member<SVGSVGElement>> m_timeContainers; 88 HeapHashSet<Member<SVGSVGElement>> m_timeContainers;
89 using SVGElementSet = HeapHashSet<Member<SVGElement>>; 89 using SVGElementSet = HeapHashSet<Member<SVGElement>>;
90 SVGElementSet m_webAnimationsPendingSVGElements; 90 SVGElementSet m_webAnimationsPendingSVGElements;
91 HashMap<AtomicString, LayoutSVGResourceContainer*> m_resources; 91 HashMap<AtomicString, LayoutSVGResourceContainer*> m_resources;
92 // Resources that are pending. 92 // Resources that are pending.
93 HeapHashMap<AtomicString, Member<SVGPendingElements>> m_pendingResources; 93 HeapHashMap<AtomicString, Member<SVGPendingElements>> m_pendingResources;
94 SVGResourcesCache m_resourcesCache; 94 SVGResourcesCache m_resourcesCache;
95 // Root SVG elements with relative length descendants. 95 // Root SVG elements with relative length descendants.
96 HeapHashSet<Member<SVGSVGElement>> m_relativeLengthSVGRoots; 96 HeapHashSet<Member<SVGSVGElement>> m_relativeLengthSVGRoots;
97 FloatPoint m_translate; 97 FloatPoint m_translate;
98 #if ENABLE(ASSERT) 98 #if DCHECK_IS_ON()
99 bool m_inRelativeLengthSVGRootsInvalidation; 99 bool m_inRelativeLengthSVGRootsInvalidation = false;
100 #endif 100 #endif
101 101
102 public: 102 public:
103 // This HashMap contains a list of pending resources. Pending resources, are 103 // This HashMap contains a list of pending resources. Pending resources, are
104 // such which are referenced by any object in the SVG document, but do NOT 104 // such which are referenced by any object in the SVG document, but do NOT
105 // exist yet. 105 // exist yet.
106 // For instance, dynamically build gradients / patterns / clippers... 106 // For instance, dynamically build gradients / patterns / clippers...
107 void addPendingResource(const AtomicString& id, Element*); 107 void addPendingResource(const AtomicString& id, Element*);
108 bool hasPendingResource(const AtomicString& id) const; 108 bool hasPendingResource(const AtomicString& id) const;
109 bool isElementPendingResources(Element*) const; 109 bool isElementPendingResources(Element*) const;
110 bool isElementPendingResource(Element*, const AtomicString& id) const; 110 bool isElementPendingResource(Element*, const AtomicString& id) const;
111 void clearHasPendingResourcesIfPossible(Element*); 111 void clearHasPendingResourcesIfPossible(Element*);
112 void removeElementFromPendingResources(Element*); 112 void removeElementFromPendingResources(Element*);
113 SVGPendingElements* removePendingResource(const AtomicString& id); 113 SVGPendingElements* removePendingResource(const AtomicString& id);
114 114
115 void serviceAnimations(); 115 void serviceAnimations();
116 }; 116 };
117 117
118 } // namespace blink 118 } // namespace blink
119 119
120 #endif 120 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698