Changeset 178520 in webkit
- Timestamp:
- Jan 15, 2015 11:41:40 AM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r178519 r178520 1 2015-01-15 Antti Koivisto <antti@apple.com> 2 3 Try to fix windows build. 4 5 * platform/graphics/ca/win/PlatformCALayerWin.cpp: 6 * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp: 7 (PlatformCALayerWinInternal::displayCallback): 8 * platform/win/DragImageWin.cpp: 9 (WebCore::dragLabelFont): 10 (WebCore::createDragImageForLink): 11 * platform/win/PopupMenuWin.cpp: 12 (WebCore::PopupMenuWin::calculatePositionAndSize): 13 (WebCore::PopupMenuWin::paint): 14 * platform/win/WebCoreTextRenderer.cpp: 15 (WebCore::doDrawTextAtPoint): 16 (WebCore::WebCoreDrawDoubledTextAtPoint): 17 (WebCore::WebCoreTextFloatWidth): 18 (WebCore::WebCoreSetAlwaysUsesComplexTextCodePath): 19 (WebCore::WebCoreAlwaysUsesComplexTextCodePath): 20 * rendering/RenderThemeSafari.cpp: 21 (WebCore::RenderThemeSafari::setFontFromControlSize): 22 1 23 2015-01-15 Antti Koivisto <antti@apple.com> 2 24 -
trunk/Source/WebCore/platform/graphics/ca/win/PlatformCALayerWin.cpp
r178519 r178520 29 29 30 30 #include "AbstractCACFLayerTreeHost.h" 31 #include "Font .h"31 #include "FontCascade.h" 32 32 #include "GraphicsContext.h" 33 33 #include "PlatformCAAnimationWin.h" -
trunk/Source/WebCore/platform/graphics/ca/win/PlatformCALayerWinInternal.cpp
r178519 r178520 28 28 #include "PlatformCALayerWinInternal.h" 29 29 30 #include "Font .h"30 #include "FontCascade.h" 31 31 #include "GraphicsContext.h" 32 32 #include "PlatformCALayer.h" … … 160 160 desc.setComputedSize(18); 161 161 162 Font font = Font(desc, 0, 0);162 FontCascade font = FontCascade(desc, 0, 0); 163 163 font.update(0); 164 164 -
trunk/Source/WebCore/platform/win/DragImageWin.cpp
r178519 r178520 28 28 29 29 #include "FloatRoundedRect.h" 30 #include "Font .h"30 #include "FontCascade.h" 31 31 #include "FontDescription.h" 32 32 #include "FontSelector.h" … … 102 102 const float DragLinkUrlFontSize = 10; 103 103 104 static Font dragLabelFont(int size, bool bold, FontRenderingMode renderingMode)105 { 106 Font result;104 static FontCascade dragLabelFont(int size, bool bold, FontRenderingMode renderingMode) 105 { 106 FontCascade result; 107 107 NONCLIENTMETRICS metrics; 108 108 metrics.cbSize = sizeof(metrics); … … 115 115 description.setComputedSize((float)size); 116 116 description.setRenderingMode(renderingMode); 117 result = Font (description, 0, 0);117 result = FontCascade(description, 0, 0); 118 118 result.update(0); 119 119 return result; … … 124 124 // This is more or less an exact match for the Mac OS X code. 125 125 126 const Font * labelFont;127 const Font * urlFont;126 const FontCascade* labelFont; 127 const FontCascade* urlFont; 128 128 129 129 if (fontRenderingMode == AlternateRenderingMode) { -
trunk/Source/WebCore/platform/win/PopupMenuWin.cpp
r178519 r178520 336 336 continue; 337 337 338 Font itemFont = client()->menuStyle().font();338 FontCascade itemFont = client()->menuStyle().font(); 339 339 if (client()->itemIsLabel(i)) { 340 340 FontDescription d = itemFont.fontDescription(); 341 341 d.setWeight(d.bolderWeight()); 342 itemFont = Font (d, itemFont.letterSpacing(), itemFont.wordSpacing());342 itemFont = FontCascade(d, itemFont.letterSpacing(), itemFont.wordSpacing()); 343 343 itemFont.update(m_popupClient->fontSelector()); 344 344 } … … 642 642 context.setFillColor(optionTextColor, ColorSpaceDeviceRGB); 643 643 644 Font itemFont = client()->menuStyle().font();644 FontCascade itemFont = client()->menuStyle().font(); 645 645 if (client()->itemIsLabel(index)) { 646 646 FontDescription d = itemFont.fontDescription(); 647 647 d.setWeight(d.bolderWeight()); 648 itemFont = Font (d, itemFont.letterSpacing(), itemFont.wordSpacing());648 itemFont = FontCascade(d, itemFont.letterSpacing(), itemFont.wordSpacing()); 649 649 itemFont.update(m_popupClient->fontSelector()); 650 650 } -
trunk/Source/WebCore/platform/win/WebCoreTextRenderer.cpp
r178519 r178520 26 26 #include "WebCoreTextRenderer.h" 27 27 28 #include "Font .h"28 #include "FontCascade.h" 29 29 #include "FontDescription.h" 30 30 #include "GraphicsContext.h" … … 46 46 } 47 47 48 static void doDrawTextAtPoint(GraphicsContext& context, const String& text, const IntPoint& point, const Font & font, const Color& color, int underlinedIndex)48 static void doDrawTextAtPoint(GraphicsContext& context, const String& text, const IntPoint& point, const FontCascade& font, const Color& color, int underlinedIndex) 49 49 { 50 50 TextRun run(text); … … 77 77 } 78 78 79 void WebCoreDrawDoubledTextAtPoint(GraphicsContext& context, const String& text, const IntPoint& point, const Font & font, const Color& topColor, const Color& bottomColor, int underlinedIndex)79 void WebCoreDrawDoubledTextAtPoint(GraphicsContext& context, const String& text, const IntPoint& point, const FontCascade& font, const Color& topColor, const Color& bottomColor, int underlinedIndex) 80 80 { 81 81 context.save(); … … 90 90 } 91 91 92 float WebCoreTextFloatWidth(const String& text, const Font & font)92 float WebCoreTextFloatWidth(const String& text, const FontCascade& font) 93 93 { 94 94 return StringTruncator::width(text, font, StringTruncator::EnableRoundingHacks); … … 107 107 void WebCoreSetAlwaysUsesComplexTextCodePath(bool complex) 108 108 { 109 Font::setCodePath(complex ? Font ::Complex : Font::Auto);109 Font::setCodePath(complex ? FontCascade::Complex : FontCascade::Auto); 110 110 } 111 111 112 112 bool WebCoreAlwaysUsesComplexTextCodePath() 113 113 { 114 return Font::codePath() == Font ::Complex;114 return Font::codePath() == FontCascade::Complex; 115 115 } 116 116 -
trunk/Source/WebCore/rendering/RenderThemeSafari.cpp
r178519 r178520 402 402 403 403 if (style.setFontDescription(fontDescription)) 404 style.font ().update(styleResolver.fontSelector());404 style.fontCascade().update(styleResolver.fontSelector()); 405 405 } 406 406
Note: See TracChangeset
for help on using the changeset viewer.