Changeset 57404 in webkit
- Timestamp:
- Apr 9, 2010 8:09:58 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57394 r57404 1 2010-04-09 Kevin Watters <kevinwatters@gmail.com> 2 3 Reviewed by Eric Seidel. 4 5 [wx] Basic implementation of SVG support for wx port. 6 7 * css/CSSFontFaceSource.cpp: 8 * platform/graphics/wx/FontPlatformData.h: 9 (WebCore::FontPlatformData::FontPlatformData): 10 (WebCore::FontPlatformData::size): 11 * platform/graphics/wx/FontPlatformDataWx.cpp: 12 (WebCore::FontPlatformData::FontPlatformData): 13 * platform/graphics/wx/GraphicsContextWx.cpp: 14 (WebCore::GraphicsContext::GraphicsContext): 15 (WebCore::GraphicsContext::clipPath): 16 (WebCore::GraphicsContext::getCTM): 17 (WebCore::GraphicsContext::beginPath): 18 (WebCore::GraphicsContext::addPath): 19 (WebCore::GraphicsContext::concatCTM): 20 (WebCore::GraphicsContext::fillPath): 21 (WebCore::GraphicsContext::strokePath): 22 (WebCore::GraphicsContext::setLineDash): 23 * platform/graphics/wx/ImageBufferWx.cpp: 24 (WebCore::ImageBuffer::platformTransformColorSpace): 25 * platform/graphics/wx/PathWx.cpp: 26 (WebCore::Path::strokeContains): 27 (WebCore::Path::debugString): 28 (WebCore::Path::operator=): 29 (WebCore::Path::isEmpty): 30 * rendering/RenderSVGResourceMasker.cpp: 31 * wscript: 32 1 33 2010-04-09 Evan Martin <evan@chromium.org> 2 34 -
trunk/WebCore/css/CSSFontFaceSource.cpp
r54601 r57404 37 37 38 38 #if ENABLE(SVG_FONTS) 39 #if !PLATFORM(WX) 39 40 #include "FontCustomPlatformData.h" 41 #endif 40 42 #include "HTMLNames.h" 41 43 #include "SVGFontData.h" -
trunk/WebCore/platform/graphics/wx/FontPlatformData.h
r56825 r57404 66 66 FontPlatformData(WTF::HashTableDeletedValueType) 67 67 : m_fontState(DELETED), 68 m_font(0) 68 m_font(0), 69 m_size(0) 69 70 { } 70 71 … … 72 73 73 74 FontPlatformData(const FontDescription&, const AtomicString&); 75 74 76 FontPlatformData(float size, bool bold, bool italic) 75 77 : m_fontState(UNINITIALIZED) 76 78 , m_font(0) 79 , m_size(size) 77 80 { 78 81 } … … 81 84 : m_fontState(UNINITIALIZED) 82 85 , m_font(0) 86 , m_size(0) 83 87 { 84 88 } … … 100 104 101 105 unsigned computeHash() const; 106 107 float size() const { return m_size; } 102 108 103 109 bool operator==(const FontPlatformData& other) const … … 128 134 WTF::RefPtr<FontHolder> m_font; 129 135 FontState m_fontState; 136 float m_size; 130 137 }; 131 138 -
trunk/WebCore/platform/graphics/wx/FontPlatformDataWx.cpp
r54633 r57404 101 101 #endif 102 102 m_fontState = VALID; 103 m_size = desc.computedPixelSize(); 103 104 104 105 } -
trunk/WebCore/platform/graphics/wx/GraphicsContextWx.cpp
r54503 r57404 92 92 #if USE(WXGC) 93 93 wxGCDC* context; 94 wxGraphicsPath currentPath; 94 95 #else 95 96 wxWindowDC* context; … … 125 126 #if USE(WXGC) 126 127 m_data->context = (wxGCDC*)context; 128 wxGraphicsContext* gc = m_data->context->GetGraphicsContext(); 129 if (gc) 130 m_data->currentPath = gc->CreatePath(); 127 131 #else 128 132 m_data->context = (wxWindowDC*)context; … … 324 328 } 325 329 330 void GraphicsContext::clipPath(WindRule) 331 { 332 notImplemented(); 333 } 334 326 335 void GraphicsContext::drawLineForText(const IntPoint& origin, int width, bool printing) 327 336 { … … 362 371 AffineTransform GraphicsContext::getCTM() const 363 372 { 364 notImplemented(); 373 #if USE(WXGC) 374 wxGraphicsContext* gc = m_data->context->GetGraphicsContext(); 375 if (gc) { 376 wxGraphicsMatrix matrix = gc->GetTransform(); 377 double a, b, c, d, e, f; 378 matrix.Get(&a, &b, &c, &d, &e, &f); 379 return AffineTransform(a, b, c, d, e, f); 380 } 381 #endif 365 382 return AffineTransform(); 366 383 } … … 436 453 void GraphicsContext::beginPath() 437 454 { 438 notImplemented(); 455 #if USE(WXGC) 456 wxGraphicsContext* gc = m_data->context->GetGraphicsContext(); 457 if (gc) 458 m_data->currentPath = gc->CreatePath(); 459 #endif 439 460 } 440 461 441 462 void GraphicsContext::addPath(const Path& path) 442 463 { 443 notImplemented(); 464 #if USE(WXGC) 465 if (path.platformPath()) 466 m_data->currentPath.AddPath(*path.platformPath()); 467 #endif 444 468 } 445 469 … … 477 501 return; 478 502 479 notImplemented(); 503 #if USE(WXGC) 504 wxGraphicsContext* gc = m_data->context->GetGraphicsContext(); 505 if (gc) 506 gc->ConcatTransform(transform); 507 #endif 480 508 return; 481 509 } … … 499 527 void GraphicsContext::fillPath() 500 528 { 529 #if USE(WXGC) 530 wxGraphicsContext* gc = m_data->context->GetGraphicsContext(); 531 if (gc) 532 gc->FillPath(m_data->currentPath); 533 #endif 501 534 } 502 535 503 536 void GraphicsContext::strokePath() 504 537 { 538 #if USE(WXGC) 539 wxGraphicsContext* gc = m_data->context->GetGraphicsContext(); 540 if (gc) 541 gc->StrokePath(m_data->currentPath); 542 #endif 505 543 } 506 544 … … 550 588 { 551 589 notImplemented(); 590 } 591 592 void GraphicsContext::setLineDash(const DashArray&, float dashOffset) 593 { 594 notImplemented(); 552 595 } 553 596 -
trunk/WebCore/platform/graphics/wx/ImageBufferWx.cpp
r47099 r57404 88 88 } 89 89 90 void ImageBuffer::platformTransformColorSpace(const Vector<int>&) 91 { 92 notImplemented(); 93 } 94 90 95 } // namespace WebCore -
trunk/WebCore/platform/graphics/wx/PathWx.cpp
r54503 r57404 31 31 #include "FloatRect.h" 32 32 #include "NotImplemented.h" 33 #include "PlatformString.h" 33 34 #include "StrokeStyleApplier.h" 34 35 … … 111 112 } 112 113 113 Path& Path::operator=(const Path&) 114 { 115 notImplemented(); 116 return*this; 114 bool Path::strokeContains(StrokeStyleApplier*, const FloatPoint&) const 115 { 116 notImplemented(); 117 return false; 118 } 119 120 String Path::debugString() const 121 { 122 notImplemented(); 123 return String(); 124 } 125 126 Path& Path::operator=(const Path& path) 127 { 128 *m_path = *path.platformPath(); 129 return *this; 117 130 } 118 131 … … 220 233 #if USE(WXGC) 221 234 if (m_path) { 222 wxDouble width, height;223 m_path->GetBox( NULL, NULL, &width, &height);235 wxDouble x, y, width, height; 236 m_path->GetBox(&x, &y, &width, &height); 224 237 return (width == 0 && height == 0); 225 238 } -
trunk/WebCore/rendering/RenderSVGResourceMasker.cpp
r55033 r57404 32 32 #include "ImageData.h" 33 33 #include "IntRect.h" 34 #include "RenderSVGResource.h" 34 35 #include "SVGElement.h" 35 36 #include "SVGMaskElement.h" -
trunk/WebCore/wscript
r56309 r57404 116 116 features = [build_port] 117 117 exclude_patterns = ['*AllInOne.cpp', '*Brew.cpp', '*CFNet.cpp', '*Chromium*.cpp', 118 '*Gtk.cpp', '*Mac.cpp', '*None.cpp', '*Qt.cpp', '*Safari.cpp', '*SVG*.cpp',118 '*Gtk.cpp', '*Mac.cpp', '*None.cpp', '*Qt.cpp', '*Safari.cpp', 119 119 'test*bindings.*', '*Wince.cpp'] 120 120 if build_port == 'wx': … … 181 181 excludes.append('JSDOMStringList.cpp') 182 182 excludes.append('JSInspectorController.cpp') 183 184 # The bindings generator seems to think these are ref-counted, while they aren't in trunk. 185 excludes.append('JSElementTimeControl.cpp') 186 excludes.append('JSSVGAnimatedPathData.cpp') 187 excludes.append('JSSVGAnimatedPoints.cpp') 188 excludes.append('JSSVGExternalResourcesRequired.cpp') 189 excludes.append('JSSVGFilterPrimitiveStandardAttributes.cpp') 190 excludes.append('JSSVGLocatable.cpp') 191 excludes.append('JSSVGStyleTable.cpp') 192 excludes.append('JSSVGTests.cpp') 193 excludes.append('JSSVGStylable.cpp') 194 excludes.append('JSSVGZoomAndPan.cpp') 195 196 # These are files that expect methods not in the base C++ class, usually XYZAnimated methods. 197 excludes.append('JSSVGFitToViewBox.cpp') 198 excludes.append('JSSVGLangSpace.cpp') 199 excludes.append('JSSVGTransformable.cpp') 200 excludes.append('JSSVGURIReference.cpp') 201 183 202 if building_on_win32: 184 203 excludes.append('SharedTimerWx.cpp') -
trunk/WebKitTools/ChangeLog
r57399 r57404 1 2010-04-09 Kevin Watters <kevinwatters@gmail.com> 2 3 Reviewed by Eric Seidel. 4 5 [wx] Basic implementation of SVG support for wx port. 6 7 * wx/build/settings.py: 8 1 9 2010-04-09 Adam Barth <abarth@webkit.org> 2 10 -
trunk/WebKitTools/wx/build/settings.py
r56927 r57404 122 122 'platform', 123 123 'platform/animation', 124 'platform/graphics', 124 'platform/graphics', 125 'platform/graphics/filters', 125 126 'platform/graphics/transforms', 126 127 'platform/image-decoders', … … 137 138 'rendering', 138 139 'rendering/style', 139 'storage', 140 'storage', 141 'svg', 142 'svg/animation', 143 'svg/graphics', 144 'svg/graphics/filters', 140 145 'websockets', 141 146 'xml' … … 170 175 os.environ['CREATE_HASH_TABLE'] = create_hash_table 171 176 172 feature_defines = ['ENABLE_DATABASE', 'ENABLE_XSLT', 'ENABLE_JAVASCRIPT_DEBUGGER' ]177 feature_defines = ['ENABLE_DATABASE', 'ENABLE_XSLT', 'ENABLE_JAVASCRIPT_DEBUGGER', 'ENABLE_SVG', 'ENABLE_SVG_USE', 'ENABLE_FILTERS', 'ENABLE_SVG_FONTS', 'ENABLE_SVG_ANIMATION', 'ENABLE_SVG_AS_IMAGE'] 173 178 174 179 msvc_version = 'msvc2008'
Note: See TracChangeset
for help on using the changeset viewer.