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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 } | 404 } |
405 | 405 |
406 bool SVGRenderSupport::isEmptySVGInlineText(const RenderObject* object) | 406 bool SVGRenderSupport::isEmptySVGInlineText(const RenderObject* object) |
407 { | 407 { |
408 // RenderSVGInlineText performs whitespace filtering in order to support xml
:space | 408 // RenderSVGInlineText performs whitespace filtering in order to support xml
:space |
409 // (http://www.w3.org/TR/SVG/struct.html#LangSpaceAttrs), and can end up wit
h an empty string | 409 // (http://www.w3.org/TR/SVG/struct.html#LangSpaceAttrs), and can end up wit
h an empty string |
410 // even when its original constructor argument is non-empty. | 410 // even when its original constructor argument is non-empty. |
411 return object->isSVGInlineText() && toRenderSVGInlineText(object)->hasEmptyT
ext(); | 411 return object->isSVGInlineText() && toRenderSVGInlineText(object)->hasEmptyT
ext(); |
412 } | 412 } |
413 | 413 |
| 414 bool SVGRenderSupport::isRenderableTextNode(const RenderObject* object) |
| 415 { |
| 416 ASSERT(object->isText()); |
| 417 // <br> is marked as text, but is not handled by the SVG rendering code-path
. |
| 418 return object->isSVGInlineText() && !toRenderSVGInlineText(object)->hasEmpty
Text(); |
414 } | 419 } |
| 420 |
| 421 } |
OLD | NEW |