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: http://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 140592e70cb67d9daab93b6139e471632b792df3..8dd19ad5c41de8133098bb2b796b5f2101b6d35b 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 8d091ecf5db07e45db4e482036ed6ad420a78b12..9e6e55f588e29b23ef2a1e5152675a39373770a3 100644 (file)
@@ -20,6 +20,7 @@ EXPORTS
         WebKitSetShouldUseFontSmoothing
         WebKitShouldUseFontSmoothing
         WebKitCreateInstance
+        WebKitSystemParameterChanged
                
         ; These functions are deprecated
         WebLocalizedString
index c15957a50a0e3be289cfb0271e7164516400299e..fac9d6f001e16f10791134fb4c6cd87595563672 100644 (file)
@@ -20,6 +20,7 @@ EXPORTS
         WebKitSetShouldUseFontSmoothing
         WebKitShouldUseFontSmoothing
         WebKitCreateInstance
+        WebKitSystemParameterChanged
                
         ; These functions are deprecated
         WebLocalizedString
index 03fe9033527f4ff4f1091c7c60c945c9bb6e6ef6..444c43c126e0bbad4c58632c574fc82bb97eef1c 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 59c874b54c1874b223535072870baaa0151cb9ea..75ab36c0029c3d08179add7232ae533f57854315 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 5afa2227a977b70558b9e1bce5b27cfbd8a8ab6b..0bc9e66b60a033e58b5dbb70437c6ddbcc028a88 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 824b44d3dcaa429181089c60199247206f9135ad..4534d6f9f6ead1908d18778b557f978d22d4602f 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 f1857e7ac92e45a17659d9121c62eb72d5014550..ddcb6929686c2b78e5a31787c9730978a14e0150 100644 (file)
Binary files a/WebKitLibraries/win/lib/WebKitSystemInterface.lib and b/WebKitLibraries/win/lib/WebKitSystemInterface.lib differ
index 9722d972574d1078c2467455eb8e76d83c1b4b88..87fbbc4bb3e88bdbbdc4dd9c00ed0288895aff06 100644 (file)
Binary files a/WebKitLibraries/win/lib/WebKitSystemInterface_debug.lib and b/WebKitLibraries/win/lib/WebKitSystemInterface_debug.lib differ