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

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

Issue 18375005: [oilpan] Move CSSFontFace and CSSSegmentedFontFace to the managed heap (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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/CSSSegmentedFontFace.h ('k') | no next file » | 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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple 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 19 matching lines...) Expand all
30 #include "core/css/CSSFontFaceSource.h" 30 #include "core/css/CSSFontFaceSource.h"
31 #include "core/css/CSSFontSelector.h" 31 #include "core/css/CSSFontSelector.h"
32 #include "core/dom/Document.h" 32 #include "core/dom/Document.h"
33 #include "RuntimeEnabledFeatures.h" 33 #include "RuntimeEnabledFeatures.h"
34 #include "core/platform/graphics/FontDescription.h" 34 #include "core/platform/graphics/FontDescription.h"
35 #include "core/platform/graphics/SegmentedFontData.h" 35 #include "core/platform/graphics/SegmentedFontData.h"
36 #include "core/platform/graphics/SimpleFontData.h" 36 #include "core/platform/graphics/SimpleFontData.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 DEFINE_GC_TYPE_MARKER(CSSSegmentedFontFace);
41
40 CSSSegmentedFontFace::CSSSegmentedFontFace(CSSFontSelector* fontSelector) 42 CSSSegmentedFontFace::CSSSegmentedFontFace(CSSFontSelector* fontSelector)
41 : m_fontSelector(fontSelector) 43 : m_fontSelector(fontSelector)
42 { 44 {
43 } 45 }
44 46
45 CSSSegmentedFontFace::~CSSSegmentedFontFace() 47 CSSSegmentedFontFace::~CSSSegmentedFontFace()
46 { 48 {
47 pruneTable(); 49 pruneTable();
48 unsigned size = m_fontFaces.size(); 50 unsigned size = m_fontFaces.size();
49 for (unsigned i = 0; i < size; i++) 51 for (unsigned i = 0; i < size; i++)
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 if (isLoading()) 177 if (isLoading())
176 m_callbacks.append(callback); 178 m_callbacks.append(callback);
177 else if (checkFont()) 179 else if (checkFont())
178 callback->notifyLoaded(this); 180 callback->notifyLoaded(this);
179 else 181 else
180 callback->notifyError(this); 182 callback->notifyError(this);
181 } 183 }
182 } 184 }
183 185
184 } 186 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSSegmentedFontFace.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698