Title: [221599] trunk/Source/WebCore
Revision
221599
Author
[email protected]
Date
2017-09-04 18:13:10 -0700 (Mon, 04 Sep 2017)

Log Message

Unreviewed, fixing unused constant for initial buffer size
https://bugs.webkit.org/show_bug.cgi?id=176310

Follow-up patch after r221583. Pointed by darin@.

* platform/graphics/win/FontPlatformDataWin.cpp:
(WebCore::FontPlatformData::FontPlatformData):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (221598 => 221599)


--- trunk/Source/WebCore/ChangeLog	2017-09-05 00:23:03 UTC (rev 221598)
+++ trunk/Source/WebCore/ChangeLog	2017-09-05 01:13:10 UTC (rev 221599)
@@ -1,3 +1,13 @@
+2017-09-04  Yusuke Suzuki  <[email protected]>
+
+        Unreviewed, fixing unused constant for initial buffer size
+        https://bugs.webkit.org/show_bug.cgi?id=176310
+
+        Follow-up patch after r221583. Pointed by darin@.
+
+        * platform/graphics/win/FontPlatformDataWin.cpp:
+        (WebCore::FontPlatformData::FontPlatformData):
+
 2017-09-04  Sam Weinig  <[email protected]>
 
         [Canvas] Split CanvasRenderingContext2D.idl into separate IDLs to match current HTML spec

Modified: trunk/Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp (221598 => 221599)


--- trunk/Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp	2017-09-05 00:23:03 UTC (rev 221598)
+++ trunk/Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp	2017-09-05 01:13:10 UTC (rev 221599)
@@ -58,7 +58,7 @@
 
     if (bufferSize) {
         static const constexpr unsigned InitialBufferSize { 256 };
-        Vector<char, 256> buffer(bufferSize);
+        Vector<char, InitialBufferSize> buffer(bufferSize);
         auto* metrics = reinterpret_cast<OUTLINETEXTMETRICW*>(buffer.data());
 
         GetOutlineTextMetricsW(hdc, bufferSize, metrics);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to