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

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

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/WebKitCSSSVGDocumentValue.h ('k') | Source/core/css/WebKitCSSShaderValue.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 15 matching lines...) Expand all
26 26
27 #if ENABLE(SVG) 27 #if ENABLE(SVG)
28 #include "WebKitCSSSVGDocumentValue.h" 28 #include "WebKitCSSSVGDocumentValue.h"
29 29
30 #include "CSSParser.h" 30 #include "CSSParser.h"
31 #include "CachedResourceLoader.h" 31 #include "CachedResourceLoader.h"
32 #include "CachedResourceRequest.h" 32 #include "CachedResourceRequest.h"
33 #include "CachedResourceRequestInitiators.h" 33 #include "CachedResourceRequestInitiators.h"
34 #include "CachedSVGDocument.h" 34 #include "CachedSVGDocument.h"
35 #include "Document.h" 35 #include "Document.h"
36 #include "WebCoreMemoryInstrumentation.h"
37 36
38 namespace WebCore { 37 namespace WebCore {
39 38
40 WebKitCSSSVGDocumentValue::WebKitCSSSVGDocumentValue(const String& url) 39 WebKitCSSSVGDocumentValue::WebKitCSSSVGDocumentValue(const String& url)
41 : CSSValue(WebKitCSSSVGDocumentClass) 40 : CSSValue(WebKitCSSSVGDocumentClass)
42 , m_url(url) 41 , m_url(url)
43 , m_loadRequested(false) 42 , m_loadRequested(false)
44 { 43 {
45 } 44 }
46 45
(...skipping 19 matching lines...) Expand all
66 String WebKitCSSSVGDocumentValue::customCssText() const 65 String WebKitCSSSVGDocumentValue::customCssText() const
67 { 66 {
68 return quoteCSSStringIfNeeded(m_url); 67 return quoteCSSStringIfNeeded(m_url);
69 } 68 }
70 69
71 bool WebKitCSSSVGDocumentValue::equals(const WebKitCSSSVGDocumentValue& other) c onst 70 bool WebKitCSSSVGDocumentValue::equals(const WebKitCSSSVGDocumentValue& other) c onst
72 { 71 {
73 return m_url == other.m_url; 72 return m_url == other.m_url;
74 } 73 }
75 74
76 void WebKitCSSSVGDocumentValue::reportDescendantMemoryUsage(MemoryObjectInfo* me moryObjectInfo) const
77 {
78 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
79 info.addMember(m_url, "url");
80 // FIXME: add m_document when cached resources are instrumented.
81 }
82
83 } // namespace WebCore 75 } // namespace WebCore
84 76
85 #endif // ENABLE(SVG) 77 #endif // ENABLE(SVG)
OLDNEW
« no previous file with comments | « Source/core/css/WebKitCSSSVGDocumentValue.h ('k') | Source/core/css/WebKitCSSShaderValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698