Changeset 117259 in webkit
- Timestamp:
- May 16, 2012 4:29:14 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r117258 r117259 1 2012-05-15 Pierre Rossi <pierre.rossi@gmail.com> 2 3 [Qt] Enable SVG Fonts by default 4 https://bugs.webkit.org/show_bug.cgi?id=86463 5 6 Reviewed by Nikolas Zimmermann. 7 8 * platform/qt-4.8/Skipped: Skipped the relevant tests... 9 * platform/qt/Skipped: ... and unskipped them here. 10 1 11 2012-05-16 Christophe Dumez <christophe.dumez@intel.com> 2 12 -
trunk/LayoutTests/platform/qt-4.8/Skipped
r117081 r117259 82 82 fullscreen 83 83 plugins/fullscreen-plugins-dont-reload.html 84 85 # Fail until SUBPIXEL_LAYOUT is enabled 86 # https://bugs.webkit.org/show_bug.cgi?id=85532 87 fast/sub-pixel/client-width-height-snapping.html 88 fast/sub-pixel/layout-boxes-with-zoom.html 89 fast/sub-pixel/size-of-box-with-zoom.html 90 91 # SVG Fonts are only supported when using QRawFont, which is not 92 # supported with Qt 4. 93 94 svg/W3C-SVG-1.1/animate-elem-03-t.svg 95 svg/W3C-SVG-1.1/animate-elem-24-t.svg 96 svg/W3C-SVG-1.1/animate-elem-36-t.svg 97 svg/W3C-SVG-1.1/animate-elem-40-t.svg 98 svg/W3C-SVG-1.1/fonts-elem-01-t.svg 99 svg/W3C-SVG-1.1/fonts-elem-02-t.svg 100 svg/W3C-SVG-1.1/fonts-elem-03-b.svg 101 svg/W3C-SVG-1.1/fonts-elem-04-b.svg 102 svg/W3C-SVG-1.1/fonts-elem-05-t.svg 103 svg/W3C-SVG-1.1/fonts-elem-06-t.svg 104 svg/W3C-SVG-1.1/fonts-elem-07-b.svg 105 svg/W3C-SVG-1.1/fonts-glyph-02-t.svg 106 svg/W3C-SVG-1.1/fonts-glyph-03-t.svg 107 svg/W3C-SVG-1.1/fonts-kern-01-t.svg 108 svg/W3C-SVG-1.1/masking-mask-01-b.svg 109 svg/W3C-SVG-1.1/pservers-grad-08-b.svg 110 svg/W3C-SVG-1.1/struct-cond-03-t.svg 111 svg/W3C-SVG-1.1/struct-image-02-b.svg 112 svg/W3C-SVG-1.1/text-align-08-b.svg 113 svg/W3C-SVG-1.1/text-altglyph-01-b.svg 114 svg/W3C-SVG-1.1/text-fonts-03-t.svg 115 svg/W3C-SVG-1.1/text-intro-01-t.svg 116 svg/W3C-SVG-1.1/text-intro-02-b.svg 117 svg/W3C-SVG-1.1/text-intro-03-b.svg 118 svg/W3C-SVG-1.1/text-intro-04-t.svg 119 svg/W3C-SVG-1.1/text-text-04-t.svg 120 svg/W3C-SVG-1.1/text-text-05-t.svg 121 svg/W3C-SVG-1.1/text-text-06-t.svg 122 svg/custom/acid3-test-77.html 123 svg/custom/altglyph.svg 124 svg/custom/font-face-simple.svg 125 svg/custom/global-constructors.html 126 svg/custom/glyph-selection-lang-attribute.svg 127 svg/custom/glyph-setting-d-attribute.svg 128 svg/custom/insertItemBefore-from-non-list-origin.svg 129 svg/custom/svg-fonts-in-text-controls.html 130 svg/custom/svg-fonts-with-no-element-reference.html 131 svg/custom/svg-fonts-without-missing-glyph.xhtml 132 svg/custom/svg-fonts-word-spacing.html 133 svg/dom/altGlyph-dom.xhtml 134 svg/dom/baseVal-animVal-crash.html 135 svg/dom/font-face-elements.html 136 svg/text/kerning.svg 137 svg/text/multichar-glyph.svg 138 svg/text/text-altglyph-01-b.svg 139 svg/text/text-fonts-01-t.svg 140 svg/text/text-hkern-on-vertical-text.svg 141 svg/text/text-hkern.svg 142 svg/text/text-text-04-t.svg 143 svg/text/text-text-05-t.svg 144 svg/text/text-text-06-t.svg 145 svg/text/text-vkern-on-horizontal-text.svg 146 svg/text/text-vkern.svg 147 http/tests/misc/SVGFont-delayed-load.html -
trunk/LayoutTests/platform/qt/Skipped
r117249 r117259 1234 1234 svg/custom/visibility-override-filter.svg 1235 1235 svg/custom/stroke-width-click.svg 1236 svg/text/text-fonts-01-t.svg1237 1236 svg/text/text-intro-05-t.svg 1238 1237 svg/text/text-tselect-02-f.svg … … 1310 1309 svg/text/text-intro-05-t.svg 1311 1310 svg/text/text-tselect-02-f.svg 1312 1313 # Integrate SVG Fonts within GlyphPage concept, removing the special SVG code paths1314 # from Font, making it possible to reuse the simple text code path for SVG Fonts1315 # https://bugs.webkit.org/show_bug.cgi?id=590851316 # Failing tests after http://trac.webkit.org/changeset/892331317 # They will pass again when QRawFont is enabled by default.1318 svg/W3C-SVG-1.1/animate-elem-03-t.svg1319 svg/W3C-SVG-1.1/animate-elem-24-t.svg1320 svg/W3C-SVG-1.1/animate-elem-36-t.svg1321 svg/W3C-SVG-1.1/animate-elem-40-t.svg1322 svg/W3C-SVG-1.1/fonts-elem-01-t.svg1323 svg/W3C-SVG-1.1/fonts-elem-02-t.svg1324 svg/W3C-SVG-1.1/fonts-elem-03-b.svg1325 svg/W3C-SVG-1.1/fonts-elem-04-b.svg1326 svg/W3C-SVG-1.1/fonts-elem-05-t.svg1327 svg/W3C-SVG-1.1/fonts-elem-06-t.svg1328 svg/W3C-SVG-1.1/fonts-elem-07-b.svg1329 svg/W3C-SVG-1.1/fonts-glyph-02-t.svg1330 svg/W3C-SVG-1.1/fonts-glyph-03-t.svg1331 svg/W3C-SVG-1.1/fonts-kern-01-t.svg1332 svg/W3C-SVG-1.1/masking-mask-01-b.svg1333 svg/W3C-SVG-1.1/pservers-grad-08-b.svg1334 svg/W3C-SVG-1.1/struct-cond-03-t.svg1335 svg/W3C-SVG-1.1/struct-image-02-b.svg1336 svg/W3C-SVG-1.1/text-align-08-b.svg1337 svg/W3C-SVG-1.1/text-altglyph-01-b.svg1338 svg/W3C-SVG-1.1/text-fonts-03-t.svg1339 svg/W3C-SVG-1.1/text-intro-01-t.svg1340 svg/W3C-SVG-1.1/text-intro-02-b.svg1341 svg/W3C-SVG-1.1/text-intro-03-b.svg1342 svg/W3C-SVG-1.1/text-intro-04-t.svg1343 svg/W3C-SVG-1.1/text-text-04-t.svg1344 svg/W3C-SVG-1.1/text-text-05-t.svg1345 svg/W3C-SVG-1.1/text-text-06-t.svg1346 svg/custom/acid3-test-77.html1347 svg/custom/altglyph.svg1348 svg/custom/font-face-simple.svg1349 svg/custom/global-constructors.html1350 svg/custom/glyph-selection-lang-attribute.svg1351 svg/custom/glyph-setting-d-attribute.svg1352 svg/custom/insertItemBefore-from-non-list-origin.svg1353 svg/custom/svg-fonts-in-text-controls.html1354 svg/custom/svg-fonts-with-no-element-reference.html1355 svg/custom/svg-fonts-without-missing-glyph.xhtml1356 svg/dom/altGlyph-dom.xhtml1357 svg/dom/baseVal-animVal-crash.html1358 svg/dom/font-face-elements.html1359 svg/text/kerning.svg1360 svg/text/multichar-glyph.svg1361 svg/text/text-altglyph-01-b.svg1362 svg/text/text-hkern-on-vertical-text.svg1363 svg/text/text-hkern.svg1364 svg/text/text-text-04-t.svg1365 svg/text/text-text-05-t.svg1366 svg/text/text-text-06-t.svg1367 svg/text/text-vkern-on-horizontal-text.svg1368 svg/text/text-vkern.svg1369 http/tests/misc/SVGFont-delayed-load.html1370 1311 1371 1312 # [Qt] svg/animations/animate-path-nested-transforms.html fails … … 2151 2092 fast/text/midword-break-before-surrogate-pair.html 2152 2093 svg/custom/svg-fonts-fallback.xhtml 2153 svg/custom/svg-fonts-word-spacing.html2154 2094 2155 2095 # new tests, they needs investigation -
trunk/Source/WebCore/ChangeLog
r117257 r117259 1 2012-05-15 Pierre Rossi <pierre.rossi@gmail.com> 2 3 [Qt] Enable SVG Fonts by default 4 https://bugs.webkit.org/show_bug.cgi?id=86463 5 6 Reviewed by Nikolas Zimmermann. 7 8 Another feature we can get for free after switching to using 9 the font fast path with QRawFont. 10 It will get disabled in features.prf if either SVG support is 11 disabled or if we are not using QRawFont (e.g. for Qt 4). 12 13 Covered by a series of tests that were skipped for the 14 Qt port up until now. 15 16 * platform/graphics/qt/FontPlatformData.h: 17 (WebCore::FontPlatformDataPrivate::FontPlatformDataPrivate): 18 Initialize the platform data used as fallback in conjunction with SVG 19 fonts so it will honor size, weight and oblique-ness. 20 * rendering/svg/SVGTextMetricsBuilder.cpp: Avoid forcing the complex path. 21 (WebCore::SVGTextMetricsBuilder::advance): 22 (WebCore::SVGTextMetricsBuilder::advanceSimpleText): 23 (WebCore::SVGTextMetricsBuilder::initializeMeasurementWithTextRenderer): 24 * svg/SVGFontElement.cpp: 25 (WebCore::SVGFontElement::ensureGlyphCache): avoid ambiguity with String(const QString&) 26 1 27 2012-05-16 Kenichi Ishibashi <bashi@chromium.org> 2 28 -
trunk/Source/WebCore/platform/graphics/qt/FontPlatformData.h
r113968 r117259 56 56 , oblique(oblique) 57 57 , isDeletedValue(false) 58 { } 58 { 59 // This is necessary for SVG Fonts, which are only supported when using QRawFont. 60 // It is used to construct the appropriate platform data to use as a fallback. 61 #if HAVE(QRAWFONT) 62 QFont font; 63 font.setBold(bold); 64 font.setItalic(oblique); 65 rawFont = QRawFont::fromFont(font, QFontDatabase::Any); 66 rawFont.setPixelSize(size); 67 #endif 68 } 59 69 #if !HAVE(QRAWFONT) 60 70 FontPlatformDataPrivate(const QFont& font) -
trunk/Source/WebCore/rendering/svg/SVGTextMetricsBuilder.cpp
r105143 r117259 49 49 return false; 50 50 51 #if PLATFORM(QT) 51 #if PLATFORM(QT) && !HAVE(QRAWFONT) 52 52 advanceComplexText(); 53 53 #else … … 63 63 void SVGTextMetricsBuilder::advanceSimpleText() 64 64 { 65 #if PLATFORM(QT) 65 #if PLATFORM(QT) && !HAVE(QRAWFONT) 66 66 ASSERT_NOT_REACHED(); 67 67 #else … … 116 116 m_isComplexText = scaledFont.codePath(m_run) == Font::Complex; 117 117 118 #if !PLATFORM(QT) 118 #if !PLATFORM(QT) || HAVE(QRAWFONT) 119 119 if (m_isComplexText) 120 120 m_simpleWidthIterator.clear(); -
trunk/Source/WebCore/svg/SVGFontElement.cpp
r90680 r117259 135 135 // Register ligatures, if needed, don't mix up with surrogate pairs though! 136 136 if (unicode.length() > 1 && !U16_IS_SURROGATE(unicode[0])) 137 ligatures.append(unicode );137 ligatures.append(unicode.string()); 138 138 } else if (child->hasTagName(SVGNames::hkernTag)) { 139 139 SVGHKernElement* hkern = static_cast<SVGHKernElement*>(child); -
trunk/Tools/ChangeLog
r117258 r117259 1 2012-05-15 Pierre Rossi <pierre.rossi@gmail.com> 2 3 [Qt] Enable SVG Fonts by default 4 https://bugs.webkit.org/show_bug.cgi?id=86463 5 6 Reviewed by Nikolas Zimmermann. 7 8 * qmake/mkspecs/features/features.pri: 9 1 10 2012-05-16 Christophe Dumez <christophe.dumez@intel.com> 2 11 -
trunk/Tools/qmake/mkspecs/features/features.pri
r117028 r117259 86 86 ENABLE_SVG=1 \ 87 87 ENABLE_SVG_DOM_OBJC_BINDINGS=0 \ 88 ENABLE_SVG_FONTS= 0\88 ENABLE_SVG_FONTS=1 \ 89 89 ENABLE_TEXT_NOTIFICATIONS_ONLY=0 \ 90 90 ENABLE_TOUCH_ADJUSTMENT=1 \
Note: See TracChangeset
for help on using the changeset viewer.