Changeset 144612 in webkit
- Timestamp:
- Mar 4, 2013 3:09:59 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 16 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r144610 r144612 1 2013-03-04 Arvid Nilsson <anilsson@rim.com> 2 3 [BlackBerry] New files for BlackBerry::Platform::Graphics::GraphicsContext integration 4 https://bugs.webkit.org/show_bug.cgi?id=111153 5 6 Reviewed by Rob Buis. 7 8 BlackBerry PR 293208 9 10 This patch contains contributions from many members of the BlackBerry 11 WebKit team: 12 13 Rob Buis 14 Robin Cao 15 Eli Fidler 16 Mike Lattanzio 17 Yong Li 18 Maxim Mogilnitsky 19 Joshua Netterfield 20 Arvid Nilsson 21 Jakob Petsovits 22 Konrad Piascik 23 Jeff Rogers 24 Artem Simonov 25 Filip Spacek 26 George Staikos 27 28 Covered by existing tests. 29 30 * platform/graphics/blackberry/FontBlackBerry.cpp: Added. 31 (FSFixedToFloat): 32 (FloatToFSFixed): 33 (WebCore): 34 (WebCore::Font::drawComplexText): 35 (WebCore::Font::floatWidthForComplexText): 36 (WebCore::Font::offsetForPositionForComplexText): 37 (WebCore::Font::selectionRectForComplexText): 38 (WebCore::Font::drawGlyphs): 39 (WebCore::Font::canReturnFallbackFontsForComplexText): 40 (WebCore::Font::drawEmphasisMarksForComplexText): 41 (WebCore::Font::canExpandAroundIdeographsInComplexText): 42 * platform/graphics/blackberry/FontCacheBlackBerry.cpp: Added. 43 (WebCore): 44 (WebCore::FontCache::platformInit): 45 (WebCore::FontCache::getFontDataForCharacters): 46 (WebCore::FontCache::getSimilarFontPlatformData): 47 (WebCore::FontCache::getLastResortFallbackFont): 48 (WebCore::FontCache::getTraitsInFamily): 49 (WebCore::getFamilyNameStringFromFontDescriptionAndFamily): 50 (WebCore::fontWeightToFontconfigWeight): 51 (WebCore::FontCache::createFontPlatformData): 52 * platform/graphics/blackberry/FontCustomPlatformData.h: Added. 53 (WebCore): 54 (FontCustomPlatformData): 55 * platform/graphics/blackberry/FontCustomPlatformDataBlackBerry.cpp: Added. 56 (WebCore): 57 (WebCore::FontCustomPlatformData::FontCustomPlatformData): 58 (WebCore::FontCustomPlatformData::~FontCustomPlatformData): 59 (WebCore::FontCustomPlatformData::fontPlatformData): 60 (WebCore::FontCustomPlatformData::supportsFormat): 61 (WebCore::createFontCustomPlatformData): 62 * platform/graphics/blackberry/FontPlatformDataBlackBerry.cpp: Added. 63 (WebCore): 64 (WebCore::FontPlatformData::FontPlatformData): 65 (WebCore::FontPlatformData::~FontPlatformData): 66 (WebCore::FontPlatformData::name): 67 (WebCore::FontPlatformData::applyState): 68 (WebCore::FontPlatformData::platformDataInit): 69 (WebCore::FontPlatformData::platformDataAssign): 70 (WebCore::FontPlatformData::platformIsEqual): 71 (WebCore::FontPlatformData::description): 72 (WebCore::FontPlatformData::harfbuzzFace): 73 (WebCore::FontPlatformData::scaledFont): 74 (WebCore::FontPlatformData::setFakeBold): 75 (WebCore::FontPlatformData::setFakeItalic): 76 (WebCore::FontPlatformData::platformFontHandle): 77 (WebCore::FontPlatformData::isFixedPitch): 78 * platform/graphics/blackberry/GlyphPageTreeNodeBlackBerry.cpp: Added. 79 (WebCore): 80 (WorldTypeScopedPtr): 81 (WebCore::WorldTypeScopedPtr::WorldTypeScopedPtr): 82 (WebCore::WorldTypeScopedPtr::~WorldTypeScopedPtr): 83 (WebCore::WorldTypeScopedPtr::get): 84 (WebCore::GlyphPage::fill): 85 * platform/graphics/blackberry/GradientBlackBerry.cpp: Added. 86 (WebCore): 87 (WebCore::totalStopsNeeded): 88 (WebCore::fillStops): 89 (WebCore::Gradient::platformGradient): 90 (WebCore::Gradient::platformDestroy): 91 (WebCore::Gradient::fill): 92 (WebCore::Gradient::setPlatformGradientSpaceTransform): 93 * platform/graphics/blackberry/GraphicsContextBlackBerry.cpp: Added. 94 (WebCore): 95 (GraphicsContextPlatformPrivate): 96 (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate): 97 (WebCore::GraphicsContext::platformInit): 98 (WebCore::GraphicsContext::platformDestroy): 99 (WebCore::GraphicsContext::platformContext): 100 (WebCore::GraphicsContext::savePlatformState): 101 (WebCore::GraphicsContext::restorePlatformState): 102 (WebCore::GraphicsContext::setIsAcceleratedContext): 103 (WebCore::GraphicsContext::isAcceleratedContext): 104 (WebCore::GraphicsContext::getCTM): 105 (WebCore::GraphicsContext::concatCTM): 106 (WebCore::GraphicsContext::setCTM): 107 (WebCore::GraphicsContext::scale): 108 (WebCore::GraphicsContext::rotate): 109 (WebCore::GraphicsContext::translate): 110 (WebCore::GraphicsContext::drawEllipse): 111 (WebCore::GraphicsContext::strokeArc): 112 (WebCore::GraphicsContext::drawConvexPolygon): 113 (WebCore::GraphicsContext::drawRect): 114 (WebCore::GraphicsContext::fillRect): 115 (WebCore::GraphicsContext::clearRect): 116 (WebCore::GraphicsContext::strokeRect): 117 (WebCore::GraphicsContext::fillRoundedRect): 118 (WebCore::GraphicsContext::roundToDevicePixels): 119 (WebCore::GraphicsContext::setPlatformShadow): 120 (WebCore::GraphicsContext::clearPlatformShadow): 121 (WebCore::GraphicsContext::beginPlatformTransparencyLayer): 122 (WebCore::GraphicsContext::endPlatformTransparencyLayer): 123 (WebCore::GraphicsContext::supportsTransparencyLayers): 124 (WebCore::GraphicsContext::setLineCap): 125 (WebCore::GraphicsContext::setLineDash): 126 (WebCore::GraphicsContext::setLineJoin): 127 (WebCore::GraphicsContext::setMiterLimit): 128 (WebCore::GraphicsContext::setAlpha): 129 (WebCore::GraphicsContext::clip): 130 (WebCore::GraphicsContext::clipOut): 131 (WebCore::GraphicsContext::clipConvexPolygon): 132 (WebCore::GraphicsContext::addRoundedRectClip): 133 (WebCore::GraphicsContext::clipOutRoundedRect): 134 (WebCore::GraphicsContext::clipBounds): 135 (WebCore::GraphicsContext::addInnerRoundedRectClip): 136 (WebCore::GraphicsContext::setURLForRect): 137 (WebCore::GraphicsContext::setPlatformTextDrawingMode): 138 (WebCore::GraphicsContext::setPlatformStrokeColor): 139 (WebCore::GraphicsContext::setPlatformStrokeStyle): 140 (WebCore::GraphicsContext::setPlatformStrokeThickness): 141 (WebCore::GraphicsContext::setPlatformFillColor): 142 (WebCore::GraphicsContext::setPlatformCompositeOperation): 143 (WebCore::GraphicsContext::setPlatformShouldAntialias): 144 (WebCore::GraphicsContext::setImageInterpolationQuality): 145 (WebCore::GraphicsContext::imageInterpolationQuality): 146 * platform/graphics/blackberry/ITypeUtils.h: Added. 147 (floatToITypeFixed): 148 (intToITypeFixed): 149 (iTypeFixedToFloat): 150 * platform/graphics/blackberry/ImageBufferBlackBerry.cpp: Added. 151 (WebCore): 152 (WebCore::makeBufferCurrent): 153 (WebCore::getImageDataInternal): 154 (WebCore::ImageBufferData::getImageData): 155 (WebCore::flushAndDraw): 156 (WebCore::ImageBufferData::draw): 157 (WebCore::ImageBuffer::ImageBuffer): 158 (WebCore::ImageBuffer::~ImageBuffer): 159 (WebCore::ImageBuffer::context): 160 (WebCore::ImageBuffer::platformLayer): 161 (WebCore::ImageBuffer::copyImage): 162 (WebCore::ImageBuffer::clip): 163 (WebCore::ImageBuffer::draw): 164 (WebCore::ImageBuffer::drawPattern): 165 (WebCore::ImageBuffer::platformTransformColorSpace): 166 (WebCore::ImageBuffer::getUnmultipliedImageData): 167 (WebCore::ImageBuffer::getPremultipliedImageData): 168 (WebCore::ImageBuffer::putByteArray): 169 (WebCore::ImageBuffer::toDataURL): 170 * platform/graphics/blackberry/ImageBufferDataBlackBerry.h: Added. 171 (WebCore): 172 (ImageBufferData): 173 * platform/graphics/blackberry/PathBlackBerry.cpp: Added. 174 (WebCore): 175 (WebCore::scratchContext): 176 (WebCore::Path::Path): 177 (WebCore::Path::~Path): 178 (WebCore::Path::operator=): 179 (WebCore::Path::currentPoint): 180 (WebCore::Path::contains): 181 (WebCore::Path::strokeContains): 182 (WebCore::Path::translate): 183 (WebCore::Path::boundingRect): 184 (WebCore::Path::strokeBoundingRect): 185 (WebCore::Path::moveTo): 186 (WebCore::Path::addLineTo): 187 (WebCore::Path::addQuadCurveTo): 188 (WebCore::Path::addBezierCurveTo): 189 (WebCore::Path::addArcTo): 190 (WebCore::Path::closeSubpath): 191 (WebCore::Path::addArc): 192 (WebCore::Path::addRect): 193 (WebCore::Path::addEllipse): 194 (WebCore::Path::platformAddPathForRoundedRect): 195 (WebCore::Path::clear): 196 (WebCore::Path::isEmpty): 197 (WebCore::Path::hasCurrentPoint): 198 (WebCore::Path::apply): 199 (WebCore::Path::transform): 200 (WebCore::GraphicsContext::fillPath): 201 (WebCore::GraphicsContext::strokePath): 202 (WebCore::GraphicsContext::drawFocusRing): 203 (WebCore::GraphicsContext::drawLine): 204 (WebCore::GraphicsContext::drawLineForDocumentMarker): 205 (WebCore::GraphicsContext::drawLineForText): 206 (WebCore::GraphicsContext::clip): 207 (WebCore::GraphicsContext::clipPath): 208 (WebCore::GraphicsContext::canvasClip): 209 (WebCore::GraphicsContext::clipOut): 210 * platform/graphics/blackberry/PatternBlackBerry.cpp: Added. 211 (WebCore): 212 (WebCore::Pattern::platformDestroy): 213 (WebCore::Pattern::platformPattern): 214 (WebCore::Pattern::setPlatformPatternSpaceTransform): 215 * platform/graphics/blackberry/PlatformSupport.cpp: Added. 216 (WebCore): 217 (WebCore::PlatformSupport::getFontFamilyForCharacters): 218 * platform/graphics/blackberry/PlatformSupport.h: Added. 219 (WebCore): 220 (PlatformSupport): 221 (FontFamily): 222 * platform/graphics/blackberry/SimpleFontDataBlackBerry.cpp: Added. 223 (WebCore): 224 (WebCore::FSFixedToFloat): 225 (WebCore::SimpleFontData::platformInit): 226 (WebCore::SimpleFontData::platformCharWidthInit): 227 (WebCore::SimpleFontData::platformDestroy): 228 (WebCore::SimpleFontData::createScaledFontData): 229 (WebCore::SimpleFontData::smallCapsFontData): 230 (WebCore::SimpleFontData::emphasisMarkFontData): 231 (WebCore::SimpleFontData::containsCharacters): 232 (WebCore::SimpleFontData::determinePitch): 233 (WebCore::SimpleFontData::platformBoundsForGlyph): 234 (WebCore::SimpleFontData::platformWidthForGlyph): 235 (WebCore::SimpleFontData::canRenderCombiningCharacterSequence): 236 1 237 2013-03-04 Adam Bergkvist <adam.bergkvist@ericsson.com> 2 238
Note: See TracChangeset
for help on using the changeset viewer.