| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2010 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 17 matching lines...) Expand all Loading... |
| 28 #include "core/css/StyleSheetContents.h" | 28 #include "core/css/StyleSheetContents.h" |
| 29 #include "core/dom/Document.h" | 29 #include "core/dom/Document.h" |
| 30 #include "core/dom/Node.h" | 30 #include "core/dom/Node.h" |
| 31 #include "core/dom/WebCoreMemoryInstrumentation.h" | 31 #include "core/dom/WebCoreMemoryInstrumentation.h" |
| 32 #include "core/loader/cache/CachedFont.h" | 32 #include "core/loader/cache/CachedFont.h" |
| 33 #include "core/loader/cache/CachedResourceLoader.h" | 33 #include "core/loader/cache/CachedResourceLoader.h" |
| 34 #include "core/loader/cache/CachedResourceRequest.h" | 34 #include "core/loader/cache/CachedResourceRequest.h" |
| 35 #include "core/loader/cache/CachedResourceRequestInitiators.h" | 35 #include "core/loader/cache/CachedResourceRequestInitiators.h" |
| 36 #include "core/platform/graphics/FontCustomPlatformData.h" | 36 #include "core/platform/graphics/FontCustomPlatformData.h" |
| 37 #include "core/svg/SVGFontFaceElement.h" | 37 #include "core/svg/SVGFontFaceElement.h" |
| 38 #include <wtf/text/StringBuilder.h> | 38 #include "wtf/text/StringBuilder.h" |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace WebCore { |
| 41 | 41 |
| 42 #if ENABLE(SVG_FONTS) | 42 #if ENABLE(SVG_FONTS) |
| 43 bool CSSFontFaceSrcValue::isSVGFontFaceSrc() const | 43 bool CSSFontFaceSrcValue::isSVGFontFaceSrc() const |
| 44 { | 44 { |
| 45 return equalIgnoringCase(m_format, "svg"); | 45 return equalIgnoringCase(m_format, "svg"); |
| 46 } | 46 } |
| 47 #endif | 47 #endif |
| 48 | 48 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | 113 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); |
| 114 info.addMember(m_resource, "resource"); | 114 info.addMember(m_resource, "resource"); |
| 115 info.addMember(m_format, "format"); | 115 info.addMember(m_format, "format"); |
| 116 // FIXME: add m_cachedFont when MemoryCache is instrumented. | 116 // FIXME: add m_cachedFont when MemoryCache is instrumented. |
| 117 #if ENABLE(SVG_FONTS) | 117 #if ENABLE(SVG_FONTS) |
| 118 info.addMember(m_svgFontFaceElement, "svgFontFaceElement"); | 118 info.addMember(m_svgFontFaceElement, "svgFontFaceElement"); |
| 119 #endif | 119 #endif |
| 120 } | 120 } |
| 121 | 121 |
| 122 } | 122 } |
| OLD | NEW |