Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: Source/core/rendering/svg/SVGRenderingContext.cpp

Issue 20061003: Move isValid/isCurrentColor from Color to StyleColor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698