| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #include "platform/fonts/FontDataForRangeSet.h" |
| |
| #include "platform/fonts/FontCache.h" |
| |
| namespace blink { |
| |
| FontDataForRangeSet::FontDataForRangeSet(const FontDataForRangeSet& other) { |
| font_data_ = other.font_data_; |
| range_set_ = other.range_set_; |
| } |
| |
| FontDataForRangeSetFromCache::~FontDataForRangeSetFromCache() { |
| if (font_data_ && !font_data_->IsCustomFont()) { |
| FontCache::GetFontCache()->ReleaseFontData(font_data_.Get()); |
| } |
| } |
| |
| } // namespace blink |