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

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

Issue 183973036: Remove some SVG API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Retry Created 6 years, 9 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
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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 return; 389 return;
390 390
391 DashArray dashArray; 391 DashArray dashArray;
392 size_t length = dashes->numberOfItems(); 392 size_t length = dashes->numberOfItems();
393 for (size_t i = 0; i < length; ++i) 393 for (size_t i = 0; i < length; ++i)
394 dashArray.append(dashes->at(i)->value(lengthContext)); 394 dashArray.append(dashes->at(i)->value(lengthContext));
395 395
396 strokeData->setLineDash(dashArray, svgStyle->strokeDashOffset()->value(lengt hContext)); 396 strokeData->setLineDash(dashArray, svgStyle->strokeDashOffset()->value(lengt hContext));
397 } 397 }
398 398
399 bool SVGRenderSupport::isEmptySVGInlineText(const RenderObject* object)
400 {
401 // RenderSVGInlineText performs whitespace filtering in order to support xml :space
402 // (http://www.w3.org/TR/SVG/struct.html#LangSpaceAttrs), and can end up wit h an empty string
403 // even when its original constructor argument is non-empty.
404 return object->isSVGInlineText() && toRenderSVGInlineText(object)->hasEmptyT ext();
405 }
406
407 bool SVGRenderSupport::isRenderableTextNode(const RenderObject* object) 399 bool SVGRenderSupport::isRenderableTextNode(const RenderObject* object)
408 { 400 {
409 ASSERT(object->isText()); 401 ASSERT(object->isText());
410 // <br> is marked as text, but is not handled by the SVG rendering code-path . 402 // <br> is marked as text, but is not handled by the SVG rendering code-path .
411 return object->isSVGInlineText() && !toRenderSVGInlineText(object)->hasEmpty Text(); 403 return object->isSVGInlineText() && !toRenderSVGInlineText(object)->hasEmpty Text();
412 } 404 }
413 405
414 } 406 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698