| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "core/css/CSSFontSelector.h" | 29 #include "core/css/CSSFontSelector.h" |
| 30 #include "core/css/CSSSegmentedFontFace.h" | 30 #include "core/css/CSSSegmentedFontFace.h" |
| 31 #include "core/css/CSSValueList.h" | 31 #include "core/css/CSSValueList.h" |
| 32 #include "core/css/FontFace.h" | 32 #include "core/css/FontFace.h" |
| 33 #include "core/css/FontStyleMatcher.h" | 33 #include "core/css/FontStyleMatcher.h" |
| 34 #include "core/css/StyleRule.h" | 34 #include "core/css/StyleRule.h" |
| 35 #include "core/loader/resource/FontResource.h" | 35 #include "core/loader/resource/FontResource.h" |
| 36 #include "platform/FontFamilyNames.h" | 36 #include "platform/FontFamilyNames.h" |
| 37 #include "platform/fonts/FontDescription.h" | 37 #include "platform/fonts/FontDescription.h" |
| 38 #include "platform/loader/fetch/ResourceFetcher.h" | 38 #include "platform/loader/fetch/ResourceFetcher.h" |
| 39 #include "wtf/text/AtomicString.h" | 39 #include "platform/wtf/text/AtomicString.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 static unsigned g_version = 0; | 43 static unsigned g_version = 0; |
| 44 | 44 |
| 45 FontFaceCache::FontFaceCache() : version_(0) {} | 45 FontFaceCache::FontFaceCache() : version_(0) {} |
| 46 | 46 |
| 47 void FontFaceCache::Add(CSSFontSelector* css_font_selector, | 47 void FontFaceCache::Add(CSSFontSelector* css_font_selector, |
| 48 const StyleRuleFontFace* font_face_rule, | 48 const StyleRuleFontFace* font_face_rule, |
| 49 FontFace* font_face) { | 49 FontFace* font_face) { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 } | 160 } |
| 161 | 161 |
| 162 DEFINE_TRACE(FontFaceCache) { | 162 DEFINE_TRACE(FontFaceCache) { |
| 163 visitor->Trace(font_faces_); | 163 visitor->Trace(font_faces_); |
| 164 visitor->Trace(fonts_); | 164 visitor->Trace(fonts_); |
| 165 visitor->Trace(style_rule_to_font_face_); | 165 visitor->Trace(style_rule_to_font_face_); |
| 166 visitor->Trace(css_connected_font_faces_); | 166 visitor->Trace(css_connected_font_faces_); |
| 167 } | 167 } |
| 168 | 168 |
| 169 } // namespace blink | 169 } // namespace blink |
| OLD | NEW |