Changeset 267497 in webkit
- Timestamp:
- Sep 23, 2020, 12:50:23 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 85 edited
-
ChangeLog (modified) (1 diff)
-
Source/WTF/ChangeLog (modified) (1 diff)
-
Source/WTF/wtf/PlatformEnable.h (modified) (1 diff)
-
Source/WebCore/CMakeLists.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSFontFace.cpp (modified) (3 diffs)
-
Source/WebCore/css/CSSFontFace.h (modified) (1 diff)
-
Source/WebCore/css/CSSFontFaceSource.cpp (modified) (9 diffs)
-
Source/WebCore/css/CSSFontFaceSource.h (modified) (2 diffs)
-
Source/WebCore/css/CSSFontFaceSrcValue.cpp (modified) (3 diffs)
-
Source/WebCore/css/CSSFontFaceSrcValue.h (modified) (4 diffs)
-
Source/WebCore/inspector/agents/InspectorPageAgent.cpp (modified) (2 diffs)
-
Source/WebCore/loader/LinkLoader.cpp (modified) (1 diff)
-
Source/WebCore/loader/ResourceLoadInfo.cpp (modified) (1 diff)
-
Source/WebCore/loader/SubresourceLoader.cpp (modified) (1 diff)
-
Source/WebCore/loader/cache/CachedResource.cpp (modified) (2 diffs)
-
Source/WebCore/loader/cache/CachedResource.h (modified) (1 diff)
-
Source/WebCore/loader/cache/CachedResourceLoader.cpp (modified) (7 diffs)
-
Source/WebCore/loader/cache/CachedSVGFont.cpp (modified) (2 diffs)
-
Source/WebCore/loader/cache/CachedSVGFont.h (modified) (2 diffs)
-
Source/WebCore/loader/cache/MemoryCache.cpp (modified) (1 diff)
-
Source/WebCore/rendering/svg/SVGTextLayoutEngineSpacing.cpp (modified) (1 diff)
-
Source/WebCore/style/StyleResolver.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGAltGlyphDefElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGAltGlyphDefElement.h (modified) (2 diffs)
-
Source/WebCore/svg/SVGAltGlyphDefElement.idl (modified) (1 diff)
-
Source/WebCore/svg/SVGAltGlyphElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGAltGlyphElement.h (modified) (2 diffs)
-
Source/WebCore/svg/SVGAltGlyphElement.idl (modified) (1 diff)
-
Source/WebCore/svg/SVGAltGlyphItemElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGAltGlyphItemElement.h (modified) (2 diffs)
-
Source/WebCore/svg/SVGAltGlyphItemElement.idl (modified) (1 diff)
-
Source/WebCore/svg/SVGDocumentExtensions.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGDocumentExtensions.h (modified) (1 diff)
-
Source/WebCore/svg/SVGElement.cpp (modified) (1 diff)
-
Source/WebCore/svg/SVGFontElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGFontElement.h (modified) (2 diffs)
-
Source/WebCore/svg/SVGFontElement.idl (modified) (1 diff)
-
Source/WebCore/svg/SVGFontFaceElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGFontFaceElement.h (modified) (2 diffs)
-
Source/WebCore/svg/SVGFontFaceElement.idl (modified) (1 diff)
-
Source/WebCore/svg/SVGFontFaceFormatElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGFontFaceFormatElement.h (modified) (2 diffs)
-
Source/WebCore/svg/SVGFontFaceFormatElement.idl (modified) (1 diff)
-
Source/WebCore/svg/SVGFontFaceNameElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGFontFaceNameElement.h (modified) (2 diffs)
-
Source/WebCore/svg/SVGFontFaceNameElement.idl (modified) (1 diff)
-
Source/WebCore/svg/SVGFontFaceSrcElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGFontFaceSrcElement.h (modified) (2 diffs)
-
Source/WebCore/svg/SVGFontFaceSrcElement.idl (modified) (1 diff)
-
Source/WebCore/svg/SVGFontFaceUriElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGFontFaceUriElement.h (modified) (2 diffs)
-
Source/WebCore/svg/SVGFontFaceUriElement.idl (modified) (1 diff)
-
Source/WebCore/svg/SVGGlyphElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGGlyphElement.h (modified) (2 diffs)
-
Source/WebCore/svg/SVGGlyphElement.idl (modified) (1 diff)
-
Source/WebCore/svg/SVGGlyphRefElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGGlyphRefElement.h (modified) (2 diffs)
-
Source/WebCore/svg/SVGGlyphRefElement.idl (modified) (1 diff)
-
Source/WebCore/svg/SVGHKernElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGHKernElement.h (modified) (2 diffs)
-
Source/WebCore/svg/SVGHKernElement.idl (modified) (1 diff)
-
Source/WebCore/svg/SVGMissingGlyphElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGMissingGlyphElement.h (modified) (2 diffs)
-
Source/WebCore/svg/SVGMissingGlyphElement.idl (modified) (1 diff)
-
Source/WebCore/svg/SVGTRefElement.cpp (modified) (1 diff)
-
Source/WebCore/svg/SVGTSpanElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGTests.cpp (modified) (4 diffs)
-
Source/WebCore/svg/SVGTextElement.cpp (modified) (1 diff)
-
Source/WebCore/svg/SVGTextPositioningElement.cpp (modified) (1 diff)
-
Source/WebCore/svg/SVGToOTFFontConversion.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGVKernElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGVKernElement.h (modified) (2 diffs)
-
Source/WebCore/svg/SVGVKernElement.idl (modified) (1 diff)
-
Source/WebCore/svg/svgtags.in (modified) (5 diffs)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp (modified) (1 diff)
-
Source/cmake/OptionsFTW.cmake (modified) (1 diff)
-
Source/cmake/OptionsMac.cmake (modified) (1 diff)
-
Source/cmake/OptionsWin.cmake (modified) (1 diff)
-
Source/cmake/WebKitFeatures.cmake (modified) (1 diff)
-
Source/cmake/tools/vsprops/FeatureDefines.props (modified) (3 diffs)
-
Source/cmake/tools/vsprops/FeatureDefinesCairo.props (modified) (3 diffs)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/Scripts/webkitperl/FeatureList.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r267458 r267497 1 2020-09-23 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Remove ENABLE_SVG_FONTS macro 4 https://bugs.webkit.org/show_bug.cgi?id=216850 5 6 Reviewed by Don Olmstead. 7 8 No ports have this disabled, so remove it. 9 10 * Source/cmake/OptionsFTW.cmake: 11 * Source/cmake/OptionsMac.cmake: 12 * Source/cmake/OptionsWin.cmake: 13 * Source/cmake/WebKitFeatures.cmake: 14 * Source/cmake/tools/vsprops/FeatureDefines.props: 15 * Source/cmake/tools/vsprops/FeatureDefinesCairo.props: 16 1 17 2020-09-22 Keith Rollin <krollin@apple.com> 2 18 -
trunk/Source/WTF/ChangeLog
r267472 r267497 1 2020-09-23 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Remove ENABLE_SVG_FONTS macro 4 https://bugs.webkit.org/show_bug.cgi?id=216850 5 6 Reviewed by Don Olmstead. 7 8 * wtf/PlatformEnable.h: 9 1 10 2020-09-23 Youenn Fablet <youenn@apple.com> 2 11 -
trunk/Source/WTF/wtf/PlatformEnable.h
r267371 r267497 455 455 #endif 456 456 457 #if !defined(ENABLE_SVG_FONTS)458 #define ENABLE_SVG_FONTS 1459 #endif460 461 457 #if !defined(ENABLE_TEXT_CARET) 462 458 #define ENABLE_TEXT_CARET 1 -
trunk/Source/WebCore/CMakeLists.txt
r267472 r267497 2068 2068 endif () 2069 2069 2070 # SVG extra defines need to map to a numerical value for correct preprocessing of svgtags.in. 2071 set(SVG_EXTRA_DEFINES "") 2072 if (ENABLE_SVG_FONTS) 2073 list(APPEND SVG_EXTRA_DEFINES "ENABLE_SVG_FONTS=1") 2074 endif () 2075 2076 GENERATE_DOM_NAMES(SVG ${WEBCORE_DIR}/svg/svgattrs.in ${WEBCORE_DIR}/svg/svgtags.in "${SVG_EXTRA_DEFINES}") 2070 GENERATE_DOM_NAMES(SVG ${WEBCORE_DIR}/svg/svgattrs.in ${WEBCORE_DIR}/svg/svgtags.in) 2077 2071 list(APPEND WebCore_SOURCES ${WebCore_DERIVED_SOURCES_DIR}/SVGNames.cpp) 2078 2072 -
trunk/Source/WebCore/ChangeLog
r267495 r267497 1 2020-09-23 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Remove ENABLE_SVG_FONTS macro 4 https://bugs.webkit.org/show_bug.cgi?id=216850 5 6 Reviewed by Don Olmstead. 7 8 * CMakeLists.txt: 9 * css/CSSFontFace.cpp: 10 (WebCore::CSSFontFace::appendSources): 11 (WebCore::CSSFontFace::hasSVGFontFaceSource const): 12 * css/CSSFontFace.h: 13 * css/CSSFontFaceSource.cpp: 14 (WebCore::CSSFontFaceSource::CSSFontFaceSource): 15 (WebCore::CSSFontFaceSource::load): 16 (WebCore::CSSFontFaceSource::font): 17 (WebCore::CSSFontFaceSource::isSVGFontFaceSource const): 18 * css/CSSFontFaceSource.h: 19 * css/CSSFontFaceSrcValue.cpp: 20 (WebCore::CSSFontFaceSrcValue::isSVGFontTarget const): 21 (WebCore::CSSFontFaceSrcValue::isSupportedFormat const): 22 * css/CSSFontFaceSrcValue.h: 23 * inspector/agents/InspectorPageAgent.cpp: 24 (WebCore::InspectorPageAgent::inspectorResourceType): 25 * loader/LinkLoader.cpp: 26 (WebCore::createLinkPreloadResourceClient): 27 * loader/ResourceLoadInfo.cpp: 28 (WebCore::ContentExtensions::toResourceType): 29 * loader/SubresourceLoader.cpp: 30 (WebCore::logResourceLoaded): 31 * loader/cache/CachedResource.cpp: 32 (WebCore::CachedResource::defaultPriorityForResourceType): 33 (WebCore::CachedResource::isCORSSameOrigin const): 34 * loader/cache/CachedResource.h: 35 * loader/cache/CachedResourceLoader.cpp: 36 (WebCore::createResource): 37 (WebCore::CachedResourceLoader::requestFont): 38 (WebCore::contentTypeFromResourceType): 39 (WebCore::CachedResourceLoader::checkInsecureContent const): 40 (WebCore::CachedResourceLoader::allowedByContentSecurityPolicy const): 41 (WebCore::CachedResourceLoader::shouldUpdateCachedResourceWithCurrentRequest): 42 (WebCore::destinationForType): 43 * loader/cache/CachedSVGFont.cpp: 44 * loader/cache/CachedSVGFont.h: 45 * loader/cache/MemoryCache.cpp: 46 (WebCore::MemoryCache::getStatistics): 47 * rendering/svg/SVGTextLayoutEngineSpacing.cpp: 48 * style/StyleResolver.cpp: 49 (WebCore::Style::Resolver::addCurrentSVGFontFaceRules): 50 * svg/SVGAltGlyphDefElement.cpp: 51 * svg/SVGAltGlyphDefElement.h: 52 * svg/SVGAltGlyphDefElement.idl: 53 * svg/SVGAltGlyphElement.cpp: 54 * svg/SVGAltGlyphElement.h: 55 * svg/SVGAltGlyphElement.idl: 56 * svg/SVGAltGlyphItemElement.cpp: 57 * svg/SVGAltGlyphItemElement.h: 58 * svg/SVGAltGlyphItemElement.idl: 59 * svg/SVGDocumentExtensions.cpp: 60 * svg/SVGDocumentExtensions.h: 61 * svg/SVGElement.cpp: 62 (WebCore::SVGElement::childShouldCreateRenderer const): 63 * svg/SVGFontElement.cpp: 64 * svg/SVGFontElement.h: 65 * svg/SVGFontElement.idl: 66 * svg/SVGFontFaceElement.cpp: 67 * svg/SVGFontFaceElement.h: 68 * svg/SVGFontFaceElement.idl: 69 * svg/SVGFontFaceFormatElement.cpp: 70 * svg/SVGFontFaceFormatElement.h: 71 * svg/SVGFontFaceFormatElement.idl: 72 * svg/SVGFontFaceNameElement.cpp: 73 * svg/SVGFontFaceNameElement.h: 74 * svg/SVGFontFaceNameElement.idl: 75 * svg/SVGFontFaceSrcElement.cpp: 76 * svg/SVGFontFaceSrcElement.h: 77 * svg/SVGFontFaceSrcElement.idl: 78 * svg/SVGFontFaceUriElement.cpp: 79 * svg/SVGFontFaceUriElement.h: 80 * svg/SVGFontFaceUriElement.idl: 81 * svg/SVGGlyphElement.cpp: 82 * svg/SVGGlyphElement.h: 83 * svg/SVGGlyphElement.idl: 84 * svg/SVGGlyphRefElement.cpp: 85 * svg/SVGGlyphRefElement.h: 86 * svg/SVGGlyphRefElement.idl: 87 * svg/SVGHKernElement.cpp: 88 * svg/SVGHKernElement.h: 89 * svg/SVGHKernElement.idl: 90 * svg/SVGMissingGlyphElement.cpp: 91 * svg/SVGMissingGlyphElement.h: 92 * svg/SVGMissingGlyphElement.idl: 93 * svg/SVGTRefElement.cpp: 94 (WebCore::SVGTRefElement::rendererIsNeeded): 95 * svg/SVGTSpanElement.cpp: 96 (WebCore::SVGTSpanElement::childShouldCreateRenderer const): 97 (WebCore::SVGTSpanElement::rendererIsNeeded): 98 * svg/SVGTests.cpp: 99 (WebCore::supportedSVGFeatures): 100 * svg/SVGTextElement.cpp: 101 (WebCore::SVGTextElement::childShouldCreateRenderer const): 102 * svg/SVGTextPositioningElement.cpp: 103 (WebCore::SVGTextPositioningElement::elementFromRenderer): 104 * svg/SVGToOTFFontConversion.cpp: 105 * svg/SVGVKernElement.cpp: 106 * svg/SVGVKernElement.h: 107 * svg/SVGVKernElement.idl: 108 * svg/svgtags.in: 109 1 110 2020-09-23 Tadeu Zagallo <tzagallo@apple.com> 2 111 -
trunk/Source/WebCore/css/CSSFontFace.cpp
r257676 r267497 72 72 bool foundSVGFont = false; 73 73 74 #if ENABLE(SVG_FONTS)75 74 foundSVGFont = item.isSVGFontFaceSrc() || item.svgFontFaceElement(); 76 75 fontFaceElement = item.svgFontFaceElement(); 77 #endif78 76 if (!item.isLocal()) { 79 77 const Settings* settings = document ? &document->settings() : nullptr; … … 706 704 } 707 705 708 #if ENABLE(SVG_FONTS)709 706 bool CSSFontFace::hasSVGFontFaceSource() const 710 707 { … … 716 713 return false; 717 714 } 718 #endif719 715 720 716 void CSSFontFace::setErrorState() -
trunk/Source/WebCore/css/CSSFontFace.h
r257676 r267497 161 161 void updateStyleIfNeeded(); 162 162 163 #if ENABLE(SVG_FONTS)164 163 bool hasSVGFontFaceSource() const; 165 #endif166 164 void setErrorState(); 167 165 -
trunk/Source/WebCore/css/CSSFontFaceSource.cpp
r252760 r267497 30 30 #include "CSSFontSelector.h" 31 31 #include "CachedFont.h" 32 #include "CachedSVGFont.h" 32 33 #include "Document.h" 33 34 #include "Font.h" … … 38 39 #include "ResourceLoadObserver.h" 39 40 #include "RuntimeEnabledFeatures.h" 40 #include "SVGToOTFFontConversion.h"41 #include "SharedBuffer.h"42 43 #if ENABLE(SVG_FONTS)44 #include "CachedSVGFont.h"45 #include "FontCustomPlatformData.h"46 41 #include "SVGFontElement.h" 47 42 #include "SVGFontFaceElement.h" 43 #include "SVGToOTFFontConversion.h" 48 44 #include "SVGURIReference.h" 49 # endif45 #include "SharedBuffer.h" 50 46 51 47 namespace WebCore { … … 76 72 , m_face(owner) 77 73 , m_immediateSource(WTFMove(arrayBufferView)) 78 #if ENABLE(SVG_FONTS)79 74 , m_svgFontFaceElement(makeWeakPtr(fontFace)) 80 75 , m_hasSVGFontFaceElement(m_svgFontFaceElement) 81 #endif 82 { 83 #if !ENABLE(SVG_FONTS) 84 UNUSED_PARAM(fontFace); 85 #endif 86 76 { 87 77 // This may synchronously call fontLoaded(). 88 78 if (m_font) … … 152 142 } else { 153 143 bool success = false; 154 #if ENABLE(SVG_FONTS)155 144 if (m_hasSVGFontFaceElement) { 156 145 if (m_svgFontFaceElement && is<SVGFontElement>(m_svgFontFaceElement->parentNode())) { … … 164 153 } 165 154 } 166 } else 167 #endif 168 if (m_immediateSource) { 155 } else if (m_immediateSource) { 169 156 ASSERT(!m_immediateFontCustomPlatformData); 170 157 bool wrapping; … … 194 181 ASSERT(status() == Status::Success); 195 182 196 #if ENABLE(SVG_FONTS)197 183 bool usesInDocumentSVGFont = m_hasSVGFontFaceElement; 198 #else199 bool usesInDocumentSVGFont = false;200 #endif201 184 202 185 if (!m_font && !usesInDocumentSVGFont) { … … 225 208 return nullptr; 226 209 227 #if ENABLE(SVG_FONTS)228 210 if (!m_svgFontFaceElement || !is<SVGFontElement>(m_svgFontFaceElement->parentNode())) 229 211 return nullptr; … … 231 213 return nullptr; 232 214 return Font::create(m_inDocumentCustomPlatformData->fontPlatformData(fontDescription, syntheticBold, syntheticItalic, fontFaceFeatures, fontFaceCapabilities), Font::Origin::Remote); 233 #endif234 215 235 216 ASSERT_NOT_REACHED(); … … 237 218 } 238 219 239 #if ENABLE(SVG_FONTS)240 220 bool CSSFontFaceSource::isSVGFontFaceSource() const 241 221 { 242 222 return m_hasSVGFontFaceElement || is<CachedSVGFont>(m_font.get()); 243 223 } 244 #endif 245 246 } 224 225 } -
trunk/Source/WebCore/css/CSSFontFaceSource.h
r254202 r267497 76 76 bool requiresExternalResource() const { return m_font; } 77 77 78 #if ENABLE(SVG_FONTS)79 78 bool isSVGFontFaceSource() const; 80 #endif81 79 82 80 private: … … 95 93 std::unique_ptr<FontCustomPlatformData> m_immediateFontCustomPlatformData; 96 94 97 #if ENABLE(SVG_FONTS)98 95 WeakPtr<SVGFontFaceElement> m_svgFontFaceElement; 99 #endif100 96 std::unique_ptr<FontCustomPlatformData> m_inDocumentCustomPlatformData; 101 97 102 98 Status m_status { Status::Pending }; 103 #if ENABLE(SVG_FONTS)104 99 bool m_hasSVGFontFaceElement; 105 #endif106 100 }; 107 101 -
trunk/Source/WebCore/css/CSSFontFaceSrcValue.cpp
r249013 r267497 38 38 namespace WebCore { 39 39 40 #if ENABLE(SVG_FONTS)41 40 bool CSSFontFaceSrcValue::isSVGFontFaceSrc() const 42 41 { … … 48 47 return isSVGFontFaceSrc() || svgFontFaceElement(); 49 48 } 50 #endif51 49 52 50 bool CSSFontFaceSrcValue::isSupportedFormat() const … … 61 59 } 62 60 63 return FontCustomPlatformData::supportsFormat(m_format) 64 #if ENABLE(SVG_FONTS) 65 || isSVGFontFaceSrc() 66 #endif 67 ; 61 return FontCustomPlatformData::supportsFormat(m_format) || isSVGFontFaceSrc(); 68 62 } 69 63 -
trunk/Source/WebCore/css/CSSFontFaceSrcValue.h
r238698 r267497 57 57 bool isSupportedFormat() const; 58 58 59 #if ENABLE(SVG_FONTS)60 59 bool isSVGFontFaceSrc() const; 61 60 bool isSVGFontTarget() const; … … 63 62 SVGFontFaceElement* svgFontFaceElement() const { return m_svgFontFaceElement; } 64 63 void setSVGFontFaceElement(SVGFontFaceElement* element) { m_svgFontFaceElement = element; } 65 #endif66 64 67 65 String customCSSText() const; … … 79 77 , m_isLocal(local) 80 78 , m_loadedFromOpaqueSource(loadedFromOpaqueSource) 81 #if ENABLE(SVG_FONTS)82 79 , m_svgFontFaceElement(0) 83 #endif84 80 { 85 81 } … … 92 88 CachedResourceHandle<CachedFont> m_cachedFont; 93 89 94 #if ENABLE(SVG_FONTS)95 90 SVGFontFaceElement* m_svgFontFaceElement; 96 #endif97 91 }; 98 92 -
trunk/Source/WebCore/inspector/agents/InspectorPageAgent.cpp
r266885 r267497 133 133 case CachedResource::Type::ImageResource: 134 134 // Skip images that were not auto loaded (images disabled in the user agent). 135 #if ENABLE(SVG_FONTS)136 135 case CachedResource::Type::SVGFontResource: 137 #endif138 136 case CachedResource::Type::FontResource: 139 137 // Skip fonts that were referenced in CSS but never used/downloaded. … … 252 250 case CachedResource::Type::ImageResource: 253 251 return InspectorPageAgent::ImageResource; 254 #if ENABLE(SVG_FONTS)255 252 case CachedResource::Type::SVGFontResource: 256 #endif257 253 case CachedResource::Type::FontResource: 258 254 return InspectorPageAgent::FontResource; -
trunk/Source/WebCore/loader/LinkLoader.cpp
r266360 r267497 157 157 case CachedResource::Type::MainResource: 158 158 case CachedResource::Type::Icon: 159 #if ENABLE(SVG_FONTS)160 159 case CachedResource::Type::SVGFontResource: 161 #endif162 160 case CachedResource::Type::SVGDocumentResource: 163 161 #if ENABLE(XSLT) -
trunk/Source/WebCore/loader/ResourceLoadInfo.cpp
r262695 r267497 55 55 56 56 case CachedResource::Type::FontResource: 57 #if ENABLE(SVG_FONTS)58 57 case CachedResource::Type::SVGFontResource: 59 #endif60 58 return ResourceType::Font; 61 59 -
trunk/Source/WebCore/loader/SubresourceLoader.cpp
r267222 r267497 575 575 break; 576 576 case CachedResource::Type::FontResource: 577 #if ENABLE(SVG_FONTS)578 577 case CachedResource::Type::SVGFontResource: 579 #endif580 578 resourceType = DiagnosticLoggingKeys::fontKey(); 581 579 break; -
trunk/Source/WebCore/loader/cache/CachedResource.cpp
r264698 r267497 82 82 case Type::Script: 83 83 return ResourceLoadPriority::High; 84 #if ENABLE(SVG_FONTS)85 84 case Type::SVGFontResource: 86 #endif87 85 case Type::MediaResource: 88 86 case Type::FontResource: … … 439 437 // Following resource types do not use CORS 440 438 ASSERT(type() != Type::FontResource); 441 #if ENABLE(SVG_FONTS)442 439 ASSERT(type() != Type::SVGFontResource); 443 #endif444 440 #if ENABLE(XSLT) 445 441 ASSERT(type() != Type::XSLStyleSheet); -
trunk/Source/WebCore/loader/cache/CachedResource.h
r262695 r267497 71 71 Script, 72 72 FontResource, 73 #if ENABLE(SVG_FONTS)74 73 SVGFontResource, 75 #endif76 74 MediaResource, 77 75 RawResource, -
trunk/Source/WebCore/loader/cache/CachedResourceLoader.cpp
r267222 r267497 123 123 case CachedResource::Type::SVGDocumentResource: 124 124 return new CachedSVGDocument(WTFMove(request), sessionID, cookieJar); 125 #if ENABLE(SVG_FONTS)126 125 case CachedResource::Type::SVGFontResource: 127 126 return new CachedSVGFont(WTFMove(request), sessionID, cookieJar); 128 #endif129 127 case CachedResource::Type::FontResource: 130 128 return new CachedFont(WTFMove(request), sessionID, cookieJar); … … 214 212 ResourceErrorOr<CachedResourceHandle<CachedFont>> CachedResourceLoader::requestFont(CachedResourceRequest&& request, bool isSVG) 215 213 { 216 #if ENABLE(SVG_FONTS)217 214 if (isSVG) 218 215 return castCachedResourceTo<CachedFont>(requestResource(CachedResource::Type::SVGFontResource, WTFMove(request))); 219 #else220 UNUSED_PARAM(isSVG);221 #endif222 216 return castCachedResourceTo<CachedFont>(requestResource(CachedResource::Type::FontResource, WTFMove(request))); 223 217 } … … 341 335 return MixedContentChecker::ContentType::Active; 342 336 343 #if ENABLE(SVG_FONTS)344 337 case CachedResource::Type::SVGFontResource: 345 338 return MixedContentChecker::ContentType::Active; 346 #endif347 339 348 340 case CachedResource::Type::Beacon: … … 403 395 case CachedResource::Type::Icon: 404 396 case CachedResource::Type::ImageResource: 405 #if ENABLE(SVG_FONTS)406 397 case CachedResource::Type::SVGFontResource: 407 #endif408 398 case CachedResource::Type::FontResource: { 409 399 // These resources can corrupt only the frame's pixels. … … 456 446 return false; 457 447 break; 458 #if ENABLE(SVG_FONTS)459 448 case CachedResource::Type::SVGFontResource: 460 #endif461 449 case CachedResource::Type::FontResource: 462 450 if (!m_document->contentSecurityPolicy()->allowFontFromSource(url, redirectResponseReceived)) … … 629 617 return false; 630 618 631 #if ENABLE(SVG_FONTS)632 619 if (resource.type() == CachedResource::Type::SVGFontResource) 633 620 return false; 634 #endif635 621 636 622 #if ENABLE(XSLT) … … 753 739 return FetchOptions::Destination::Script; 754 740 case CachedResource::Type::FontResource: 755 #if ENABLE(SVG_FONTS)756 741 case CachedResource::Type::SVGFontResource: 757 #endif758 742 return FetchOptions::Destination::Font; 759 743 #if ENABLE(XSLT) -
trunk/Source/WebCore/loader/cache/CachedSVGFont.cpp
r252760 r267497 27 27 #include "config.h" 28 28 #include "CachedSVGFont.h" 29 30 #if ENABLE(SVG_FONTS)31 29 32 30 #include "FontDescription.h" … … 134 132 135 133 } 136 137 #endif -
trunk/Source/WebCore/loader/cache/CachedSVGFont.h
r252760 r267497 25 25 26 26 #pragma once 27 28 #if ENABLE(SVG_FONTS)29 27 30 28 #include "CachedFont.h" … … 58 56 59 57 SPECIALIZE_TYPE_TRAITS_CACHED_RESOURCE(CachedSVGFont, CachedResource::Type::SVGFontResource) 60 61 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/loader/cache/MemoryCache.cpp
r254087 r267497 644 644 break; 645 645 #endif 646 #if ENABLE(SVG_FONTS)647 646 case CachedResource::Type::SVGFontResource: 648 #endif649 647 case CachedResource::Type::FontResource: 650 648 stats.fonts.addResource(*resource); -
trunk/Source/WebCore/rendering/svg/SVGTextLayoutEngineSpacing.cpp
r249822 r267497 22 22 23 23 #include "FontCascade.h" 24 #include "SVGFontElement.h" 25 #include "SVGFontFaceElement.h" 24 26 #include "SVGLengthContext.h" 25 27 #include "SVGRenderStyle.h" 26 27 #if ENABLE(SVG_FONTS)28 #include "SVGFontElement.h"29 #include "SVGFontFaceElement.h"30 #endif31 28 32 29 namespace WebCore { -
trunk/Source/WebCore/style/StyleResolver.cpp
r263140 r267497 124 124 void Resolver::addCurrentSVGFontFaceRules() 125 125 { 126 #if ENABLE(SVG_FONTS)127 126 if (m_document.svgExtensions()) { 128 127 const HashSet<SVGFontFaceElement*>& svgFontFaceElements = m_document.svgExtensions()->svgFontFaceElements(); … … 130 129 m_document.fontSelector().addFontFaceRule(svgFontFaceElement->fontFaceRule(), svgFontFaceElement->isInUserAgentShadowTree()); 131 130 } 132 #endif133 131 } 134 132 -
trunk/Source/WebCore/svg/SVGAltGlyphDefElement.cpp
r229694 r267497 19 19 20 20 #include "config.h" 21 22 #if ENABLE(SVG_FONTS)23 21 #include "SVGAltGlyphDefElement.h" 24 22 … … 121 119 122 120 } 123 124 #endif -
trunk/Source/WebCore/svg/SVGAltGlyphDefElement.h
r229694 r267497 20 20 #pragma once 21 21 22 #if ENABLE(SVG_FONTS)23 24 22 #include "SVGElement.h" 25 23 #include <wtf/Forward.h> … … 41 39 42 40 } // namespace WebCore 43 44 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGAltGlyphDefElement.idl
r163440 r267497 18 18 */ 19 19 20 [Conditional=SVG_FONTS]interface SVGAltGlyphDefElement : SVGElement {20 interface SVGAltGlyphDefElement : SVGElement { 21 21 }; 22 22 -
trunk/Source/WebCore/svg/SVGAltGlyphElement.cpp
r246490 r267497 23 23 #include "config.h" 24 24 #include "SVGAltGlyphElement.h" 25 26 #if ENABLE(SVG_FONTS)27 25 28 26 #include "RenderInline.h" … … 97 95 98 96 } 99 100 #endif -
trunk/Source/WebCore/svg/SVGAltGlyphElement.h
r246490 r267497 21 21 22 22 #pragma once 23 24 #if ENABLE(SVG_FONTS)25 23 26 24 #include "SVGTextPositioningElement.h" … … 56 54 57 55 } // namespace WebCore 58 59 #endif -
trunk/Source/WebCore/svg/SVGAltGlyphElement.idl
r266523 r267497 24 24 */ 25 25 26 [ 27 Conditional=SVG_FONTS, 28 ] interface SVGAltGlyphElement : SVGTextPositioningElement { 26 interface SVGAltGlyphElement : SVGTextPositioningElement { 29 27 attribute DOMString glyphRef; 30 28 attribute DOMString format; -
trunk/Source/WebCore/svg/SVGAltGlyphItemElement.cpp
r229694 r267497 20 20 #include "config.h" 21 21 22 #if ENABLE(SVG_FONTS)23 22 #include "SVGAltGlyphItemElement.h" 24 23 … … 67 66 68 67 } 69 70 #endif -
trunk/Source/WebCore/svg/SVGAltGlyphItemElement.h
r229694 r267497 20 20 #pragma once 21 21 22 #if ENABLE(SVG_FONTS)23 24 22 #include "SVGElement.h" 25 23 #include <wtf/Forward.h> … … 41 39 42 40 } // namespace WebCore 43 44 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGAltGlyphItemElement.idl
r163440 r267497 18 18 */ 19 19 20 [Conditional=SVG_FONTS]interface SVGAltGlyphItemElement : SVGElement {20 interface SVGAltGlyphItemElement : SVGElement { 21 21 }; 22 22 -
trunk/Source/WebCore/svg/SVGDocumentExtensions.cpp
r251290 r267497 342 342 } 343 343 344 #if ENABLE(SVG_FONTS)345 346 344 void SVGDocumentExtensions::registerSVGFontFaceElement(SVGFontFaceElement& element) 347 345 { … … 355 353 } 356 354 357 #endif 358 359 } 355 } -
trunk/Source/WebCore/svg/SVGDocumentExtensions.h
r251290 r267497 71 71 void rebuildElements(); 72 72 73 #if ENABLE(SVG_FONTS)74 73 const HashSet<SVGFontFaceElement*>& svgFontFaceElements() const { return m_svgFontFaceElements; } 75 74 void registerSVGFontFaceElement(SVGFontFaceElement&); 76 75 void unregisterSVGFontFaceElement(SVGFontFaceElement&); 77 #endif78 76 79 77 private: 80 78 Document& m_document; 81 79 HashSet<SVGSVGElement*> m_timeContainers; // For SVG 1.2 support this will need to be made more general. 82 #if ENABLE(SVG_FONTS)83 80 HashSet<SVGFontFaceElement*> m_svgFontFaceElements; 84 #endif85 81 HashMap<AtomString, RenderSVGResourceContainer*> m_resources; 86 82 HashMap<AtomString, std::unique_ptr<PendingElements>> m_pendingResources; // Resources that are pending. -
trunk/Source/WebCore/svg/SVGElement.cpp
r267191 r267497 476 476 477 477 static const QualifiedName* const invalidTextContent[] { 478 #if ENABLE(SVG_FONTS)479 478 &SVGNames::altGlyphTag.get(), 480 #endif481 479 &SVGNames::textPathTag.get(), 482 480 &SVGNames::trefTag.get(), -
trunk/Source/WebCore/svg/SVGFontElement.cpp
r251318 r267497 22 22 23 23 #include "config.h" 24 25 #if ENABLE(SVG_FONTS)26 24 #include "SVGFontElement.h" 27 25 … … 53 51 54 52 } 55 56 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGFontElement.h
r251318 r267497 22 22 23 23 #pragma once 24 25 #if ENABLE(SVG_FONTS)26 24 27 25 #include "SVGElement.h" … … 59 57 60 58 } // namespace WebCore 61 62 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGFontElement.idl
r163440 r267497 24 24 */ 25 25 26 [ 27 Conditional=SVG_FONTS 28 ] interface SVGFontElement : SVGElement { 26 interface SVGFontElement : SVGElement { 29 27 }; 30 28 -
trunk/Source/WebCore/svg/SVGFontFaceElement.cpp
r246490 r267497 22 22 #include "config.h" 23 23 24 #if ENABLE(SVG_FONTS)25 24 #include "SVGFontFaceElement.h" 26 25 … … 332 331 333 332 } // namespace WebCore 334 335 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGFontFaceElement.h
r246490 r267497 21 21 22 22 #pragma once 23 24 #if ENABLE(SVG_FONTS)25 23 26 24 #include "SVGElement.h" … … 71 69 72 70 } // namespace WebCore 73 74 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGFontFaceElement.idl
r163440 r267497 24 24 */ 25 25 26 [ 27 Conditional=SVG_FONTS 28 ] interface SVGFontFaceElement : SVGElement { 26 interface SVGFontFaceElement : SVGElement { 29 27 }; 30 28 -
trunk/Source/WebCore/svg/SVGFontFaceFormatElement.cpp
r229694 r267497 19 19 20 20 #include "config.h" 21 22 #if ENABLE(SVG_FONTS)23 21 #include "SVGFontFaceFormatElement.h" 24 22 … … 61 59 62 60 } 63 64 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGFontFaceFormatElement.h
r229694 r267497 20 20 #pragma once 21 21 22 #if ENABLE(SVG_FONTS)23 24 22 #include "SVGElement.h" 25 23 … … 39 37 40 38 } // namespace WebCore 41 42 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGFontFaceFormatElement.idl
r163440 r267497 24 24 */ 25 25 26 [ 27 Conditional=SVG_FONTS 28 ] interface SVGFontFaceFormatElement : SVGElement { 26 interface SVGFontFaceFormatElement : SVGElement { 29 27 }; 30 28 -
trunk/Source/WebCore/svg/SVGFontFaceNameElement.cpp
r229694 r267497 19 19 20 20 #include "config.h" 21 22 #if ENABLE(SVG_FONTS)23 21 #include "SVGFontFaceNameElement.h" 24 22 … … 48 46 49 47 } 50 51 #endif // ENABLE(SVG_FONTS)52 -
trunk/Source/WebCore/svg/SVGFontFaceNameElement.h
r229694 r267497 20 20 #pragma once 21 21 22 #if ENABLE(SVG_FONTS)23 24 22 #include "SVGElement.h" 25 23 … … 42 40 43 41 } // namespace WebCore 44 45 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGFontFaceNameElement.idl
r163440 r267497 24 24 */ 25 25 26 [ 27 Conditional=SVG_FONTS 28 ] interface SVGFontFaceNameElement : SVGElement { 26 interface SVGFontFaceNameElement : SVGElement { 29 27 }; 30 28 -
trunk/Source/WebCore/svg/SVGFontFaceSrcElement.cpp
r229694 r267497 19 19 20 20 #include "config.h" 21 22 #if ENABLE(SVG_FONTS)23 21 #include "SVGFontFaceSrcElement.h" 24 22 … … 72 70 73 71 } 74 75 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGFontFaceSrcElement.h
r229694 r267497 19 19 20 20 #pragma once 21 22 #if ENABLE(SVG_FONTS)23 21 24 22 #include "SVGElement.h" … … 43 41 44 42 } // namespace WebCore 45 46 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGFontFaceSrcElement.idl
r163440 r267497 24 24 */ 25 25 26 [ 27 Conditional=SVG_FONTS 28 ] interface SVGFontFaceSrcElement : SVGElement { 26 interface SVGFontFaceSrcElement : SVGElement { 29 27 }; 30 28 -
trunk/Source/WebCore/svg/SVGFontFaceUriElement.cpp
r246490 r267497 20 20 21 21 #include "config.h" 22 23 #if ENABLE(SVG_FONTS)24 22 #include "SVGFontFaceUriElement.h" 25 23 … … 120 118 121 119 } 122 123 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGFontFaceUriElement.h
r246490 r267497 19 19 20 20 #pragma once 21 22 #if ENABLE(SVG_FONTS)23 21 24 22 #include "CachedFontClient.h" … … 53 51 54 52 } // namespace WebCore 55 56 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGFontFaceUriElement.idl
r163440 r267497 24 24 */ 25 25 26 [ 27 Conditional=SVG_FONTS 28 ] interface SVGFontFaceUriElement : SVGElement { 26 interface SVGFontFaceUriElement : SVGElement { 29 27 }; 30 28 -
trunk/Source/WebCore/svg/SVGGlyphElement.cpp
r229694 r267497 22 22 #include "config.h" 23 23 24 #if ENABLE(SVG_FONTS)25 24 #include "SVGGlyphElement.h" 26 25 … … 47 46 48 47 } 49 50 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGGlyphElement.h
r229694 r267497 22 22 #pragma once 23 23 24 #if ENABLE(SVG_FONTS)25 26 24 #include "SVGElement.h" 27 25 … … 43 41 44 42 } // namespace WebCore 45 46 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGGlyphElement.idl
r163440 r267497 24 24 */ 25 25 26 [ 27 Conditional=SVG_FONTS 28 ] interface SVGGlyphElement : SVGElement { 26 interface SVGGlyphElement : SVGElement { 29 27 }; 30 28 -
trunk/Source/WebCore/svg/SVGGlyphRefElement.cpp
r263334 r267497 20 20 21 21 #include "config.h" 22 23 #if ENABLE(SVG_FONTS)24 22 #include "SVGGlyphRefElement.h" 25 23 … … 100 98 101 99 } 102 103 #endif -
trunk/Source/WebCore/svg/SVGGlyphRefElement.h
r246490 r267497 20 20 21 21 #pragma once 22 23 #if ENABLE(SVG_FONTS)24 22 25 23 #include "SVGElement.h" … … 61 59 62 60 } 63 64 #endif -
trunk/Source/WebCore/svg/SVGGlyphRefElement.idl
r266523 r267497 18 18 */ 19 19 20 [ 21 Conditional=SVG_FONTS 22 ] interface SVGGlyphRefElement : SVGElement { 20 interface SVGGlyphRefElement : SVGElement { 23 21 [Reflect=glyphRef] attribute DOMString glyphRef; 24 22 [Reflect] attribute DOMString format; -
trunk/Source/WebCore/svg/SVGHKernElement.cpp
r263334 r267497 21 21 22 22 #include "config.h" 23 24 #if ENABLE(SVG_FONTS)25 23 #include "SVGHKernElement.h" 26 24 … … 89 87 90 88 } 91 92 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGHKernElement.h
r263334 r267497 22 22 #pragma once 23 23 24 #if ENABLE(SVG_FONTS)25 26 24 #include "SVGFontElement.h" 27 25 … … 42 40 43 41 } // namespace WebCore 44 45 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGHKernElement.idl
r163440 r267497 18 18 */ 19 19 20 [ 21 Conditional=SVG_FONTS 22 ] interface SVGHKernElement : SVGElement { 20 interface SVGHKernElement : SVGElement { 23 21 }; 24 22 -
trunk/Source/WebCore/svg/SVGMissingGlyphElement.cpp
r229694 r267497 20 20 #include "config.h" 21 21 22 #if ENABLE(SVG_FONTS)23 22 #include "SVGMissingGlyphElement.h" 24 23 #include "SVGNames.h" … … 41 40 42 41 } 43 44 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGMissingGlyphElement.h
r229694 r267497 20 20 #pragma once 21 21 22 #if ENABLE(SVG_FONTS)23 24 22 #include "SVGElement.h" 25 23 #include "SVGNames.h" … … 39 37 40 38 } // namespace WebCore 41 42 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGMissingGlyphElement.idl
r163440 r267497 24 24 */ 25 25 26 [ 27 Conditional=SVG_FONTS 28 ] interface SVGMissingGlyphElement : SVGElement { 26 interface SVGMissingGlyphElement : SVGElement { 29 27 }; 30 28 -
trunk/Source/WebCore/svg/SVGTRefElement.cpp
r267449 r267497 205 205 if (parentNode() 206 206 && (parentNode()->hasTagName(SVGNames::aTag) 207 #if ENABLE(SVG_FONTS)208 207 || parentNode()->hasTagName(SVGNames::altGlyphTag) 209 #endif210 208 || parentNode()->hasTagName(SVGNames::textTag) 211 209 || parentNode()->hasTagName(SVGNames::textPathTag) -
trunk/Source/WebCore/svg/SVGTSpanElement.cpp
r229694 r267497 51 51 if (child.isTextNode() 52 52 || child.hasTagName(SVGNames::aTag) 53 #if ENABLE(SVG_FONTS)54 53 || child.hasTagName(SVGNames::altGlyphTag) 55 #endif56 54 || child.hasTagName(SVGNames::trefTag) 57 55 || child.hasTagName(SVGNames::tspanTag)) … … 65 63 if (parentNode() 66 64 && (parentNode()->hasTagName(SVGNames::aTag) 67 #if ENABLE(SVG_FONTS)68 65 || parentNode()->hasTagName(SVGNames::altGlyphTag) 69 #endif70 66 || parentNode()->hasTagName(SVGNames::textTag) 71 67 || parentNode()->hasTagName(SVGNames::textPathTag) -
trunk/Source/WebCore/svg/SVGTests.cpp
r246490 r267497 43 43 static NeverDestroyed<HashSet<String, ASCIICaseInsensitiveHash>> features = [] { 44 44 static const char* const features10[] = { 45 #if ENABLE(SVG_FONTS)46 45 "dom", 47 46 "dom.svg", … … 49 48 "svg", 50 49 "svg.static", 51 #endif52 50 }; 53 51 static const char* const features11[] = { … … 88 86 "viewportattribute", 89 87 "xlinkattribute", 90 #if ENABLE(SVG_FONTS)91 88 "basicfont", 92 89 "font", … … 95 92 "svgdom", 96 93 "svgdom-static", 97 #endif98 94 }; 99 95 HashSet<String, ASCIICaseInsensitiveHash> set; -
trunk/Source/WebCore/svg/SVGTextElement.cpp
r243730 r267497 77 77 if (child.isTextNode() 78 78 || child.hasTagName(SVGNames::aTag) 79 #if ENABLE(SVG_FONTS)80 79 || child.hasTagName(SVGNames::altGlyphTag) 81 #endif82 80 || child.hasTagName(SVGNames::textPathTag) 83 81 || child.hasTagName(SVGNames::trefTag) -
trunk/Source/WebCore/svg/SVGTextPositioningElement.cpp
r246490 r267497 125 125 if (!is<SVGTextElement>(element) 126 126 && !is<SVGTSpanElement>(element) 127 #if ENABLE(SVG_FONTS)128 127 && !is<SVGAltGlyphElement>(element) 129 #endif130 128 && !is<SVGTRefElement>(element)) 131 129 return nullptr; -
trunk/Source/WebCore/svg/SVGToOTFFontConversion.cpp
r263334 r267497 26 26 #include "config.h" 27 27 #include "SVGToOTFFontConversion.h" 28 29 #if ENABLE(SVG_FONTS)30 28 31 29 #include "CSSStyleDeclaration.h" … … 1576 1574 1577 1575 } 1578 1579 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGVKernElement.cpp
r263334 r267497 19 19 20 20 #include "config.h" 21 22 #if ENABLE(SVG_FONTS)23 21 #include "SVGVKernElement.h" 24 22 … … 88 86 89 87 } 90 91 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGVKernElement.h
r263334 r267497 20 20 #pragma once 21 21 22 #if ENABLE(SVG_FONTS)23 24 22 #include "SVGElement.h" 25 23 #include "SVGFontElement.h" … … 41 39 42 40 } // namespace WebCore 43 44 #endif // ENABLE(SVG_FONTS) -
trunk/Source/WebCore/svg/SVGVKernElement.idl
r163440 r267497 18 18 */ 19 19 20 [ 21 Conditional=SVG_FONTS 22 ] interface SVGVKernElement : SVGElement { 20 interface SVGVKernElement : SVGElement { 23 21 }; 24 22 -
trunk/Source/WebCore/svg/svgtags.in
r179980 r267497 5 5 6 6 a 7 #if ENABLE_SVG_FONTS8 7 altGlyph 9 8 altGlyphDef 10 9 altGlyphItem 11 #endif12 10 animate 13 11 animateColor … … 50 48 feTurbulence 51 49 filter 52 #if ENABLE_SVG_FONTS53 50 font 54 51 font_face … … 57 54 font_face_src 58 55 font_face_uri 59 #endif60 56 foreignObject 61 57 g 62 #if ENABLE_SVG_FONTS63 58 glyph 64 59 glyphRef 65 60 hkern interfaceName=SVGHKernElement 66 #endif67 61 image 68 62 line … … 71 65 mask 72 66 metadata 73 #if ENABLE_SVG_FONTS74 67 missing_glyph 75 #endif76 68 mpath interfaceName=SVGMPathElement 77 69 path … … 94 86 use 95 87 view 96 #if ENABLE_SVG_FONTS97 88 vkern interfaceName=SVGVKernElement 98 #endif -
trunk/Source/WebKit/ChangeLog
r267496 r267497 1 2020-09-23 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Remove ENABLE_SVG_FONTS macro 4 https://bugs.webkit.org/show_bug.cgi?id=216850 5 6 Reviewed by Don Olmstead. 7 8 * WebProcess/Network/WebLoaderStrategy.cpp: 9 (WebKit::maximumBufferingTime): 10 1 11 2020-09-23 Per Arne Vollan <pvollan@apple.com> 2 12 -
trunk/Source/WebKit/WebProcess/Network/WebLoaderStrategy.cpp
r267311 r267497 135 135 case CachedResource::Type::CSSStyleSheet: 136 136 case CachedResource::Type::Script: 137 #if ENABLE(SVG_FONTS)138 137 case CachedResource::Type::SVGFontResource: 139 #endif140 138 case CachedResource::Type::FontResource: 141 139 #if ENABLE(APPLICATION_MANIFEST) -
trunk/Source/cmake/OptionsFTW.cmake
r267166 r267497 100 100 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SAMPLING_PROFILER PRIVATE OFF) 101 101 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SPELLCHECK PRIVATE OFF) 102 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SVG_FONTS PRIVATE ON)103 102 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_TOUCH_EVENTS PRIVATE OFF) 104 103 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_TOUCH_SLIDER PRIVATE OFF) -
trunk/Source/cmake/OptionsMac.cmake
r267166 r267497 84 84 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SHAREABLE_RESOURCE PRIVATE ON) 85 85 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SPEECH_SYNTHESIS PRIVATE ON) 86 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SVG_FONTS PRIVATE ON)87 86 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_TELEPHONE_NUMBER_DETECTION PRIVATE ON) 88 87 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_TEXT_AUTOSIZING PRIVATE ON) -
trunk/Source/cmake/OptionsWin.cmake
r267166 r267497 54 54 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_NOTIFICATIONS PUBLIC OFF) 55 55 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_QUOTA PUBLIC OFF) 56 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SVG_FONTS PUBLIC ON)57 56 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_VIDEO PUBLIC ON) 58 57 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBASSEMBLY PRIVATE OFF) -
trunk/Source/cmake/WebKitFeatures.cmake
r267166 r267497 206 206 WEBKIT_OPTION_DEFINE(ENABLE_SPEECH_SYNTHESIS "Toggle Speech Synthesis API support" PRIVATE OFF) 207 207 WEBKIT_OPTION_DEFINE(ENABLE_SPELLCHECK "Toggle Spellchecking support (requires Enchant)" PRIVATE OFF) 208 WEBKIT_OPTION_DEFINE(ENABLE_SVG_FONTS "Toggle SVG Fonts support" PRIVATE ON)209 208 WEBKIT_OPTION_DEFINE(ENABLE_TELEPHONE_NUMBER_DETECTION "Toggle telephone number detection support" PRIVATE OFF) 210 209 WEBKIT_OPTION_DEFINE(ENABLE_TEXT_AUTOSIZING "Toggle automatic text size adjustment support" PRIVATE OFF) -
trunk/Source/cmake/tools/vsprops/FeatureDefines.props
r267166 r267497 56 56 <ENABLE_SUBPIXEL_LAYOUT>ENABLE_SUBPIXEL_LAYOUT</ENABLE_SUBPIXEL_LAYOUT> 57 57 <ENABLE_SVG_DOM_OBJC_BINDINGS /> 58 <ENABLE_SVG_FONTS>ENABLE_SVG_FONTS</ENABLE_SVG_FONTS>59 58 <ENABLE_VIDEO>ENABLE_VIDEO</ENABLE_VIDEO> 60 59 <ENABLE_WEB_AUDIO /> … … 71 70 <ItemDefinitionGroup> 72 71 <ClCompile> 73 <PreprocessorDefinitions>$(ENABLE_3D_TRANSFORMS);$(ENABLE_ACCELERATED_2D_CANVAS);$(ENABLE_OVERFLOW_SCROLLING_TOUCH);$(ENABLE_ATTACHMENT_ELEMENT);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CSS3_CONDITIONAL_RULES);$(ENABLE_CSS_IMAGE_SET);$(ENABLE_CSS3_TEXT);$(ENABLE_CSS_BOX_DECORATION_BREAK);$(ENABLE_CSS_SHADERS);$(ENABLE_CSS_COMPOSITING);$(ENABLE_CSS_SELECTORS_LEVEL4);$(ENABLE_CSS_SHAPE_INSIDE);$(ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED);$(ENABLE_CURSOR_VISIBILITY);$(ENABLE_CUSTOM_SCHEME_HANDLER);$(ENABLE_DARK_MODE_CSS);$(ENABLE_DATAGRID);$(ENABLE_DATALIST_ELEMENT);$(ENABLE_DEVICE_ORIENTATION);$(ENABLE_DIRECTORY_UPLOAD);$(ENABLE_ENCRYPTED_MEDIA);$(ENABLE_FETCH_API);$(ENABLE_FILE_SYSTEM);$(ENABLE_FULLSCREEN_API);$(ENABLE_GAMEPAD);$(ENABLE_GEOLOCATION);$(ENABLE_HIGH_DPI_CANVAS);$(ENABLE_INDEXED_DATABASE);$(ENABLE_INPUT_TYPE_COLOR);$(ENABLE_INPUT_SPEECH);$(ENABLE_INPUT_TYPE_DATE);$(ENABLE_INPUT_TYPE_DATETIMELOCAL);$(ENABLE_INPUT_TYPE_MONTH);$(ENABLE_INPUT_TYPE_TIME);$(ENABLE_INPUT_TYPE_WEEK);$(ENABLE_LEGACY_CSS_VENDOR_PREFIXES);$(ENABLE_LEGACY_ENCRYPTED_MEDIA);$(ENABLE_LINK_PRERENDER);$(ENABLE_MATHML);$(ENABLE_MICRODATA);$(ENABLE_MOUSE_CURSOR_SCALE);$(ENABLE_NOTIFICATIONS);$(ENABLE_QUOTA);$(ENABLE_SCRIPTED_SPEECH);$(ENABLE_SHARED_WORKERS);$(ENABLE_MEDIA_CONTROLS_SCRIPT);$(ENABLE_MEDIA_SOURCE);$(ENABLE_MEDIA_STATISTICS);$(ENABLE_SQL_DATABASE);$(ENABLE_STYLE_SCOPED);$(ENABLE_SUBPIXEL_LAYOUT);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_ SVG_FONTS);$(ENABLE_VIDEO);$(ENABLE_WEB_AUDIO);$(ENABLE_WEBGL);$(ENABLE_WEBGPU);$(ENABLE_WEBXR);$(ENABLE_XHR_TIMEOUT);$(ENABLE_XSLT);%(PreprocessorDefinitions)</PreprocessorDefinitions>72 <PreprocessorDefinitions>$(ENABLE_3D_TRANSFORMS);$(ENABLE_ACCELERATED_2D_CANVAS);$(ENABLE_OVERFLOW_SCROLLING_TOUCH);$(ENABLE_ATTACHMENT_ELEMENT);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CSS3_CONDITIONAL_RULES);$(ENABLE_CSS_IMAGE_SET);$(ENABLE_CSS3_TEXT);$(ENABLE_CSS_BOX_DECORATION_BREAK);$(ENABLE_CSS_SHADERS);$(ENABLE_CSS_COMPOSITING);$(ENABLE_CSS_SELECTORS_LEVEL4);$(ENABLE_CSS_SHAPE_INSIDE);$(ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED);$(ENABLE_CURSOR_VISIBILITY);$(ENABLE_CUSTOM_SCHEME_HANDLER);$(ENABLE_DARK_MODE_CSS);$(ENABLE_DATAGRID);$(ENABLE_DATALIST_ELEMENT);$(ENABLE_DEVICE_ORIENTATION);$(ENABLE_DIRECTORY_UPLOAD);$(ENABLE_ENCRYPTED_MEDIA);$(ENABLE_FETCH_API);$(ENABLE_FILE_SYSTEM);$(ENABLE_FULLSCREEN_API);$(ENABLE_GAMEPAD);$(ENABLE_GEOLOCATION);$(ENABLE_HIGH_DPI_CANVAS);$(ENABLE_INDEXED_DATABASE);$(ENABLE_INPUT_TYPE_COLOR);$(ENABLE_INPUT_SPEECH);$(ENABLE_INPUT_TYPE_DATE);$(ENABLE_INPUT_TYPE_DATETIMELOCAL);$(ENABLE_INPUT_TYPE_MONTH);$(ENABLE_INPUT_TYPE_TIME);$(ENABLE_INPUT_TYPE_WEEK);$(ENABLE_LEGACY_CSS_VENDOR_PREFIXES);$(ENABLE_LEGACY_ENCRYPTED_MEDIA);$(ENABLE_LINK_PRERENDER);$(ENABLE_MATHML);$(ENABLE_MICRODATA);$(ENABLE_MOUSE_CURSOR_SCALE);$(ENABLE_NOTIFICATIONS);$(ENABLE_QUOTA);$(ENABLE_SCRIPTED_SPEECH);$(ENABLE_SHARED_WORKERS);$(ENABLE_MEDIA_CONTROLS_SCRIPT);$(ENABLE_MEDIA_SOURCE);$(ENABLE_MEDIA_STATISTICS);$(ENABLE_SQL_DATABASE);$(ENABLE_STYLE_SCOPED);$(ENABLE_SUBPIXEL_LAYOUT);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_VIDEO);$(ENABLE_WEB_AUDIO);$(ENABLE_WEBGL);$(ENABLE_WEBGPU);$(ENABLE_WEBXR);$(ENABLE_XHR_TIMEOUT);$(ENABLE_XSLT);%(PreprocessorDefinitions)</PreprocessorDefinitions> 74 73 </ClCompile> 75 74 </ItemDefinitionGroup> … … 287 286 <EnvironmentVariable>true</EnvironmentVariable> 288 287 </BuildMacro> 289 <BuildMacro Include="ENABLE_SVG_FONTS">290 <Value>$(ENABLE_SVG_FONTS)</Value>291 <EnvironmentVariable>true</EnvironmentVariable>292 </BuildMacro>293 288 <BuildMacro Include="ENABLE_VIDEO"> 294 289 <Value>$(ENABLE_VIDEO)</Value> -
trunk/Source/cmake/tools/vsprops/FeatureDefinesCairo.props
r267166 r267497 56 56 <ENABLE_SUBPIXEL_LAYOUT>ENABLE_SUBPIXEL_LAYOUT</ENABLE_SUBPIXEL_LAYOUT> 57 57 <ENABLE_SVG_DOM_OBJC_BINDINGS /> 58 <ENABLE_SVG_FONTS>ENABLE_SVG_FONTS</ENABLE_SVG_FONTS>59 58 <ENABLE_VIDEO>ENABLE_VIDEO</ENABLE_VIDEO> 60 59 <ENABLE_WEB_AUDIO /> … … 71 70 <ItemDefinitionGroup> 72 71 <ClCompile> 73 <PreprocessorDefinitions>$(ENABLE_3D_TRANSFORMS);$(ENABLE_ACCELERATED_2D_CANVAS);$(ENABLE_OVERFLOW_SCROLLING_TOUCH);$(ENABLE_ATTACHMENT_ELEMENT);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CSS3_CONDITIONAL_RULES);$(ENABLE_CSS_IMAGE_SET);$(ENABLE_CSS3_TEXT);$(ENABLE_CSS_BOX_DECORATION_BREAK);$(ENABLE_CSS_SHADERS);$(ENABLE_CSS_COMPOSITING);$(ENABLE_CSS_SELECTORS_LEVEL4);$(ENABLE_CSS_SHAPE_INSIDE);$(ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED);$(ENABLE_CURSOR_VISIBILITY);$(ENABLE_CUSTOM_SCHEME_HANDLER);$(ENABLE_DARK_MODE_CSS);$(ENABLE_DATAGRID);$(ENABLE_DATALIST_ELEMENT);$(ENABLE_DEVICE_ORIENTATION);$(ENABLE_DIRECTORY_UPLOAD);$(ENABLE_ENCRYPTED_MEDIA);$(ENABLE_FETCH_API);$(ENABLE_FILE_SYSTEM);$(ENABLE_FULLSCREEN_API);$(ENABLE_GAMEPAD);$(ENABLE_GEOLOCATION);$(ENABLE_HIGH_DPI_CANVAS);$(ENABLE_INDEXED_DATABASE);$(ENABLE_INPUT_TYPE_COLOR);$(ENABLE_INPUT_SPEECH);$(ENABLE_INPUT_TYPE_DATE);$(ENABLE_INPUT_TYPE_DATETIMELOCAL);$(ENABLE_INPUT_TYPE_MONTH);$(ENABLE_INPUT_TYPE_TIME);$(ENABLE_INPUT_TYPE_WEEK);$(ENABLE_LEGACY_CSS_VENDOR_PREFIXES);$(ENABLE_LEGACY_ENCRYPTED_MEDIA);$(ENABLE_LINK_PRERENDER);$(ENABLE_MATHML);$(ENABLE_MICRODATA);$(ENABLE_MOUSE_CURSOR_SCALE);$(ENABLE_NOTIFICATIONS);$(ENABLE_QUOTA);$(ENABLE_SCRIPTED_SPEECH);$(ENABLE_SHARED_WORKERS);$(ENABLE_MEDIA_CONTROLS_SCRIPT);$(ENABLE_MEDIA_SOURCE);$(ENABLE_MEDIA_STATISTICS);$(ENABLE_SQL_DATABASE);$(ENABLE_STYLE_SCOPED);$(ENABLE_SUBPIXEL_LAYOUT);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_ SVG_FONTS);$(ENABLE_VIDEO);$(ENABLE_WEB_AUDIO);$(ENABLE_WEBGL);$(ENABLE_WEBXR);$(ENABLE_XHR_TIMEOUT);$(ENABLE_XSLT);%(PreprocessorDefinitions)</PreprocessorDefinitions>72 <PreprocessorDefinitions>$(ENABLE_3D_TRANSFORMS);$(ENABLE_ACCELERATED_2D_CANVAS);$(ENABLE_OVERFLOW_SCROLLING_TOUCH);$(ENABLE_ATTACHMENT_ELEMENT);$(ENABLE_CHANNEL_MESSAGING);$(ENABLE_CSS3_CONDITIONAL_RULES);$(ENABLE_CSS_IMAGE_SET);$(ENABLE_CSS3_TEXT);$(ENABLE_CSS_BOX_DECORATION_BREAK);$(ENABLE_CSS_SHADERS);$(ENABLE_CSS_COMPOSITING);$(ENABLE_CSS_SELECTORS_LEVEL4);$(ENABLE_CSS_SHAPE_INSIDE);$(ENABLE_CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED);$(ENABLE_CURSOR_VISIBILITY);$(ENABLE_CUSTOM_SCHEME_HANDLER);$(ENABLE_DARK_MODE_CSS);$(ENABLE_DATAGRID);$(ENABLE_DATALIST_ELEMENT);$(ENABLE_DEVICE_ORIENTATION);$(ENABLE_DIRECTORY_UPLOAD);$(ENABLE_ENCRYPTED_MEDIA);$(ENABLE_FETCH_API);$(ENABLE_FILE_SYSTEM);$(ENABLE_FULLSCREEN_API);$(ENABLE_GAMEPAD);$(ENABLE_GEOLOCATION);$(ENABLE_HIGH_DPI_CANVAS);$(ENABLE_INDEXED_DATABASE);$(ENABLE_INPUT_TYPE_COLOR);$(ENABLE_INPUT_SPEECH);$(ENABLE_INPUT_TYPE_DATE);$(ENABLE_INPUT_TYPE_DATETIMELOCAL);$(ENABLE_INPUT_TYPE_MONTH);$(ENABLE_INPUT_TYPE_TIME);$(ENABLE_INPUT_TYPE_WEEK);$(ENABLE_LEGACY_CSS_VENDOR_PREFIXES);$(ENABLE_LEGACY_ENCRYPTED_MEDIA);$(ENABLE_LINK_PRERENDER);$(ENABLE_MATHML);$(ENABLE_MICRODATA);$(ENABLE_MOUSE_CURSOR_SCALE);$(ENABLE_NOTIFICATIONS);$(ENABLE_QUOTA);$(ENABLE_SCRIPTED_SPEECH);$(ENABLE_SHARED_WORKERS);$(ENABLE_MEDIA_CONTROLS_SCRIPT);$(ENABLE_MEDIA_SOURCE);$(ENABLE_MEDIA_STATISTICS);$(ENABLE_SQL_DATABASE);$(ENABLE_STYLE_SCOPED);$(ENABLE_SUBPIXEL_LAYOUT);$(ENABLE_SVG_DOM_OBJC_BINDINGS);$(ENABLE_VIDEO);$(ENABLE_WEB_AUDIO);$(ENABLE_WEBGL);$(ENABLE_WEBXR);$(ENABLE_XHR_TIMEOUT);$(ENABLE_XSLT);%(PreprocessorDefinitions)</PreprocessorDefinitions> 74 73 </ClCompile> 75 74 </ItemDefinitionGroup> … … 287 286 <EnvironmentVariable>true</EnvironmentVariable> 288 287 </BuildMacro> 289 <BuildMacro Include="ENABLE_SVG_FONTS">290 <Value>$(ENABLE_SVG_FONTS)</Value>291 <EnvironmentVariable>true</EnvironmentVariable>292 </BuildMacro>293 <BuildMacro Include="ENABLE_VIDEO">294 <Value>$(ENABLE_VIDEO)</Value>295 <EnvironmentVariable>true</EnvironmentVariable>296 </BuildMacro>297 288 <BuildMacro Include="ENABLE_WEB_AUDIO"> 298 289 <Value>$(ENABLE_WEB_AUDIO)</Value> -
trunk/Tools/ChangeLog
r267493 r267497 1 2020-09-23 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Remove ENABLE_SVG_FONTS macro 4 https://bugs.webkit.org/show_bug.cgi?id=216850 5 6 Reviewed by Don Olmstead. 7 8 * Scripts/webkitperl/FeatureList.pm: 9 1 10 2020-09-23 Aakash Jain <aakash_jain@apple.com> 2 11 -
trunk/Tools/Scripts/webkitperl/FeatureList.pm
r267166 r267497 511 511 define => "ENABLE_SPELLCHECK", value => \$spellcheckSupport }, 512 512 513 { option => "svg-fonts", desc => "Toggle SVG Fonts support",514 define => "ENABLE_SVG_FONTS", value => \$svgFontsSupport },515 516 513 { option => "telephone-number-detection", desc => "Toggle telephone number detection support", 517 514 define => "ENABLE_TELEPHONE_NUMBER_DETECTION", value => \$telephoneNumberDetectionSupport },
Note:
See TracChangeset
for help on using the changeset viewer.