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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSFontFace.h

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: All windows error are Resolved now. Created 3 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 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 class CORE_EXPORT CSSFontFace final 46 class CORE_EXPORT CSSFontFace final
47 : public GarbageCollectedFinalized<CSSFontFace> { 47 : public GarbageCollectedFinalized<CSSFontFace> {
48 WTF_MAKE_NONCOPYABLE(CSSFontFace); 48 WTF_MAKE_NONCOPYABLE(CSSFontFace);
49 49
50 public: 50 public:
51 CSSFontFace(FontFace* fontFace, Vector<UnicodeRange>& ranges) 51 CSSFontFace(FontFace* fontFace, Vector<UnicodeRange>& ranges)
52 : m_ranges(adoptRef(new UnicodeRangeSet(ranges))), 52 : m_ranges(adoptRef(new UnicodeRangeSet(ranges))),
53 m_segmentedFontFace(nullptr), 53 m_segmentedFontFace(nullptr),
54 m_fontFace(fontFace) { 54 m_fontFace(fontFace) {
55 ASSERT(m_fontFace); 55 DCHECK(m_fontFace);
56 } 56 }
57 57
58 FontFace* fontFace() const { return m_fontFace; } 58 FontFace* fontFace() const { return m_fontFace; }
59 59
60 PassRefPtr<UnicodeRangeSet> ranges() { return m_ranges; } 60 PassRefPtr<UnicodeRangeSet> ranges() { return m_ranges; }
61 61
62 void setSegmentedFontFace(CSSSegmentedFontFace*); 62 void setSegmentedFontFace(CSSSegmentedFontFace*);
63 void clearSegmentedFontFace() { m_segmentedFontFace = nullptr; } 63 void clearSegmentedFontFace() { m_segmentedFontFace = nullptr; }
64 64
65 bool isValid() const { return !m_sources.isEmpty(); } 65 bool isValid() const { return !m_sources.isEmpty(); }
(...skipping 24 matching lines...) Expand all
90 90
91 RefPtr<UnicodeRangeSet> m_ranges; 91 RefPtr<UnicodeRangeSet> m_ranges;
92 Member<CSSSegmentedFontFace> m_segmentedFontFace; 92 Member<CSSSegmentedFontFace> m_segmentedFontFace;
93 HeapDeque<Member<CSSFontFaceSource>> m_sources; 93 HeapDeque<Member<CSSFontFaceSource>> m_sources;
94 Member<FontFace> m_fontFace; 94 Member<FontFace> m_fontFace;
95 }; 95 };
96 96
97 } // namespace blink 97 } // namespace blink
98 98
99 #endif 99 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.h ('k') | third_party/WebKit/Source/core/css/CSSFontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698