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

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

Issue 1858753003: Remove RawPtr from core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 "core/css/RemoteFontFaceSource.h" 5 #include "core/css/RemoteFontFaceSource.h"
6 6
7 #include "core/css/CSSCustomFontData.h" 7 #include "core/css/CSSCustomFontData.h"
8 #include "core/css/CSSFontFace.h" 8 #include "core/css/CSSFontFace.h"
9 #include "core/css/FontLoader.h" 9 #include "core/css/FontLoader.h"
10 #include "core/page/NetworkStateNotifier.h" 10 #include "core/page/NetworkStateNotifier.h"
11 #include "platform/Histogram.h" 11 #include "platform/Histogram.h"
12 #include "platform/RuntimeEnabledFeatures.h" 12 #include "platform/RuntimeEnabledFeatures.h"
13 #include "platform/fonts/FontCache.h" 13 #include "platform/fonts/FontCache.h"
14 #include "platform/fonts/FontDescription.h" 14 #include "platform/fonts/FontDescription.h"
15 #include "platform/fonts/SimpleFontData.h" 15 #include "platform/fonts/SimpleFontData.h"
16 #include "wtf/CurrentTime.h" 16 #include "wtf/CurrentTime.h"
17 17
18 namespace blink { 18 namespace blink {
19 19
20 RemoteFontFaceSource::RemoteFontFaceSource(RawPtr<FontResource> font, RawPtr<Fon tLoader> fontLoader, FontDisplay display) 20 RemoteFontFaceSource::RemoteFontFaceSource(FontResource* font, FontLoader* fontL oader, FontDisplay display)
21 : m_font(font) 21 : m_font(font)
22 , m_fontLoader(fontLoader) 22 , m_fontLoader(fontLoader)
23 , m_display(display) 23 , m_display(display)
24 , m_period(display == FontDisplaySwap ? SwapPeriod : BlockPeriod) 24 , m_period(display == FontDisplaySwap ? SwapPeriod : BlockPeriod)
25 , m_isInterventionTriggered(false) 25 , m_isInterventionTriggered(false)
26 { 26 {
27 #if ENABLE(OILPAN) 27 #if ENABLE(OILPAN)
28 ThreadState::current()->registerPreFinalizer(this); 28 ThreadState::current()->registerPreFinalizer(this);
29 #endif 29 #endif
30 m_font->addClient(this); 30 m_font->addClient(this);
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 interventionResult |= 1 << 0; 291 interventionResult |= 1 << 0;
292 if (triggered) 292 if (triggered)
293 interventionResult |= 1 << 1; 293 interventionResult |= 1 << 1;
294 const int boundary = 1 << 2; 294 const int boundary = 1 << 2;
295 295
296 DEFINE_STATIC_LOCAL(EnumerationHistogram, interventionHistogram, ("WebFont.I nterventionResult", boundary)); 296 DEFINE_STATIC_LOCAL(EnumerationHistogram, interventionHistogram, ("WebFont.I nterventionResult", boundary));
297 interventionHistogram.count(interventionResult); 297 interventionHistogram.count(interventionResult);
298 } 298 }
299 299
300 } // namespace blink 300 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/RemoteFontFaceSource.h ('k') | third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698