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

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

Issue 463543002: Oilpan: Ensure that classes with virtual trace methods always have vtables for their left-most base… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
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 #include "config.h" 5 #include "config.h"
6 #include "core/css/RemoteFontFaceSource.h" 6 #include "core/css/RemoteFontFaceSource.h"
7 7
8 #include "core/css/CSSCustomFontData.h" 8 #include "core/css/CSSCustomFontData.h"
9 #include "core/css/CSSFontFace.h" 9 #include "core/css/CSSFontFace.h"
10 #include "core/css/FontLoader.h" 10 #include "core/css/FontLoader.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 bool RemoteFontFaceSource::ensureFontData() 129 bool RemoteFontFaceSource::ensureFontData()
130 { 130 {
131 return m_font->ensureCustomFontData(); 131 return m_font->ensureCustomFontData();
132 } 132 }
133 133
134 void RemoteFontFaceSource::trace(Visitor* visitor) 134 void RemoteFontFaceSource::trace(Visitor* visitor)
135 { 135 {
136 visitor->trace(m_fontLoader); 136 visitor->trace(m_fontLoader);
137 CSSFontFaceSource::trace(visitor); 137 CSSFontFaceSource::trace(visitor);
138 FontResourceClient::trace(visitor);
138 } 139 }
139 140
140 void RemoteFontFaceSource::FontLoadHistograms::loadStarted() 141 void RemoteFontFaceSource::FontLoadHistograms::loadStarted()
141 { 142 {
142 if (!m_loadStartTime) 143 if (!m_loadStartTime)
143 m_loadStartTime = currentTimeMS(); 144 m_loadStartTime = currentTimeMS();
144 } 145 }
145 146
146 void RemoteFontFaceSource::FontLoadHistograms::fallbackFontPainted() 147 void RemoteFontFaceSource::FontLoadHistograms::fallbackFontPainted()
147 { 148 {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 if (size < 50 * 1024) 189 if (size < 50 * 1024)
189 return "WebFont.DownloadTime.1.10KBTo50KB"; 190 return "WebFont.DownloadTime.1.10KBTo50KB";
190 if (size < 100 * 1024) 191 if (size < 100 * 1024)
191 return "WebFont.DownloadTime.2.50KBTo100KB"; 192 return "WebFont.DownloadTime.2.50KBTo100KB";
192 if (size < 1024 * 1024) 193 if (size < 1024 * 1024)
193 return "WebFont.DownloadTime.3.100KBTo1MB"; 194 return "WebFont.DownloadTime.3.100KBTo1MB";
194 return "WebFont.DownloadTime.4.Over1MB"; 195 return "WebFont.DownloadTime.4.Over1MB";
195 } 196 }
196 197
197 } // namespace blink 198 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698