Changeset 125450 in webkit
- Timestamp:
- Aug 13, 2012, 2:15:06 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r125448 r125450 1 2012-08-13 Thiago Marcos P. Santos <thiago.santos@intel.com> 2 3 CanvasRenderContext2D::font() does not re-serialize the font 4 https://bugs.webkit.org/show_bug.cgi?id=50859 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 Unskip tests that will now pass and remove wrong/duplicated 9 expectations. canvas-font-ex-units-crash has now the wrong 10 expectations until we fix the issue on 93840. 11 12 * fast/canvas/canvas-font-ex-units-crash-expected.txt: 13 * fast/canvas/script-tests/canvas-font-ex-units-crash.js: 14 Even though we are setting a value on this test case (and verifying), 15 the font is not being effectiviely set as the serialization reveled. This 16 is going to be fixed in another bug. 17 * platform/chromium/TestExpectations: 18 * platform/chromium/canvas/philip/tests/2d.text.font.parse.system-expected.txt: Removed. 19 * platform/efl/Skipped: 20 * platform/gtk/TestExpectations: 21 * platform/mac/canvas/philip/tests/2d.text.font.parse.system-expected.txt: Removed. 22 * platform/qt/Skipped: 23 1 24 2012-08-13 Elliott Sprehn <esprehn@chromium.org> 2 25 -
trunk/LayoutTests/fast/canvas/canvas-font-ex-units-crash-expected.txt
r68513 r125450 4 4 5 5 6 PASS ctx.font = ' 5ex sans-serif'; ctx.font is '5ex sans-serif'6 PASS ctx.font = '0px sans-serif'; ctx.font is '0px sans-serif' 7 7 PASS successfullyParsed is true 8 8 -
trunk/LayoutTests/fast/canvas/script-tests/canvas-font-ex-units-crash.js
r98407 r125450 3 3 ctx = document.createElement('canvas').getContext('2d'); 4 4 5 // Relative units doesn't work when the canvas has no parent. See bug 93840. 5 6 ctx.font = "5ex sans-serif"; 6 shouldBe("ctx.font = ' 5ex sans-serif'; ctx.font", "'5ex sans-serif'");7 shouldBe("ctx.font = '0px sans-serif'; ctx.font", "'0px sans-serif'"); -
trunk/LayoutTests/platform/chromium/TestExpectations
r125437 r125450 1897 1897 BUGWK45991 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.text.draw.space.collapse.start.html = TEXT 1898 1898 1899 BUGWK50859 : canvas/philip/tests/2d.text.font.parse.basic.html = TEXT1900 BUGWK50859 : canvas/philip/tests/2d.text.font.parse.complex.html = TEXT1901 1899 BUGWK50859 : canvas/philip/tests/2d.text.font.parse.size.percentage.default.html = TEXT 1902 1900 BUGWK50859 : canvas/philip/tests/2d.text.font.parse.size.percentage.html = TEXT 1903 BUGWK50859 : canvas/philip/tests/2d.text.font.parse.system.html = TEXT1904 BUGWK50859 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.text.font.parse.basic.html = TEXT1905 BUGWK50859 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.text.font.parse.complex.html = TEXT1906 1901 BUGWK50859 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.text.font.parse.size.percentage.default.html = TEXT 1907 1902 BUGWK50859 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.text.font.parse.size.percentage.html = TEXT 1908 BUGWK50859 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.text.font.parse.system.html = TEXT1909 1903 1910 1904 BUGWK45991 : canvas/philip/tests/2d.text.measure.width.space.html = TEXT -
trunk/LayoutTests/platform/efl/Skipped
r125432 r125450 326 326 canvas/philip/tests/2d.text.draw.space.collapse.space.html 327 327 canvas/philip/tests/2d.text.draw.space.collapse.start.html 328 canvas/philip/tests/2d.text.font.parse.basic.html329 canvas/philip/tests/2d.text.font.parse.complex.html330 328 canvas/philip/tests/2d.text.font.parse.size.percentage.html 331 329 canvas/philip/tests/2d.text.font.parse.size.percentage.default.html 332 canvas/philip/tests/2d.text.font.parse.system.html333 330 canvas/philip/tests/2d.text.measure.width.space.html 334 331 canvas/philip/tests/type.prototype.html -
trunk/LayoutTests/platform/gtk/TestExpectations
r125437 r125450 908 908 BUGWKGTK : canvas/philip/tests/2d.text.draw.space.collapse.space.html = TEXT 909 909 BUGWKGTK : canvas/philip/tests/2d.text.draw.space.collapse.start.html = TEXT 910 BUGWKGTK : canvas/philip/tests/2d.text.font.parse.basic.html = TEXT911 BUGWKGTK : canvas/philip/tests/2d.text.font.parse.complex.html = TEXT912 910 BUGWKGTK : canvas/philip/tests/2d.text.font.parse.size.percentage.html = TEXT 913 911 BUGWKGTK : canvas/philip/tests/2d.text.font.parse.size.percentage.default.html = TEXT 914 BUGWKGTK : canvas/philip/tests/2d.text.font.parse.system.html = TEXT915 912 BUGWKGTK : canvas/philip/tests/2d.text.measure.width.space.html = TEXT 916 913 BUGWKGTK : canvas/philip/tests/type.prototype.html = TEXT -
trunk/LayoutTests/platform/qt/Skipped
r125447 r125450 2112 2112 canvas/philip/tests/2d.text.draw.space.collapse.space.html 2113 2113 canvas/philip/tests/2d.text.draw.space.collapse.start.html 2114 canvas/philip/tests/2d.text.font.parse.basic.html2115 canvas/philip/tests/2d.text.font.parse.complex.html2116 2114 canvas/philip/tests/2d.text.font.parse.size.percentage.default.html 2117 2115 canvas/philip/tests/2d.text.font.parse.size.percentage.html 2118 canvas/philip/tests/2d.text.font.parse.system.html2119 2116 canvas/philip/tests/2d.text.measure.width.space.html 2120 2117 canvas/philip/tests/2d.transformation.setTransform.skewed.html -
trunk/Source/WebCore/ChangeLog
r125448 r125450 1 2012-08-13 Thiago Marcos P. Santos <thiago.santos@intel.com> 2 3 CanvasRenderContext2D::font() does not re-serialize the font 4 https://bugs.webkit.org/show_bug.cgi?id=50859 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 Added proper serialization for the font property. 9 10 No new tests, unskipped the existing ones. 11 12 * html/canvas/CanvasRenderingContext2D.cpp: 13 (WebCore::CanvasRenderingContext2D::font): 14 1 15 2012-08-13 Elliott Sprehn <esprehn@chromium.org> 2 16 -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp
r125118 r125450 6 6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 7 7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 8 * Copyright (C) 2012 Intel Corporation. All rights reserved. 8 9 * 9 10 * Redistribution and use in source and binary forms, with or without … … 1987 1988 String CanvasRenderingContext2D::font() const 1988 1989 { 1989 return state().m_unparsedFont; 1990 if (!state().m_realizedFont) 1991 return defaultFont; 1992 1993 String serializedFont; 1994 const FontDescription& fontDescription = state().m_font.fontDescription(); 1995 1996 if (fontDescription.italic()) 1997 serializedFont += "italic "; 1998 if (fontDescription.smallCaps() == FontSmallCapsOn) 1999 serializedFont += "small-caps "; 2000 2001 serializedFont += String::number(fontDescription.computedPixelSize()) + "px"; 2002 2003 const FontFamily& firstFontFamily = fontDescription.family(); 2004 for (const FontFamily* fontFamily = &firstFontFamily; fontFamily; fontFamily = fontFamily->next()) { 2005 if (fontFamily != &firstFontFamily) 2006 serializedFont += ","; 2007 2008 String family = fontFamily->family(); 2009 if (family.startsWith("-webkit-")) 2010 family = family.substring(8); 2011 if (family.contains(' ')) 2012 family = makeString('"', family, '"'); 2013 2014 serializedFont += " " + family; 2015 } 2016 2017 return serializedFont; 1990 2018 } 1991 2019
Note:
See TracChangeset
for help on using the changeset viewer.