Changeset 125118 in webkit
- Timestamp:
- Aug 8, 2012 4:59:34 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r125111 r125118 1 2012-08-08 Thiago Marcos P. Santos <thiago.santos@intel.com> 2 3 CanvasRenderContext2D::setFont() should ignore inherited properties and default keyword value 4 https://bugs.webkit.org/show_bug.cgi?id=93491 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 Unskipped tests that are now passing after this fix and removed wrong 9 expectations. 10 11 * platform/chromium/TestExpectations: 12 * platform/chromium/canvas/philip/tests/2d.text.font.parse.invalid-expected.txt: Removed. 13 * platform/efl/Skipped: 14 * platform/gtk/TestExpectations: 15 * platform/mac/canvas/philip/tests/2d.text.font.parse.invalid-expected.txt: Removed. 16 * platform/qt/Skipped: 17 1 18 2012-08-08 Roger Fong <roger_fong@apple.com> 2 19 -
trunk/LayoutTests/platform/chromium/TestExpectations
r125106 r125118 1911 1911 BUGWK50859 : canvas/philip/tests/2d.text.font.parse.basic.html = TEXT 1912 1912 BUGWK50859 : canvas/philip/tests/2d.text.font.parse.complex.html = TEXT 1913 BUGWK50859 : canvas/philip/tests/2d.text.font.parse.invalid.html = TEXT1914 1913 BUGWK50859 : canvas/philip/tests/2d.text.font.parse.size.percentage.default.html = TEXT 1915 1914 BUGWK50859 : canvas/philip/tests/2d.text.font.parse.size.percentage.html = TEXT … … 1917 1916 BUGWK50859 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.text.font.parse.basic.html = TEXT 1918 1917 BUGWK50859 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.text.font.parse.complex.html = TEXT 1919 BUGWK50859 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.text.font.parse.invalid.html = TEXT1920 1918 BUGWK50859 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.text.font.parse.size.percentage.default.html = TEXT 1921 1919 BUGWK50859 : platform/chromium/virtual/gpu/canvas/philip/tests/2d.text.font.parse.size.percentage.html = TEXT -
trunk/LayoutTests/platform/efl/Skipped
r124900 r125118 328 328 canvas/philip/tests/2d.text.font.parse.basic.html 329 329 canvas/philip/tests/2d.text.font.parse.complex.html 330 canvas/philip/tests/2d.text.font.parse.invalid.html331 330 canvas/philip/tests/2d.text.font.parse.size.percentage.html 332 331 canvas/philip/tests/2d.text.font.parse.size.percentage.default.html -
trunk/LayoutTests/platform/gtk/TestExpectations
r125062 r125118 901 901 BUGWKGTK : canvas/philip/tests/2d.text.font.parse.basic.html = TEXT 902 902 BUGWKGTK : canvas/philip/tests/2d.text.font.parse.complex.html = TEXT 903 BUGWKGTK : canvas/philip/tests/2d.text.font.parse.invalid.html = TEXT904 903 BUGWKGTK : canvas/philip/tests/2d.text.font.parse.size.percentage.html = TEXT 905 904 BUGWKGTK : canvas/philip/tests/2d.text.font.parse.size.percentage.default.html = TEXT -
trunk/LayoutTests/platform/qt/Skipped
r124900 r125118 2116 2116 canvas/philip/tests/2d.text.font.parse.basic.html 2117 2117 canvas/philip/tests/2d.text.font.parse.complex.html 2118 canvas/philip/tests/2d.text.font.parse.invalid.html2119 2118 canvas/philip/tests/2d.text.font.parse.size.percentage.default.html 2120 2119 canvas/philip/tests/2d.text.font.parse.size.percentage.html -
trunk/Source/WebCore/ChangeLog
r125116 r125118 1 2012-08-08 Thiago Marcos P. Santos <thiago.santos@intel.com> 2 3 CanvasRenderContext2D::setFont() should ignore inherited properties and default keyword value 4 https://bugs.webkit.org/show_bug.cgi?id=93491 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 Treat "inherit" as an invalid value. Also ignore the "default" 9 keyword that was previously treated as a font family. This second 10 change was done in the property validation and will also affect the 11 CSS font parsing, but it is probably harmless since font doesn't 12 recognize the default keyword anyway. 13 14 * css/CSSParser.cpp: 15 (WebCore::CSSParser::parseFontFamily): 16 * html/canvas/CanvasRenderingContext2D.cpp: 17 (WebCore::CanvasRenderingContext2D::setFont): 18 1 19 2012-08-08 James Robinson <jamesr@chromium.org> 2 20 -
trunk/Source/WebCore/css/CSSParser.cpp
r125016 r125118 4855 4855 4856 4856 while (value) { 4857 if (value->id == CSSValueInitial || value->id == CSSValueInherit )4857 if (value->id == CSSValueInitial || value->id == CSSValueInherit || value->id == CSSValueDefault) 4858 4858 return 0; 4859 4859 CSSParserValue* nextValue = m_valueList->next(); -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp
r121987 r125118 1997 1997 return; 1998 1998 1999 RefPtr<CSSValue> fontValue = parsedStyle->getPropertyCSSValue(CSSPropertyFont); 2000 if (fontValue && fontValue->isInheritedValue()) 2001 return; 2002 1999 2003 // The parse succeeded. 2000 2004 realizeSaves();
Note: See TracChangeset
for help on using the changeset viewer.