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

Side by Side Diff: Source/core/svg/SVGPaint.h

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/svg/SVGColor.cpp ('k') | Source/core/svg/SVGPaint.cpp » ('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) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmial.com> 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmial.com>
5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 void setUri(const String&); 91 void setUri(const String&);
92 void setPaint(unsigned short paintType, const String& uri, const String& rgb Color, const String& iccColor, ExceptionCode&); 92 void setPaint(unsigned short paintType, const String& uri, const String& rgb Color, const String& iccColor, ExceptionCode&);
93 93
94 String customCssText() const; 94 String customCssText() const;
95 95
96 PassRefPtr<SVGPaint> cloneForCSSOM() const; 96 PassRefPtr<SVGPaint> cloneForCSSOM() const;
97 97
98 bool equals(const SVGPaint&) const; 98 bool equals(const SVGPaint&) const;
99 99
100 void reportDescendantMemoryUsage(MemoryObjectInfo*) const;
101
102 private: 100 private:
103 friend class CSSComputedStyleDeclaration; 101 friend class CSSComputedStyleDeclaration;
104 102
105 static PassRefPtr<SVGPaint> create(const SVGPaintType& type, const String& u ri, const Color& color) 103 static PassRefPtr<SVGPaint> create(const SVGPaintType& type, const String& u ri, const Color& color)
106 { 104 {
107 RefPtr<SVGPaint> paint = adoptRef(new SVGPaint(type, uri)); 105 RefPtr<SVGPaint> paint = adoptRef(new SVGPaint(type, uri));
108 paint->setColor(color); 106 paint->setColor(color);
109 return paint.release(); 107 return paint.release();
110 } 108 }
111 109
112 private: 110 private:
113 SVGPaint(const SVGPaintType&, const String& uri = String()); 111 SVGPaint(const SVGPaintType&, const String& uri = String());
114 SVGPaint(const SVGPaint& cloneFrom); 112 SVGPaint(const SVGPaint& cloneFrom);
115 113
116 SVGPaintType m_paintType; 114 SVGPaintType m_paintType;
117 String m_uri; 115 String m_uri;
118 }; 116 };
119 117
120 } // namespace WebCore 118 } // namespace WebCore
121 119
122 #endif // ENABLE(SVG) 120 #endif // ENABLE(SVG)
123 #endif // SVGPaint_h 121 #endif // SVGPaint_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGColor.cpp ('k') | Source/core/svg/SVGPaint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698