WebKit on Windows needs a mechanism to listen for WM_SETTINGCHANGED messages
authorsfalken@apple.com <sfalken@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Feb 2010 08:36:39 +0000 (08:36 +0000)
committersfalken@apple.com <sfalken@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Feb 2010 08:36:39 +0000 (08:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=35076

Reviewed by Dan Bernstein.

WebKit/win:

* WebKit.vcproj/WebKit.def: Added WebKitSystemParameterChanged.
* WebKit.vcproj/WebKit_debug.def: Added WebKitSystemParameterChanged.
* WebKitGraphics.cpp:
(WebKitSystemParameterChanged): Call through to wkSystemFontSmoothingChanged for font smoothing changes.
* WebKitGraphics.h: Added WebKitSystemParameterChanged.

WebKitLibraries:

* win/include/WebKitSystemInterface/WebKitSystemInterface.h:
* win/lib/WebKitSystemInterface.lib: Updated to add wkSystemFontSmoothingChanged.
* win/lib/WebKitSystemInterface_debug.lib: Updated to add wkSystemFontSmoothingChanged.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@54943 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/win/ChangeLog
WebKit/win/WebKit.vcproj/WebKit.def
WebKit/win/WebKit.vcproj/WebKit_debug.def
WebKit/win/WebKitGraphics.cpp
WebKit/win/WebKitGraphics.h
WebKitLibraries/ChangeLog
WebKitLibraries/win/include/WebKitSystemInterface/WebKitSystemInterface.h
WebKitLibraries/win/lib/WebKitSystemInterface.lib
WebKitLibraries/win/lib/WebKitSystemInterface_debug.lib

index 140592e..8dd19ad 100644 (file)
@@ -1,3 +1,16 @@
+2010-02-17  Steve Falkenburg  <sfalken@apple.com>
+
+        Reviewed by Dan Bernstein.
+
+        WebKit on Windows needs a mechanism to listen for WM_SETTINGCHANGED messages
+        https://bugs.webkit.org/show_bug.cgi?id=35076
+
+        * WebKit.vcproj/WebKit.def: Added WebKitSystemParameterChanged.
+        * WebKit.vcproj/WebKit_debug.def: Added WebKitSystemParameterChanged.
+        * WebKitGraphics.cpp:
+        (WebKitSystemParameterChanged): Call through to wkSystemFontSmoothingChanged for font smoothing changes.
+        * WebKitGraphics.h: Added WebKitSystemParameterChanged.
+
 2010-02-17  Dmitry Titov  <dimich@chromium.org>
 
         Reviewed by David Levin, Darin Fisher, Simon Hausmann.
index 8d091ec..9e6e55f 100644 (file)
@@ -20,6 +20,7 @@ EXPORTS
         WebKitSetShouldUseFontSmoothing
         WebKitShouldUseFontSmoothing
         WebKitCreateInstance
+        WebKitSystemParameterChanged
                
         ; These functions are deprecated
         WebLocalizedString
index c15957a..fac9d6f 100644 (file)
@@ -20,6 +20,7 @@ EXPORTS
         WebKitSetShouldUseFontSmoothing
         WebKitShouldUseFontSmoothing
         WebKitCreateInstance
+        WebKitSystemParameterChanged
                
         ; These functions are deprecated
         WebLocalizedString
index 03fe903..444c43c 100644 (file)
@@ -175,3 +175,9 @@ bool WebKitShouldUseFontSmoothing()
 {
     return WebCoreShouldUseFontSmoothing();
 }
+
+void WebKitSystemParameterChanged(UINT parameter)
+{
+    if (parameter == SPI_SETFONTSMOOTHING || parameter == SPI_SETFONTSMOOTHINGTYPE || parameter == SPI_SETFONTSMOOTHINGCONTRAST || parameter == SPI_SETFONTSMOOTHINGORIENTATION)
+        wkSystemFontSmoothingChanged();
+}
index 59c874b..75ab36c 100644 (file)
@@ -74,6 +74,8 @@ unsigned RightTruncateStringToWidth(LPCTSTR text, int length, const WebFontDescr
 void WebKitSetShouldUseFontSmoothing(bool);
 bool WebKitShouldUseFontSmoothing();
 
+void WebKitSystemParameterChanged(UINT parameter);
+
 }
 
 #endif // !defined(WebKitGraphics_h)
index 5afa222..0bc9e66 100644 (file)
@@ -1,3 +1,14 @@
+2010-02-18  Steve Falkenburg  <sfalken@apple.com>
+
+        Reviewed by Dan Bernstein.
+
+        WebKit on Windows needs a mechanism to listen for WM_SETTINGCHANGED messages
+        https://bugs.webkit.org/show_bug.cgi?id=35076
+
+        * win/include/WebKitSystemInterface/WebKitSystemInterface.h:
+        * win/lib/WebKitSystemInterface.lib: Updated to add wkSystemFontSmoothingChanged.
+        * win/lib/WebKitSystemInterface_debug.lib: Updated to add wkSystemFontSmoothingChanged.
+
 2010-02-16  Gavin Barraclough  <barraclough@apple.com>
 
         Reviewed by NOBODY (Build fix).
index 824b44d..4534d6f 100644 (file)
@@ -48,11 +48,14 @@ typedef const struct __CFNumber* CFNumberRef;
 typedef struct __CFReadStream* CFReadStreamRef;
 typedef const struct __CFURL* CFURLRef;
 typedef struct _CFURLProtectionSpace* CFURLProtectionSpaceRef;
+typedef struct tagLOGFONTW LOGFONTW;
+typedef LOGFONTW LOGFONT;
 
 void wkSetFontSmoothingLevel(int type);
 int wkGetFontSmoothingLevel();
 void wkSetFontSmoothingContrast(CGFloat);
 CGFloat wkGetFontSmoothingContrast();
+void wkSystemFontSmoothingChanged();
 uint32_t wkSetFontSmoothingStyle(CGContextRef cg, bool fontAllowsSmoothing);
 void wkRestoreFontSmoothingStyle(CGContextRef cg, uint32_t oldStyle);
 void wkSetCGContextFontRenderingStyle(CGContextRef, bool isSystemFont, bool isPrinterFont, bool usePlatformNativeGlyphs);
index f1857e7..ddcb692 100644 (file)
Binary files a/WebKitLibraries/win/lib/WebKitSystemInterface.lib and b/WebKitLibraries/win/lib/WebKitSystemInterface.lib differ
index 9722d97..87fbbc4 100644 (file)
Binary files a/WebKitLibraries/win/lib/WebKitSystemInterface_debug.lib and b/WebKitLibraries/win/lib/WebKitSystemInterface_debug.lib differ