| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 FontStyleMatcher_h | 5 #ifndef FontStyleMatcher_h |
| 6 #define FontStyleMatcher_h | 6 #define FontStyleMatcher_h |
| 7 | 7 |
| 8 #include "platform/fonts/FontTraits.h" | 8 #include "platform/fonts/FontTraits.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 class CSSSegmentedFontFace; | 12 class CSSSegmentedFontFace; |
| 13 | 13 |
| 14 class FontStyleMatcher final { | 14 class FontStyleMatcher final { |
| 15 public: | 15 public: |
| 16 explicit FontStyleMatcher(const FontTraits& fontTraits) : m_fontTraits(fontT
raits) {}; | 16 explicit FontStyleMatcher(const FontTraits& fontTraits) : m_fontTraits(fontT
raits) {}; |
| 17 bool isCandidateBetter(CSSSegmentedFontFace* candidate, CSSSegmentedFontFace
* current); | 17 bool isCandidateBetter(CSSSegmentedFontFace* candidate, CSSSegmentedFontFace
* current); |
| 18 | 18 |
| 19 private: | 19 private: |
| 20 FontStyleMatcher(); | 20 FontStyleMatcher(); |
| 21 const FontTraits& m_fontTraits; | 21 const FontTraits& m_fontTraits; |
| 22 }; | 22 }; |
| 23 | 23 |
| 24 } | 24 } // namespace blink |
| 25 | 25 |
| 26 #endif | 26 #endif |
| OLD | NEW |