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

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

Issue 216563002: [SVG Fonts] Fix <font-face> element leak document (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 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/SVGFontFaceElement.cpp ('k') | Source/core/svg/SVGFontFaceSource.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SVGFontFaceSource_h 5 #ifndef SVGFontFaceSource_h
6 #define SVGFontFaceSource_h 6 #define SVGFontFaceSource_h
7 7
8 #if ENABLE(SVG_FONTS) 8 #if ENABLE(SVG_FONTS)
9 9
10 #include "core/css/CSSFontFaceSource.h" 10 #include "core/css/CSSFontFaceSource.h"
11 11
12 namespace WebCore { 12 namespace WebCore {
13 13
14 class SVGFontFaceElement; 14 class SVGFontFaceElement;
15 15
16 class SVGFontFaceSource : public CSSFontFaceSource { 16 class SVGFontFaceSource : public CSSFontFaceSource {
17 public: 17 public:
18 SVGFontFaceSource(PassRefPtr<SVGFontFaceElement>); 18 SVGFontFaceSource(SVGFontFaceElement*);
19 19
20 private: 20 private:
21 virtual PassRefPtr<SimpleFontData> createFontData(const FontDescription&) OV ERRIDE; 21 virtual PassRefPtr<SimpleFontData> createFontData(const FontDescription&) OV ERRIDE;
22 22
23 RefPtr<SVGFontFaceElement> m_svgFontFaceElement; 23 // This is a raw ptr as the element resides in the same document as the Font Face. This is to avoid a reference cycle.
24 // FIXME: Oilpan: This should be a Member when we move SVGFontFaceElement to oilpan.
25 SVGFontFaceElement* m_svgFontFaceElement;
24 }; 26 };
25 27
26 } // namespace WebCore 28 } // namespace WebCore
27 29
28 #endif // ENABLE(SVG_FONTS) 30 #endif // ENABLE(SVG_FONTS)
29 #endif 31 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFontFaceElement.cpp ('k') | Source/core/svg/SVGFontFaceSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698