OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007, 2008 Rob Buis <buis@kde.org> |
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 Google, Inc. All rights reserved. | 5 * Copyright (C) 2009 Google, Inc. All rights reserved. |
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 m_renderingFlags |= RestoreGraphicsContext; | 115 m_renderingFlags |= RestoreGraphicsContext; |
116 } | 116 } |
117 m_paintInfo->context->setCompositeOperation(CompositeSourceOver,
blendMode); | 117 m_paintInfo->context->setCompositeOperation(CompositeSourceOver,
blendMode); |
118 } | 118 } |
119 m_paintInfo->context->beginTransparencyLayer(opacity); | 119 m_paintInfo->context->beginTransparencyLayer(opacity); |
120 m_renderingFlags |= EndOpacityLayer; | 120 m_renderingFlags |= EndOpacityLayer; |
121 } | 121 } |
122 | 122 |
123 if (shadow) { | 123 if (shadow) { |
124 m_paintInfo->context->clip(repaintRect); | 124 m_paintInfo->context->clip(repaintRect); |
125 m_paintInfo->context->setShadow(IntSize(roundToInt(shadow->x()), rou
ndToInt(shadow->y())), shadow->blur(), shadow->color()); | 125 m_paintInfo->context->setShadow(IntSize(roundToInt(shadow->x()), |
| 126 roundToInt(shadow->y())), shadow->blur(), |
| 127 m_object->resolveColor(shadow->color(), Color::stdShadowColor)); |
126 m_paintInfo->context->beginTransparencyLayer(1); | 128 m_paintInfo->context->beginTransparencyLayer(1); |
127 m_renderingFlags |= EndShadowLayer; | 129 m_renderingFlags |= EndShadowLayer; |
128 } | 130 } |
129 } | 131 } |
130 | 132 |
131 ClipPathOperation* clipPathOperation = style->clipPath(); | 133 ClipPathOperation* clipPathOperation = style->clipPath(); |
132 if (clipPathOperation && clipPathOperation->getOperationType() == ClipPathOp
eration::SHAPE) { | 134 if (clipPathOperation && clipPathOperation->getOperationType() == ClipPathOp
eration::SHAPE) { |
133 ShapeClipPathOperation* clipPath = static_cast<ShapeClipPathOperation*>(
clipPathOperation); | 135 ShapeClipPathOperation* clipPath = static_cast<ShapeClipPathOperation*>(
clipPathOperation); |
134 m_paintInfo->context->clipPath(clipPath->path(object->objectBoundingBox(
)), clipPath->windRule()); | 136 m_paintInfo->context->clipPath(clipPath->path(object->objectBoundingBox(
)), clipPath->windRule()); |
135 } | 137 } |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 toRenderSVGImage(m_object)->paintForeground(bufferedInfo); | 351 toRenderSVGImage(m_object)->paintForeground(bufferedInfo); |
350 } else | 352 } else |
351 return false; | 353 return false; |
352 } | 354 } |
353 | 355 |
354 m_paintInfo->context->drawImageBuffer(imageBuffer.get(), boundingBox); | 356 m_paintInfo->context->drawImageBuffer(imageBuffer.get(), boundingBox); |
355 return true; | 357 return true; |
356 } | 358 } |
357 | 359 |
358 } | 360 } |
OLD | NEW |