| 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 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 3 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 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 23 matching lines...) Expand all Loading... |
| 34 #include "core/css/resolver/StyleResolver.h" | 34 #include "core/css/resolver/StyleResolver.h" |
| 35 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
| 36 #include "core/frame/LocalFrame.h" | 36 #include "core/frame/LocalFrame.h" |
| 37 #include "core/frame/Settings.h" | 37 #include "core/frame/Settings.h" |
| 38 #include "core/loader/FrameLoader.h" | 38 #include "core/loader/FrameLoader.h" |
| 39 #include "platform/RuntimeEnabledFeatures.h" | 39 #include "platform/RuntimeEnabledFeatures.h" |
| 40 #include "platform/fonts/FontCache.h" | 40 #include "platform/fonts/FontCache.h" |
| 41 #include "platform/fonts/SimpleFontData.h" | 41 #include "platform/fonts/SimpleFontData.h" |
| 42 #include "wtf/text/AtomicString.h" | 42 #include "wtf/text/AtomicString.h" |
| 43 | 43 |
| 44 using namespace std; | |
| 45 | |
| 46 namespace WebCore { | 44 namespace WebCore { |
| 47 | 45 |
| 48 CSSFontSelector::CSSFontSelector(Document* document) | 46 CSSFontSelector::CSSFontSelector(Document* document) |
| 49 : m_document(document) | 47 : m_document(document) |
| 50 , m_fontLoader(FontLoader::create(document->fetcher())) | 48 , m_fontLoader(FontLoader::create(document->fetcher())) |
| 51 , m_genericFontFamilySettings(document->frame()->settings()->genericFontFami
lySettings()) | 49 , m_genericFontFamilySettings(document->frame()->settings()->genericFontFami
lySettings()) |
| 52 { | 50 { |
| 53 // FIXME: An old comment used to say there was no need to hold a reference t
o m_document | 51 // FIXME: An old comment used to say there was no need to hold a reference t
o m_document |
| 54 // because "we are guaranteed to be destroyed before the document". But ther
e does not | 52 // because "we are guaranteed to be destroyed before the document". But ther
e does not |
| 55 // seem to be any such guarantee. | 53 // seem to be any such guarantee. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 void CSSFontSelector::trace(Visitor* visitor) | 175 void CSSFontSelector::trace(Visitor* visitor) |
| 178 { | 176 { |
| 179 visitor->trace(m_document); | 177 visitor->trace(m_document); |
| 180 visitor->trace(m_fontFaceCache); | 178 visitor->trace(m_fontFaceCache); |
| 181 visitor->trace(m_clients); | 179 visitor->trace(m_clients); |
| 182 visitor->trace(m_fontLoader); | 180 visitor->trace(m_fontLoader); |
| 183 FontSelector::trace(visitor); | 181 FontSelector::trace(visitor); |
| 184 } | 182 } |
| 185 | 183 |
| 186 } | 184 } |
| OLD | NEW |