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

Side by Side Diff: Source/core/css/CSSCursorImageValue.cpp

Issue 17480002: Remove unused includes from core/accessibility, core/css and core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased ; update <wtf/Foo.h> to "wtf/Foo.h" in changed files Created 7 years, 6 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
« no previous file with comments | « Source/core/css/CSSCrossfadeValue.h ('k') | Source/core/css/CSSFilterValue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Rob Buis <buis@kde.org> 2 * Copyright (C) 2006 Rob Buis <buis@kde.org>
3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 * (C) 2008 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
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 17 matching lines...) Expand all
28 #include "core/dom/WebCoreMemoryInstrumentation.h" 28 #include "core/dom/WebCoreMemoryInstrumentation.h"
29 #include "core/loader/cache/CachedImage.h" 29 #include "core/loader/cache/CachedImage.h"
30 #include "core/loader/cache/CachedResourceLoader.h" 30 #include "core/loader/cache/CachedResourceLoader.h"
31 #include "core/rendering/style/StyleCachedImage.h" 31 #include "core/rendering/style/StyleCachedImage.h"
32 #include "core/rendering/style/StyleCachedImageSet.h" 32 #include "core/rendering/style/StyleCachedImageSet.h"
33 #include "core/rendering/style/StyleImage.h" 33 #include "core/rendering/style/StyleImage.h"
34 #include "core/rendering/style/StylePendingImage.h" 34 #include "core/rendering/style/StylePendingImage.h"
35 #include "core/svg/SVGCursorElement.h" 35 #include "core/svg/SVGCursorElement.h"
36 #include "core/svg/SVGLengthContext.h" 36 #include "core/svg/SVGLengthContext.h"
37 #include "core/svg/SVGURIReference.h" 37 #include "core/svg/SVGURIReference.h"
38 #include <wtf/MathExtras.h> 38 #include "wtf/MathExtras.h"
39 #include <wtf/MemoryInstrumentationHashSet.h> 39 #include "wtf/text/WTFString.h"
40 #include <wtf/UnusedParam.h>
41 #include <wtf/text/WTFString.h>
42 40
43 namespace WebCore { 41 namespace WebCore {
44 42
45 static inline SVGCursorElement* resourceReferencedByCursorElement(const String& url, Document* document) 43 static inline SVGCursorElement* resourceReferencedByCursorElement(const String& url, Document* document)
46 { 44 {
47 Element* element = SVGURIReference::targetElementFromIRIString(url, document ); 45 Element* element = SVGURIReference::targetElementFromIRIString(url, document );
48 if (element && element->hasTagName(SVGNames::cursorTag)) 46 if (element && element->hasTagName(SVGNames::cursorTag))
49 return static_cast<SVGCursorElement*>(element); 47 return static_cast<SVGCursorElement*>(element);
50 48
51 return 0; 49 return 0;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 200
203 void CSSCursorImageValue::reportDescendantMemoryUsage(MemoryObjectInfo* memoryOb jectInfo) const 201 void CSSCursorImageValue::reportDescendantMemoryUsage(MemoryObjectInfo* memoryOb jectInfo) const
204 { 202 {
205 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); 203 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
206 m_imageValue->reportMemoryUsage(memoryObjectInfo); 204 m_imageValue->reportMemoryUsage(memoryObjectInfo);
207 // No need to report m_image as it is counted as part of RenderArena. 205 // No need to report m_image as it is counted as part of RenderArena.
208 info.addMember(m_referencedElements, "referencedElements"); 206 info.addMember(m_referencedElements, "referencedElements");
209 } 207 }
210 208
211 } // namespace WebCore 209 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSCrossfadeValue.h ('k') | Source/core/css/CSSFilterValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698