Title: [96847] trunk/Source/WebCore
Revision
96847
Author
commit-qu...@webkit.org
Date
2011-10-06 12:27:36 -0700 (Thu, 06 Oct 2011)

Log Message

Ensure font loaded before calling Skia to drawPosText in Chrome sandbox
https://bugs.webkit.org/show_bug.cgi?id=69370

Patch by Arthur Hsu <arthur...@chromium.org> on 2011-10-06
Reviewed by James Robinson.

* platform/graphics/chromium/FontChromiumWin.cpp:
(WebCore::Font::drawGlyphs):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (96846 => 96847)


--- trunk/Source/WebCore/ChangeLog	2011-10-06 19:20:45 UTC (rev 96846)
+++ trunk/Source/WebCore/ChangeLog	2011-10-06 19:27:36 UTC (rev 96847)
@@ -1,3 +1,13 @@
+2011-10-06  Arthur Hsu  <arthur...@chromium.org>
+
+        Ensure font loaded before calling Skia to drawPosText in Chrome sandbox
+        https://bugs.webkit.org/show_bug.cgi?id=69370
+
+        Reviewed by James Robinson.
+
+        * platform/graphics/chromium/FontChromiumWin.cpp:
+        (WebCore::Font::drawGlyphs):
+
 2011-10-06  Chris Rogers  <crog...@google.com>
 
         BiquadFilterNode must not reset filter state if type attribute is set to the same type

Modified: trunk/Source/WebCore/platform/graphics/chromium/FontChromiumWin.cpp (96846 => 96847)


--- trunk/Source/WebCore/platform/graphics/chromium/FontChromiumWin.cpp	2011-10-06 19:20:45 UTC (rev 96846)
+++ trunk/Source/WebCore/platform/graphics/chromium/FontChromiumWin.cpp	2011-10-06 19:27:36 UTC (rev 96847)
@@ -69,6 +69,7 @@
         return;
 
     HFONT hfont = font->platformData().hfont();
+    PlatformSupport::ensureFontLoaded(hfont);
 
     // We draw the glyphs in chunks to avoid having to do a heap allocation for
     // the arrays of characters and advances.
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to