OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 } | 629 } |
630 | 630 |
631 #ifndef NDEBUG | 631 #ifndef NDEBUG |
632 void SVGResources::dump(const LayoutObject* object) | 632 void SVGResources::dump(const LayoutObject* object) |
633 { | 633 { |
634 ASSERT(object); | 634 ASSERT(object); |
635 ASSERT(object->node()); | 635 ASSERT(object->node()); |
636 | 636 |
637 fprintf(stderr, "-> this=%p, SVGResources(layoutObject=%p, node=%p)\n", this
, object, object->node()); | 637 fprintf(stderr, "-> this=%p, SVGResources(layoutObject=%p, node=%p)\n", this
, object, object->node()); |
638 fprintf(stderr, " | DOM Tree:\n"); | 638 fprintf(stderr, " | DOM Tree:\n"); |
639 object->node()->showTreeForThis(); | 639 fprintf(stderr, "%s", object->node()->toTreeStringForThis().utf8().data()); |
640 | 640 |
641 fprintf(stderr, "\n | List of resources:\n"); | 641 fprintf(stderr, "\n | List of resources:\n"); |
642 if (m_clipperFilterMaskerData) { | 642 if (m_clipperFilterMaskerData) { |
643 if (LayoutSVGResourceClipper* clipper = m_clipperFilterMaskerData->clipp
er) | 643 if (LayoutSVGResourceClipper* clipper = m_clipperFilterMaskerData->clipp
er) |
644 fprintf(stderr, " |-> Clipper : %p (node=%p)\n", clipper, clipper
->element()); | 644 fprintf(stderr, " |-> Clipper : %p (node=%p)\n", clipper, clipper
->element()); |
645 if (LayoutSVGResourceFilter* filter = m_clipperFilterMaskerData->filter) | 645 if (LayoutSVGResourceFilter* filter = m_clipperFilterMaskerData->filter) |
646 fprintf(stderr, " |-> Filter : %p (node=%p)\n", filter, filter->
element()); | 646 fprintf(stderr, " |-> Filter : %p (node=%p)\n", filter, filter->
element()); |
647 if (LayoutSVGResourceMasker* masker = m_clipperFilterMaskerData->masker) | 647 if (LayoutSVGResourceMasker* masker = m_clipperFilterMaskerData->masker) |
648 fprintf(stderr, " |-> Masker : %p (node=%p)\n", masker, masker->
element()); | 648 fprintf(stderr, " |-> Masker : %p (node=%p)\n", masker, masker->
element()); |
649 } | 649 } |
(...skipping 13 matching lines...) Expand all Loading... |
663 if (LayoutSVGResourcePaintServer* stroke = m_fillStrokeData->stroke) | 663 if (LayoutSVGResourcePaintServer* stroke = m_fillStrokeData->stroke) |
664 fprintf(stderr, " |-> Stroke : %p (node=%p)\n", stroke, stroke->
element()); | 664 fprintf(stderr, " |-> Stroke : %p (node=%p)\n", stroke, stroke->
element()); |
665 } | 665 } |
666 | 666 |
667 if (m_linkedResource) | 667 if (m_linkedResource) |
668 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource, m_
linkedResource->element()); | 668 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource, m_
linkedResource->element()); |
669 } | 669 } |
670 #endif | 670 #endif |
671 | 671 |
672 } // namespace blink | 672 } // namespace blink |
OLD | NEW |