Changeset 236013 in webkit
- Timestamp:
- Sep 14, 2018, 11:33:44 AM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
platform/graphics/FontCache.h (modified) (1 diff)
-
platform/graphics/FontTaggedSettings.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r236011 r236013 1 2018-09-14 Frederic Wang <fwang@igalia.com> 2 3 Bug 189541 - Build error in FontDescriptionKey::computeHash when compiling FontTaggedSettings and FontCascadeFonts together 4 https://bugs.webkit.org/show_bug.cgi?id=189541 5 6 Reviewed by Alex Christensen. 7 8 FontDescriptionKey::computeHash() from In FontCache.h requires implicit instantiation of the 9 FontTaggedSettings::hash() template function. This instantiation may happen before 10 FontTaggedSettings::hash() is actually fully specialized in FontTaggedSettings.cpp. To avoid 11 compiler errors when FontCache.h and FontTaggedSettings.cpp are in the same translation unit, 12 we declare full specialization of the hash() functions in FontTaggedSettings.h. 13 14 No new tests, behavior unchanged. 15 16 * platform/graphics/FontCache.h: Explicitly include FontTaggedSettings to avoid possible future breakage. 17 * platform/graphics/FontTaggedSettings.h: Declare full specialization of FontTaggedSettings::hash(). 18 1 19 2018-09-14 Ryan Haddad <ryanhaddad@apple.com> 2 20 -
trunk/Source/WebCore/platform/graphics/FontCache.h
r233935 r236013 32 32 #include "FontDescription.h" 33 33 #include "FontPlatformData.h" 34 #include "FontTaggedSettings.h" 34 35 #include "Timer.h" 35 36 #include <array> -
trunk/Source/WebCore/platform/graphics/FontTaggedSettings.h
r220503 r236013 140 140 typedef FontTaggedSettings<int> FontFeatureSettings; 141 141 142 template <> unsigned FontFeatureSettings::hash() const; 143 142 144 #if ENABLE(VARIATION_FONTS) 143 145 144 146 typedef FontTaggedSettings<float> FontVariationSettings; 145 147 WTF::TextStream& operator<<(WTF::TextStream&, const FontVariationSettings&); 148 149 template <> unsigned FontVariationSettings::hash() const; 146 150 147 151 #else
Note:
See TracChangeset
for help on using the changeset viewer.