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

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

Issue 622393002: Introduce new entry-points for non-paint-server RenderSVGResources (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 DashArray dashArray; 382 DashArray dashArray;
383 size_t length = dashes->length(); 383 size_t length = dashes->length();
384 for (size_t i = 0; i < length; ++i) 384 for (size_t i = 0; i < length; ++i)
385 dashArray.append(dashes->at(i)->value(lengthContext)); 385 dashArray.append(dashes->at(i)->value(lengthContext));
386 386
387 strokeData->setLineDash(dashArray, svgStyle.strokeDashOffset()->value(length Context)); 387 strokeData->setLineDash(dashArray, svgStyle.strokeDashOffset()->value(length Context));
388 } 388 }
389 389
390 void SVGRenderSupport::fillOrStrokePath(GraphicsContext* context, unsigned short resourceMode, const Path& path) 390 void SVGRenderSupport::fillOrStrokePath(GraphicsContext* context, unsigned short resourceMode, const Path& path)
391 { 391 {
392 ASSERT(resourceMode != ApplyToDefaultMode);
393
394 if (resourceMode & ApplyToFillMode) 392 if (resourceMode & ApplyToFillMode)
395 context->fillPath(path); 393 context->fillPath(path);
396 if (resourceMode & ApplyToStrokeMode) 394 if (resourceMode & ApplyToStrokeMode)
397 context->strokePath(path); 395 context->strokePath(path);
398 } 396 }
399 397
400 bool SVGRenderSupport::isRenderableTextNode(const RenderObject* object) 398 bool SVGRenderSupport::isRenderableTextNode(const RenderObject* object)
401 { 399 {
402 ASSERT(object->isText()); 400 ASSERT(object->isText());
403 // <br> is marked as text, but is not handled by the SVG rendering code-path . 401 // <br> is marked as text, but is not handled by the SVG rendering code-path .
404 return object->isSVGInlineText() && !toRenderSVGInlineText(object)->hasEmpty Text(); 402 return object->isSVGInlineText() && !toRenderSVGInlineText(object)->hasEmpty Text();
405 } 403 }
406 404
407 } 405 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGInlineTextBox.cpp ('k') | Source/core/rendering/svg/SVGRenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698