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

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

Issue 463123003: Cleanup namespace usage in Source/core/rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 4 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
« no previous file with comments | « Source/core/rendering/style/RenderStyle.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 if (!(m_renderingFlags & RestoreGraphicsContext)) { 125 if (!(m_renderingFlags & RestoreGraphicsContext)) {
126 m_paintInfo->context->save(); 126 m_paintInfo->context->save();
127 m_renderingFlags |= RestoreGraphicsContext; 127 m_renderingFlags |= RestoreGraphicsContext;
128 } 128 }
129 m_paintInfo->context->setCompositeOperation(CompositeSourceOver, sty le->blendMode()); 129 m_paintInfo->context->setCompositeOperation(CompositeSourceOver, sty le->blendMode());
130 } 130 }
131 131
132 m_paintInfo->context->beginTransparencyLayer(opacity); 132 m_paintInfo->context->beginTransparencyLayer(opacity);
133 133
134 if (hasBlendMode) 134 if (hasBlendMode)
135 m_paintInfo->context->setCompositeOperation(CompositeSourceOver, bli nk::WebBlendModeNormal); 135 m_paintInfo->context->setCompositeOperation(CompositeSourceOver, Web BlendModeNormal);
136 136
137 m_renderingFlags |= EndOpacityLayer; 137 m_renderingFlags |= EndOpacityLayer;
138 } 138 }
139 139
140 ClipPathOperation* clipPathOperation = style->clipPath(); 140 ClipPathOperation* clipPathOperation = style->clipPath();
141 if (clipPathOperation && clipPathOperation->type() == ClipPathOperation::SHA PE) { 141 if (clipPathOperation && clipPathOperation->type() == ClipPathOperation::SHA PE) {
142 ShapeClipPathOperation* clipPath = toShapeClipPathOperation(clipPathOper ation); 142 ShapeClipPathOperation* clipPath = toShapeClipPathOperation(clipPathOper ation);
143 m_paintInfo->context->clipPath(clipPath->path(object->objectBoundingBox( )), clipPath->windRule()); 143 m_paintInfo->context->clipPath(clipPath->path(object->objectBoundingBox( )), clipPath->windRule());
144 } 144 }
145 145
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 bufferedInfo.context = bufferedRenderingContext; 301 bufferedInfo.context = bufferedRenderingContext;
302 toRenderSVGImage(m_object)->paintForeground(bufferedInfo); 302 toRenderSVGImage(m_object)->paintForeground(bufferedInfo);
303 } else 303 } else
304 return false; 304 return false;
305 } 305 }
306 306
307 m_paintInfo->context->drawImageBuffer(imageBuffer.get(), boundingBox); 307 m_paintInfo->context->drawImageBuffer(imageBuffer.get(), boundingBox);
308 return true; 308 return true;
309 } 309 }
310 310
311 } 311 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/style/RenderStyle.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698